Date: Sun, 4 Jun 2006 23:14:51 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98513 for review Message-ID: <200606042314.k54NEpX9080116@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98513 Change 98513 by kmacy@kmacy_storage:sun4v_work_test on 2006/06/04 23:14:17 don't keep spinning in pmap_ipi if we have fewer than 32 cpus Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#61 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#61 (text+ko) ==== @@ -1197,15 +1197,16 @@ while (ackmask != curactive) { DELAY(1); i++; - if (i > 100000000) + if (i > 1000000) panic(" ackmask=0x%x active=0x%x\n", ackmask, curactive); } active_total |= curactive; - if ((active = (pmap->pm_tlbactive & ~(active_total|cpumask))) != 0) + if ((active = ((pmap->pm_tlbactive & all_cpus) & ~(active_total|cpumask))) != 0) { + printf("pmap_ipi: retrying"); goto retry; - + } done: return (active_total); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606042314.k54NEpX9080116>