From owner-svn-src-head@FreeBSD.ORG Thu Jul 10 20:55:38 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D7C9020E; Thu, 10 Jul 2014 20:55:38 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5F782392; Thu, 10 Jul 2014 20:55:38 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6AKtct4008689; Thu, 10 Jul 2014 20:55:38 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6AKtcQj008688; Thu, 10 Jul 2014 20:55:38 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201407102055.s6AKtcQj008688@svn.freebsd.org> From: Alan Cox Date: Thu, 10 Jul 2014 20:55:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268504 - head/sys/powerpc/aim X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 20:55:38 -0000 Author: alc Date: Thu Jul 10 20:55:38 2014 New Revision: 268504 URL: http://svnweb.freebsd.org/changeset/base/268504 Log: Correct the accounting code for wired mappings. The wrong field of the PVO entry was being tested. We were incrementing and decrementing the pmap's wired mapping count based on whether the physical page being mapped or unmapped was cache coherent, not whether it was a wired mapping. Reviewed by: nwhitehorn Modified: head/sys/powerpc/aim/mmu_oea.c Modified: head/sys/powerpc/aim/mmu_oea.c ============================================================================== --- head/sys/powerpc/aim/mmu_oea.c Thu Jul 10 18:28:12 2014 (r268503) +++ head/sys/powerpc/aim/mmu_oea.c Thu Jul 10 20:55:38 2014 (r268504) @@ -1992,7 +1992,7 @@ moea_pvo_enter(pmap_t pm, uma_zone_t zon first = 1; LIST_INSERT_HEAD(pvo_head, pvo, pvo_vlink); - if (pvo->pvo_pte.pte.pte_lo & PVO_WIRED) + if (pvo->pvo_vaddr & PVO_WIRED) pm->pm_stats.wired_count++; pm->pm_stats.resident_count++; @@ -2031,7 +2031,7 @@ moea_pvo_remove(struct pvo_entry *pvo, i * Update our statistics. */ pvo->pvo_pmap->pm_stats.resident_count--; - if (pvo->pvo_pte.pte.pte_lo & PVO_WIRED) + if (pvo->pvo_vaddr & PVO_WIRED) pvo->pvo_pmap->pm_stats.wired_count--; /*