From owner-p4-projects@FreeBSD.ORG Tue May 23 00:28:32 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 06CA716AFAE; Tue, 23 May 2006 00:28:32 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D416F16AFAB for ; Tue, 23 May 2006 00:28:30 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BF5443D46 for ; Tue, 23 May 2006 00:28:30 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4N0Rj5H057498 for ; Tue, 23 May 2006 00:27:45 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4N0RjCE057495 for perforce@freebsd.org; Tue, 23 May 2006 00:27:45 GMT (envelope-from kmacy@freebsd.org) Date: Tue, 23 May 2006 00:27:45 GMT Message-Id: <200605230027.k4N0RjCE057495@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 97651 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2006 00:28:32 -0000 http://perforce.freebsd.org/chv.cgi?CH=97651 Change 97651 by kmacy@kmacy_storage:sun4v_work on 2006/05/23 00:27:32 disable shootdown optimization until invalidation bug is fixed Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#55 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#55 (text+ko) ==== @@ -163,19 +163,9 @@ ((pm) != kernel_pmap && (pm)->pm_stats.resident_count == 0) /* - * The threshold (in bytes) above which tsb_foreach() is used in pmap_remove() - * and pmap_protect() instead of trying each virtual address. - */ -#define PMAP_TSB_THRESH ((TSB_SIZE / 2) * PAGE_SIZE) - -#define PANIC_IF(exp) if (unlikely(exp)) {panic("%s: %s:%d", #exp, __FILE__, __LINE__);} - -/* * Kernel MMU interface */ -#define UNIMPLEMENTED panic("%s not implemented", __FUNCTION__) -#define IMPLEMENTME printf("don't forget %s not implemented\n", __FUNCTION__) #ifdef PMAP_DEBUG #define KDPRINTF if (pmap_debug) printf #define DPRINTF \ @@ -1177,21 +1167,22 @@ cpumask, (1 << curcpu)); #endif - +#if 0 if ((active_total = (pmap->pm_tlbactive & ~cpumask)) == 0) goto done; if (pmap->pm_context != 0) active_total = active = (pmap->pm_tlbactive & ~cpumask); else +#endif active_total = active = PCPU_GET(other_cpus); if (active_total == 0) goto done; retry: - for (cpu_count = 0, i = 0, cpus = active; i < 32 && cpus; i++, cpus >>= 1) { - if (!(cpus & 0x1)) + for (cpu_count = 0, i = 0, cpus = active; i < 32 && cpus; i++, cpus = (cpus>>1)) { + if ((cpus & 0x1) == 0) continue; cpulist[cpu_count] = (uint16_t)i; @@ -1350,12 +1341,6 @@ tte_hash_delete(kernel_pmap->pm_hash, va); } -static void -pmap_lazyfix(pmap_t pmap) -{ - UNIMPLEMENTED; -} - /* * Map a range of physical addresses into kernel virtual address space. * @@ -1525,10 +1510,10 @@ } } - sched_unpin(); if (anychanged) pmap_invalidate_range(pmap, sva, eva, TRUE); + sched_unpin(); vm_page_unlock_queues(); PMAP_UNLOCK(pmap); } @@ -1589,7 +1574,6 @@ ("pmap_release: pmap resident count %ld != 0", pmap->pm_stats.resident_count)); - pmap_lazyfix(pmap); tsb_deinit(&pmap->pm_tsb); tte_hash_destroy(pmap->pm_hash); free_context(pmap->pm_context);