From owner-freebsd-mips@FreeBSD.ORG Fri Sep 10 06:17:18 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98A551065670; Fri, 10 Sep 2010 06:17:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 5A98B8FC13; Fri, 10 Sep 2010 06:17:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o8A6EE9c019318; Fri, 10 Sep 2010 00:14:14 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 10 Sep 2010 00:14:30 -0600 (MDT) Message-Id: <20100910.001430.1149370768114483729.imp@bsdimp.com> To: neelnatu@gmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gonzo@freebsd.org, freebsd-mips@freebsd.org Subject: Re: busdma_machdep.c with more than 512M memory X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 06:17:18 -0000 In message: Neel Natu writes: : This assumes that pmap_mapdev() always returns an uncached mapping : which is true for n64 kernels but not for o32 kernels with memory : beyond 512MB. : : Any objections if I commit the following patch that makes : pmap_mapdev() always return an uncached mapping. Is there ever a time on MIPS you'd want to make a device you are talking to cached? I'd say it is a vanishingly rare event, if ever. If we come up with one, we, at that time, should implement a way to do that mapping. I have no objections to this patch, but I've not gone over it with a fine tooth comb. Warner