From owner-freebsd-ia32@FreeBSD.ORG Tue Sep 5 18:49:21 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 1E95716A501 for ; Tue, 5 Sep 2006 18:49:21 +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 DC3A143D5D for ; Tue, 5 Sep 2006 18:49:11 +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 k85ImtIi069407; Tue, 5 Sep 2006 14:49:09 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-ia32@freebsd.org Date: Tue, 5 Sep 2006 14:46:35 -0400 User-Agent: KMail/1.9.1 References: <29683db20609012326i351eb455ja3b0aade681c7773@mail.gmail.com> In-Reply-To: <29683db20609012326i351eb455ja3b0aade681c7773@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609051446.36261.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]); Tue, 05 Sep 2006 14:49:10 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1806/Tue Sep 5 11:00:48 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: Bharath Bhushan 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: Tue, 05 Sep 2006 18:49:21 -0000 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 From owner-freebsd-ia32@FreeBSD.ORG Fri Sep 8 18:34:40 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 92E9716A65D for ; Fri, 8 Sep 2006 18:34:40 +0000 (UTC) (envelope-from bharath.bhushan@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED96D43D4C for ; Fri, 8 Sep 2006 18:34:38 +0000 (GMT) (envelope-from bharath.bhushan@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so855713pye for ; Fri, 08 Sep 2006 11:34:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Il4fD8ijuqSs0suLKpvl1lzf7wGQPcZX967YegokYbNhJ17nJyDHvyw3Gr8v3qhwd/yGZz0NAOGibDsk9Cy1Kd86ytvdqyiUXmsAS0C3I3Pcr+3IA1EVVrKVzKSHVi0A3NcwOieZpE1KaJIjqXrta6k259lyXwxcTSx1K5cRW+U= Received: by 10.35.69.11 with SMTP id w11mr3443740pyk; Fri, 08 Sep 2006 11:34:05 -0700 (PDT) Received: by 10.35.66.14 with HTTP; Fri, 8 Sep 2006 11:34:03 -0700 (PDT) Message-ID: <29683db20609081134v3140b663ua376b59041881ed9@mail.gmail.com> Date: Sat, 9 Sep 2006 00:04:03 +0530 From: "Bharath Bhushan" To: "John Baldwin" In-Reply-To: <200609051446.36261.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <29683db20609012326i351eb455ja3b0aade681c7773@mail.gmail.com> <200609051446.36261.jhb@freebsd.org> 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:34:40 -0000 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. 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 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 From owner-freebsd-ia32@FreeBSD.ORG Sat Sep 9 06:34:18 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 2C56416A415 for ; Sat, 9 Sep 2006 06:34:18 +0000 (UTC) (envelope-from bharath.bhushan@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CE9143D46 for ; Sat, 9 Sep 2006 06:34:17 +0000 (GMT) (envelope-from bharath.bhushan@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so1072299pye for ; Fri, 08 Sep 2006 23:34:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JW9Lgs9axizVDrr68MQjhGuYLEixu0gLlay1GYHq93q5dfCbRGQTMR1mQCaaXOg+NZ4FOlRFcGIf9Ry3htlnNWCL8F1q0kK3ungV4m2iwziyggi4NVDUZxBgEp2Npe838R08g/tzr74ctnwoQJxLPlod/blt2wKGREyx1RRaDCM= Received: by 10.35.97.17 with SMTP id z17mr4388888pyl; Fri, 08 Sep 2006 23:34:16 -0700 (PDT) Received: by 10.35.66.14 with HTTP; Fri, 8 Sep 2006 23:34:16 -0700 (PDT) Message-ID: <29683db20609082334m5cdcc7dds1f850f2fefb75dbf@mail.gmail.com> Date: Sat, 9 Sep 2006 12:04:16 +0530 From: "Bharath Bhushan" To: "John Baldwin" In-Reply-To: <200609081444.17428.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <29683db20609012326i351eb455ja3b0aade681c7773@mail.gmail.com> <200609051446.36261.jhb@freebsd.org> <29683db20609081134v3140b663ua376b59041881ed9@mail.gmail.com> <200609081444.17428.jhb@freebsd.org> 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: Sat, 09 Sep 2006 06:34:18 -0000 Thanks a lot. On 9/9/06, John Baldwin wrote: > 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 > -- Thanks Bharath