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