From owner-freebsd-ia32@FreeBSD.ORG Sat Sep 2 06:26:53 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 C4E5116A4E0 for ; Sat, 2 Sep 2006 06:26:53 +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 91DF043D60 for ; Sat, 2 Sep 2006 06:26:46 +0000 (GMT) (envelope-from bharath.bhushan@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so1573921pye for ; Fri, 01 Sep 2006 23:26:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tTDf17bvfVdq4PAbQlrtuz1VCLJGJHz1+0gjweSHwgvMyXoGFisqs/r1FcyOH8g1dMOS2CwlNajaifqaR6t9ybK/7yGAHA0BsNXW6j7rEDeds7CvwDm5NEadXrcjERTrfofqlgjDE5MlGo76JcVDS3g9jqV5wA4Go486FKYGjJg= Received: by 10.35.128.1 with SMTP id f1mr4740510pyn; Fri, 01 Sep 2006 23:26:45 -0700 (PDT) Received: by 10.35.66.14 with HTTP; Fri, 1 Sep 2006 23:26:45 -0700 (PDT) Message-ID: <29683db20609012326i351eb455ja3b0aade681c7773@mail.gmail.com> Date: Sat, 2 Sep 2006 11:56:45 +0530 From: "Bharath Bhushan" To: freebsd-ia32@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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, 02 Sep 2006 06:26:53 -0000 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? In 5.5, I see that ioapic_create() calls pmap_createdev(), which allocates cache-enabled kind of mapping. Am I missing something here? -- Thanks Bharath