From owner-freebsd-current Sun Jul 7 23:29: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB35337B401 for ; Sun, 7 Jul 2002 23:28:56 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8601943E52 for ; Sun, 7 Jul 2002 23:28:56 -0700 (PDT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id 4F6D82A7EA for ; Sun, 7 Jul 2002 23:28:55 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 0D1A44C49E for ; Sun, 7 Jul 2002 23:28:55 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 02DE03808 for ; Sun, 7 Jul 2002 23:28:55 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: current@freebsd.org Subject: Remember my ill-fated i386 smp pmap optimizations? Date: Sun, 07 Jul 2002 23:28:54 -0700 From: Peter Wemm Message-Id: <20020708062855.02DE03808@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG A few months ago, I had a bit of a disaster with some pmap optimizations. After committing, all hell broke loose. It was backed out completely. I finally found the problem (diff cleaned up to highlight the problem): pmap_mapdev() ... for (tmpva = va; size > 0; ) { pte = vtopte(tmpva); *pte = pa | PG_RW | PG_V | pgeflag; size -= PAGE_SIZE; tmpva += PAGE_SIZE; - pa += PAGE_SIZE; } invltlb(); Excuse me while I go outside and shoot myself. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message