From owner-freebsd-ia32@FreeBSD.ORG Fri Sep 8 18:45:33 2006 Return-Path: X-Original-To: freebsd-ia32@freebsd.org Delivered-To: freebsd-ia32@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00F7516A494 for ; Fri, 8 Sep 2006 18:45:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F6EB43D53 for ; Fri, 8 Sep 2006 18:45:27 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k88IjFUq095051; Fri, 8 Sep 2006 14:45:16 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Bharath Bhushan" Date: Fri, 8 Sep 2006 14:44:17 -0400 User-Agent: KMail/1.9.1 References: <29683db20609012326i351eb455ja3b0aade681c7773@mail.gmail.com> <200609051446.36261.jhb@freebsd.org> <29683db20609081134v3140b663ua376b59041881ed9@mail.gmail.com> In-Reply-To: <29683db20609081134v3140b663ua376b59041881ed9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609081444.17428.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 08 Sep 2006 14:45:16 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1826/Fri Sep 8 07:38:39 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-ia32@freebsd.org Subject: Re: io apic question X-BeenThere: freebsd-ia32@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD on the IA-32 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 18:45:33 -0000 On Friday 08 September 2006 14:34, Bharath Bhushan wrote: > Thanks John. > > Can you please point me to the place where cache-disabled mapping is > being done in 7.0? > I looked at -- ioapic_create -> pmap_mapdev -> pmap_kenter -> > pte_store(pte, pa | PG_RW | PG_V | pgeflag); > > I could not find any references to PG_N in code related to pmap or to IOAPICs. In 7.0 pmap_mapdev() calls pmap_mapdev_attr(..., PAT_UNCACHEABLE). > On 9/6/06, John Baldwin wrote: > > On Saturday 02 September 2006 02:26, Bharath Bhushan wrote: > > > I am looking at 4.9 sources. > > > > > > When the local apic is mapped into SMPpt in > > > sys/i386/i386/pmap.c:pmap_bootstrap(), it is mapped cache-disabled > > > (PG_N). > > > > > > When the IO apics are being mapped into SMPpt in > > > sys/i386/i386/mp_machdep.c:mptable_pass2(), it is *not* mapped > > > cache-disabled. > > > > > > Why is this difference? > > > > Probably a bug. > > > > > In 5.5, I see that ioapic_create() calls pmap_createdev(), which > > > allocates cache-enabled kind of mapping. > > > > > > Am I missing something here? > > > > In 7.0 we map them cache-disabled now. > > > > -- > > John Baldwin > > > > > -- > Thanks > Bharath > -- John Baldwin