cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-09-17 Thread John Baldwin
jhb 2008-09-17 21:05:31 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: SVN rev 183130 on 2008-09-17 21:05:31Z by jhb MFC: 180352 In FreeBSD 7.0 and beyond, pmap_growkernel() should

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-09-17 Thread John Baldwin
jhb 2008-09-17 20:38:18 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: SVN rev 183127 on 2008-09-17 20:38:18Z by jhb MFC: 174104 Improve get_pv_entry()'s handling of low-memory cond

cvs commit: src/sys/amd64/amd64 pmap.c

2008-09-17 Thread John Baldwin
jhb 2008-09-17 20:34:02 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/amd64/amd64 pmap.c Log: SVN rev 183125 on 2008-09-17 20:34:02Z by jhb MFC: Account for pv entry pages in the total number of wired pages. (Note: pv entry pages have al

cvs commit: src/sys/amd64/amd64 pmap.c

2008-08-08 Thread Alan Cox
alc 2008-08-09 05:46:13 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 181456 on 2008-08-09 05:46:13Z by alc Intel describes the behavior of their processors as "undefined" if two or more mappings to the same physical page have diff

cvs commit: src/sys/amd64/amd64 pmap.c

2008-08-06 Thread Alan Cox
alc 2008-08-07 04:56:29 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 181356 on 2008-08-07 04:56:29Z by alc Introduce pmap_change_attr_locked(). Revision ChangesPath 1.644 +18 -17src/sys/amd64/amd64/pmap.c ___

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h src/sys/i386/i386 pmap.c src/sys/i386/include pmap.h

2008-08-04 Thread Alan Cox
alc 2008-08-04 08:04:09 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includepmap.h sys/i386/i386pmap.c sys/i386/include pmap.h Log: SVN rev 181284 on 2008-08-04 08:04:09Z by alc Make pmap_kenter_attr() st

cvs commit: src/sys/amd64/amd64 pmap.c

2008-08-01 Thread Alan Cox
alc 2008-08-02 03:43:54 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 181151 on 2008-08-02 03:43:54Z by alc Enhance pmap_mapdev_attr(). Take advantage of recent enhancements to pmap_change_attr() in order to use the direct map for

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include param.h

2008-07-31 Thread Alan Cox
alc 2008-08-01 04:55:38 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includeparam.h Log: SVN rev 181112 on 2008-08-01 04:55:38Z by alc Enhance pmap_change_attr() with the ability to demote 1GB page mappings. Revision Cha

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h

2008-07-31 Thread Alan Cox
alc 2008-07-31 22:45:28 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includepmap.h Log: SVN rev 181077 on 2008-07-31 22:45:28Z by alc Enhance pmap_change_attr(). Specifically, avoid 2MB page demotions, cache mode changes, a

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-30 Thread Alan Cox
alc 2008-07-31 04:42:42 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 181043 on 2008-07-31 04:42:42Z by alc Eliminate recomputation of the PDE by pmap_pde_attr(). Revision ChangesPath 1.639 +2 -5 src/sys/amd64/am

Re: cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-28 Thread John Baldwin
On Sunday 27 July 2008 01:32:36 pm Alan Cox wrote: > alc 2008-07-27 17:32:36 UTC > > FreeBSD src repository > > Modified files: > sys/amd64/amd64 pmap.c > Log: > SVN rev 180845 on 2008-07-27 17:32:36Z by alc > > Enhance pmap_change_attr(). Use pmap_demote_pde() to

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-27 Thread Alan Cox
alc 2008-07-28 04:59:48 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180872 on 2008-07-28 04:59:48Z by alc Don't allow pmap_change_attr() to be applied to the recursive mapping. Revision ChangesPath 1.638 +5 -2

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-27 Thread Alan Cox
alc 2008-07-28 03:58:49 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180870 on 2008-07-28 03:58:49Z by alc Add a check for 1GB page mappings to pmap_change_attr() so that it fails gracefully. (On K10 family processors the direct

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-07-27 Thread Alan Cox
alc 2008-07-27 18:18:50 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: SVN rev 180846 on 2008-07-27 18:18:50Z by alc Style fixes to several function definitions. Revision ChangesPath 1.636 +4 -

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-27 Thread Alan Cox
alc 2008-07-27 17:32:36 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180845 on 2008-07-27 17:32:36Z by alc Enhance pmap_change_attr(). Use pmap_demote_pde() to demote a 2MB page mapping to 4KB page mappings when the specified att

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-07-18 Thread Alan Cox
alc 2008-07-18 22:05:51 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: SVN rev 180601 on 2008-07-18 22:05:51Z by alc Correct an error in pmap_change_attr()'s initial loop that verifies that the given range o

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-07-18 Thread Alan Cox
alc 2008-07-18 20:07:50 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: SVN rev 180600 on 2008-07-18 20:07:50Z by alc Simplify pmap_extract()'s control flow, making it more like the related functions pmap_ext

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-13 Thread Alan Cox
alc 2008-07-13 18:19:53 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180498 on 2008-07-13 18:19:53Z by alc Handle a race between pmap_kextract() and pmap_promote_pde(). This race caused ZFS to crash when restoring a snapshot with

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-12 Thread Alan Cox
alc 2008-07-12 21:24:42 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180485 on 2008-07-12 21:24:42Z by alc Refine the changes made in SVN rev 180430. Specifically, instantiate a new page table page only if the 2MB page mapping ha

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-12 Thread Alan Cox
alc 2008-07-12 18:43:57 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180483 on 2008-07-12 18:43:57Z by alc In order to apply pmap_demote_pde() to a page directory entry (PDE) from the direct map, the PDE must have PG_M and PG_A pr

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-10 Thread Alan Cox
alc 2008-07-10 16:22:24 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180430 on 2008-07-10 16:22:24Z by alc Extend pmap_demote_pde() to include the ability to instantiate a new page table page where none existed before. Revisi

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-08 Thread Alan Cox
alc 2008-07-09 06:04:10 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180378 on 2008-07-09 06:04:10Z by alc Fix lines that are too long in pmap_growkernel() by substituting shorter but equivalent expressions. Revision Changes

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h vmparam.h

2008-07-08 Thread Alan Cox
alc 2008-07-08 22:59:17 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includepmap.h vmparam.h Log: SVN rev 180373 on 2008-07-08 22:59:17Z by alc Eliminate pmap_growkernel()'s dependence on create_pagetables() preallocating pa

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-07-07 Thread Alan Cox
alc 2008-07-07 17:25:09 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: SVN rev 180352 on 2008-07-07 17:25:09Z by alc In FreeBSD 7.0 and beyond, pmap_growkernel() should pass VM_ALLOC_INTERRUPT to vm_page_all

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h

2008-07-06 Thread Alan Cox
alc 2008-07-06 22:36:28 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includepmap.h Log: SVN rev 180333 on 2008-07-06 22:36:28Z by alc Change create_pagetables() and pmap_init() so that many fewer page table pages have to be

cvs commit: src/sys/amd64/amd64 pmap.c

2008-07-01 Thread Alan Cox
alc 2008-07-02 05:41:23 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 180170 on 2008-07-02 05:41:23Z by alc Eliminate an unnecessary static variable: nkpt. Revision ChangesPath 1.624 +2 -9 src/sys/amd64/amd64/pma

cvs commit: src/sys/amd64/amd64 pmap.c

2008-06-21 Thread Alan Cox
alc 2008-06-21 19:19:09 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 179917 on 2008-06-21 19:19:09Z by alc Prepare for a larger kernel virtual address space. Specifically, once KERNBASE and VM_MIN_KERNEL_ADDRESS are no longer the

cvs commit: src/sys/amd64/amd64 pmap.c

2008-06-13 Thread Alan Cox
alc 2008-06-13 19:33:56 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 179777 on 2008-06-13 19:33:56Z by alc Tweak the promotion test in pmap_promote_pde(). Specifically, test PG_A before PG_M. This sometimes prevents unnecessary

cvs commit: src/sys/amd64/amd64 pmap.c

2008-06-11 Thread Alan Cox
alc 2008-06-12 05:18:09 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 179749 on 2008-06-12 05:18:09Z by alc Reverse the direction of pmap_promote_pde()'s traversal over the specified page table page. The direction of the traversal

cvs commit: src/sys/amd64/amd64 pmap.c

2008-06-01 Thread Alan Cox
alc 2008-06-01 07:37:18 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: SVN rev 179471 on 2008-06-01 07:36:59Z by alc Correct an error in pmap_promote_pde() that may result in an errant promotion within the kernel's address space. Specifica

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/arm/arm pmap.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 pmap.c src/sys/mips/mips pmap.c src/sys/powerpc/booke pmap.c src/sys/powerpc/powerpc mmu_if.m p

2008-05-17 Thread Alan Cox
alc 2008-05-18 04:16:57 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/arm/arm pmap.c sys/i386/i386pmap.c sys/ia64/ia64pmap.c sys/mips/mipspmap.c sys/powerpc/bookepmap.c sys/powerpc/powe

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-05-11 Thread Alan Cox
alc 2008-05-11 20:33:47 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Correct an error in pmap_align_superpage(). Specifically, correctly handle the case where the mapping is greater than a superpage in size

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c src/sys/vm pmap.h

2008-05-09 Thread Alan Cox
alc 2008-05-09 16:48:07 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c sys/vm pmap.h Log: Introduce pmap_align_superpage(). It increases the starting virtual address of the given mapping if a diffe

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-04-25 Thread Alan Cox
alc 2008-04-25 16:00:39 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Always use PG_PS_FRAME to extract the physical address of a 2/4MB page from a PDE. Revision ChangesPath 1.615 +10 -9 src/

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-04-10 Thread Alan Cox
alc 2008-04-10 16:04:50 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Correct pmap_copy()'s method for extracting the physical address of a 2/4MB page from a PDE. Specifically, change it to use PG_PS_FRAME, n

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-04-07 Thread Alan Cox
alc 2008-04-07 07:38:03 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Update pmap_page_wired_mappings() so that it counts 2/4MB page mappings. Revision ChangesPath 1.613 +18 -4 src/sys/amd64/am

cvs commit: src/sys/amd64/amd64 pmap.c

2008-04-04 Thread Alan Cox
alc 2008-04-04 18:00:22 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Eliminate an unnecessary test and its misleading comment from pmap_enter(). Revision ChangesPath 1.612 +0 -6 src/sys/amd64/amd64/pmap.c ___

cvs commit: src/sys/amd64/amd64 pmap.c

2008-04-01 Thread Alan Cox
alc 2008-04-02 04:39:47 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Optimize pmap_pml4e() and pmap_pdpe() based upon two observations: The given pmap is never NULL, and therefore pmap_pml4e() can never return NULL. The pervasive use of the

cvs commit: src/sys/amd64/amd64 pmap.c

2008-03-23 Thread Alan Cox
alc 2008-03-23 23:04:09 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Correct an error in pmap_mincore() when applied to a 2MB page mapping: Use PG_PS_FRAME, not PG_FRAME, to obtain the physical address of the 2MB physical page from the PDE.

cvs commit: src/sys/amd64/amd64 pmap.c

2008-03-23 Thread Alan Cox
alc 2008-03-23 20:38:01 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: To date, we have assumed that the TLB will only set the PG_M bit in a PTE if that PTE has the PG_RW bit set. However, this assumption does not hold on recent processors fr

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h

2008-03-04 Thread Alan Cox
alc 2008-03-04 18:50:15 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includepmap.h Log: Add support for automatic promotion of 4KB page mappings to 2MB page mappings. Automatic promotion can be enabled by setting the tunable "

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-01-17 Thread Alan Cox
alc 2008-01-17 18:25:52 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Retire PMAP_DIAGNOSTIC. Any useful diagnostics that were conditionally compiled under PMAP_DIAGNOSTIC are now KASSERT()s. (Note: The kernel

cvs commit: src/sys/amd64/amd64 pmap.c

2008-01-14 Thread Alan Cox
alc 2008-01-14 21:25:06 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Make pmap_is_prefaultable() more TLB friendly. Specifically, make it use the kernel's direct map instead of the pmap's recursive mapping to access the lowest level in the

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-01-08 Thread Alan Cox
alc 2008-01-08 08:30:31 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Convert a PMAP_DIAGNOSTIC to a KASSERT. Revision ChangesPath 1.603 +2 -9 src/sys/amd64/amd64/pmap.c 1.606 +2 -9

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h src/sys/i386/i386 pmap.c src/sys/i386/include pmap.h

2008-01-06 Thread Alan Cox
alc 2008-01-06 18:51:04 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/includepmap.h sys/i386/i386pmap.c sys/i386/include pmap.h Log: Shrink the size of struct vm_page on amd64 and i386 by eliminating pv_list_

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/arm/arm pmap.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 pmap.c src/sys/powerpc/powerpc pmap_dispatch.c src/sys/sparc64/sparc64 pmap.c src/sys/sun4v/sun

2008-01-02 Thread Alan Cox
alc 2008-01-03 07:34:34 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/arm/arm pmap.c sys/i386/i386pmap.c sys/ia64/ia64pmap.c sys/powerpc/powerpc pmap_dispatch.c sys/sparc64/sparc64 pmap.c sys/sun

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2008-01-02 Thread Alan Cox
alc 2008-01-02 08:54:39 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Provide a legitimate pindex to vm_page_alloc() in pmap_growkernel() instead of writing apologetic comments. As it turns out, I need every

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/conf files.amd64 files.i386 src/sys/i386/i386 pmap.c src/sys/sys cdefs.h

2007-12-13 Thread Alan Cox
alc 2007-12-13 19:34:23 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/amd64/amd64 pmap.c sys/conf files.amd64 files.i386 sys/i386/i386pmap.c sys/sys cdefs.h Log: MFC Eliminate compilation warn

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/conf files.amd64 files.i386 src/sys/i386/i386 pmap.c src/sys/sys cdefs.h

2007-12-09 Thread Alan Cox
alc 2007-12-09 21:00:36 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/conf files.amd64 files.i386 sys/i386/i386pmap.c sys/sys cdefs.h Log: Eliminate compilation warnings due to the use of non-static

cvs commit: src/sys/amd64/amd64 pmap.c

2007-12-08 Thread Alan Cox
alc 2007-12-08 21:48:28 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Use 1GB virtual pages to implement the direct map on architectures that support this feature. Wrap a nearby line that is too long. MFC after: 6 weeks Revision

cvs commit: src/sys/amd64/amd64 pmap.c

2007-12-04 Thread Alan Cox
alc 2007-12-04 08:17:04 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Style change: Use NULL rather than 0 where appropriate. Revision ChangesPath 1.597 +3 -3 src/sys/amd64/amd64/pmap.c ___

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-11-29 Thread Alan Cox
alc 2007-11-30 07:14:42 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Improve get_pv_entry()'s handling of low-memory conditions. After page allocation fails and pv entries are reclaimed, there may be an unused

cvs commit: src/sys/amd64/amd64 pmap.c

2007-11-28 Thread Alan Cox
alc 2007-11-28 22:41:14 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Account for pv entry pages in the total number of wired pages. (Note: pv entry pages have always been included in the total number of wired pages on i386 just not amd64.)

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/arm/arm pmap.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 pmap.c src/sys/powerpc/powerpc mmu_if.m mmu_oea.c pmap_dispatch.c src/sys/sparc64/sparc64 pmap.

2007-11-17 Thread Alan Cox
alc 2007-11-17 22:52:30 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/arm/arm pmap.c sys/i386/i386pmap.c sys/ia64/ia64pmap.c sys/powerpc/powerpc mmu_if.m mmu_oea.c pmap_dispatch.c sys/sparc64/sparc64

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-11-08 Thread Alan Cox
alc 2007-11-08 18:02:27 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: MFC Add comments explaining why all stores updating a non-kernel page table must be globally performed before

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-11-08 Thread Alan Cox
alc 2007-11-08 17:17:23 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: MFC Add comments explaining why all stores updating a non-kernel page table must be globally performed before

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-11-07 Thread Alan Cox
alc 2007-11-08 04:37:02 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: MFC Eliminate spurious "Approaching the limit on PV entries, ..." warnings by get_pv_entry(). Eliminat

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-11-05 Thread Alan Cox
alc 2007-11-05 18:13:34 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Add comments explaining why all stores updating a non-kernel page table must be globally performed before calling any of the TLB invalidation

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-11-02 Thread Alan Cox
alc 2007-11-03 05:15:26 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Eliminate spurious "Approaching the limit on PV entries, ..." warnings. Specifically, whenever vm_page_alloc(9) returned NULL to get_pv_en

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-08-20 Thread Alan Cox
alc 2007-08-21 04:59:34 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: In general, when we map a page into the kernel's address space, we no longer create a pv entry for that mapping. (The two exceptions are m

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-07-01 Thread Alan Cox
alc 2007-07-01 07:08:26 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Pages that do belong to an object and page queue can now be freed without holding the page queues lock. Thus, the page table pages released

cvs commit: src/sys/amd64/amd64 pmap.c

2007-06-16 Thread Matt Jacob
mjacob 2007-06-17 04:27:46 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Check for pte being NULL in return from pmap_pte_pde- unlikely or even impossible, but it's better ot have a panic and a quiesced gcc4.2. Revision ChangesPath 1

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c src/sys/sparc64/sparc64 pmap.c src/sys/sun4v/sun4v pmap.c tsb.c tte_hash.c src/sys/sys vmmeter.h src/sys/vm vm_page.c

2007-05-20 Thread Jeff Roberson
jeff2007-05-20 22:33:42 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c sys/sparc64/sparc64 pmap.c sys/sun4v/sun4v pmap.c tsb.c tte_hash.c sys/sys vmmeter.h sys/vm vm_page.

cvs commit: src/sys/amd64/amd64 pmap.c

2007-05-06 Thread Alan Cox
alc 2007-05-06 18:36:57 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/amd64/amd64 pmap.c Log: MFC a change to pmap_copy() that was overlooked because revision 1.583 was MFCed before revision 1.540. RevisionChangesPath 1.516.2.1

cvs commit: src/sys/amd64/amd64 pmap.c

2007-05-05 Thread Alan Cox
alc 2007-05-06 00:34:44 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/amd64/amd64 pmap.c Log: MFC Revision 1.538: Remove stale KSE code. MFC Revision 1.551: In general, bits in the page directory entry (PDE) and the page table

cvs commit: src/sys/amd64/amd64 pmap.c

2007-05-05 Thread Alan Cox
alc 2007-05-05 18:58:22 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/amd64/amd64 pmap.c Log: MFC Revision 1.530 Replace diagnostic printf()s by assertions. Use consistent style for similar assertions. MFC Revision 1.540 Intro

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c [NDA's]

2007-04-26 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Sam Leffler writes: >The key to working with companies is always to establish a level of >trust and a relationship with people that work there. Everything else >falls out as a result. A CTO once said to me in perfect dead pan way: "They only people we can't get t

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c [NDA's]

2007-04-26 Thread Nate Lawson
Sam Leffler wrote: > Yar Tikhiy wrote: > >> Was the change based on a document under NDA? Then this case raises >> an interesting question: to what extent an open source developer >> is allowed to explain his code that was based on a document under >> NDA? Of course, it should depend on the NDA,

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c [NDA's]

2007-04-26 Thread Sam Leffler
Yar Tikhiy wrote: > Was the change based on a document under NDA? Then this case raises > an interesting question: to what extent an open source developer > is allowed to explain his code that was based on a document under > NDA? Of course, it should depend on the NDA, but I suspect that a > typ

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-26 Thread Stephan Uphoff
Yar Tikhiy wrote: On Thu, Apr 26, 2007 at 02:41:02AM -0600, Scott Long wrote: Yar Tikhiy wrote: On Thu, Apr 26, 2007 at 12:42:14AM -0600, Scott Long wrote: Yar Tikhiy wrote: On Wed, Apr 25, 2007 at 02:41:00PM -0400, Stephan Uphoff wrote: Yar Tikhiy wrote:

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-26 Thread Yar Tikhiy
On Thu, Apr 26, 2007 at 02:41:02AM -0600, Scott Long wrote: > Yar Tikhiy wrote: > >On Thu, Apr 26, 2007 at 12:42:14AM -0600, Scott Long wrote: > >>Yar Tikhiy wrote: > >>>On Wed, Apr 25, 2007 at 02:41:00PM -0400, Stephan Uphoff wrote: > Yar Tikhiy wrote: > >On Sat, Apr 21, 2007 at 09:54:12AM

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-26 Thread Tom Rhodes
On Thu, 26 Apr 2007 02:10:05 -0700 Colin Percival <[EMAIL PROTECTED]> wrote: > Scott Long wrote: > > Yar Tikhiy wrote: > >> [snip] > >> It's a good news! But what about explaining the code to the public? > >> > >> - Mr. Developer, why does it take an ugly hack to make the device work? > >> - Can'

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-26 Thread Colin Percival
Scott Long wrote: > Yar Tikhiy wrote: >> [snip] >> It's a good news! But what about explaining the code to the public? >> >> - Mr. Developer, why does it take an ugly hack to make the device work? >> - Can't tell ya, I'm under NDA. > > I think you have to respect that John and Stephan were doing

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-26 Thread Scott Long
Yar Tikhiy wrote: On Thu, Apr 26, 2007 at 12:42:14AM -0600, Scott Long wrote: Yar Tikhiy wrote: On Wed, Apr 25, 2007 at 02:41:00PM -0400, Stephan Uphoff wrote: Yar Tikhiy wrote: On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-26 Thread Yar Tikhiy
On Thu, Apr 26, 2007 at 12:42:14AM -0600, Scott Long wrote: > Yar Tikhiy wrote: > >On Wed, Apr 25, 2007 at 02:41:00PM -0400, Stephan Uphoff wrote: > >>Yar Tikhiy wrote: > >>>On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: > >>> > On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-25 Thread Scott Long
Yar Tikhiy wrote: On Wed, Apr 25, 2007 at 02:41:00PM -0400, Stephan Uphoff wrote: Yar Tikhiy wrote: On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann wrote: Stephan Uphoff wrote: ups 2007-04-21 14:17:30 UTC

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-25 Thread Yar Tikhiy
On Wed, Apr 25, 2007 at 02:41:00PM -0400, Stephan Uphoff wrote: > Yar Tikhiy wrote: > >On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: > > > >>On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann wrote: > >> > >>>Stephan Uphoff wrote: > >>> > ups 2007-04-21 14:17

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-25 Thread Stephan Uphoff
Yar Tikhiy wrote: On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann wrote: Stephan Uphoff wrote: ups 2007-04-21 14:17:30 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c s

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-25 Thread Stephan Uphoff
ups 2007-04-25 18:21:24 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: MFC: Invalidate all TLBs and page structure caches that may reference a page for page walk acceleration before re

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-25 Thread Stephan Uphoff
ups 2007-04-25 18:10:44 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Forced commit to add more comment to: 1.583 src/sys/amd64/amd64/pmap.c 1.588 src/sys/i386/i386/pmap.c Invalidate all TLBs and pag

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-24 Thread John Baldwin
On Tuesday 24 April 2007 05:18:59 am Yar Tikhiy wrote: > On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: > > On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann wrote: > > > Stephan Uphoff wrote: > > > > ups 2007-04-21 14:17:30 UTC > > > > > > > > FreeBSD src repository > >

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-24 Thread Yar Tikhiy
On Sat, Apr 21, 2007 at 09:54:12AM -0600, Coleman Kane wrote: > On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann wrote: > > Stephan Uphoff wrote: > > > ups 2007-04-21 14:17:30 UTC > > > > > > FreeBSD src repository > > > > > > Modified files: > > > sys/amd64/amd64 pmap.c >

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-21 Thread Coleman Kane
On Sat, 2007-04-21 at 17:03 +0200, Andre Oppermann wrote: > Stephan Uphoff wrote: > > ups 2007-04-21 14:17:30 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/amd64/amd64 pmap.c > > sys/i386/i386pmap.c > > Log: > > Modify TLB invalidation h

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-21 Thread Andre Oppermann
Stephan Uphoff wrote: ups 2007-04-21 14:17:30 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Modify TLB invalidation handling. Reviewed by:alc@, peter@ MFC after: 1 week Could you be a bit mor

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-21 Thread Stephan Uphoff
ups 2007-04-21 14:17:30 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Modify TLB invalidation handling. Reviewed by:alc@, peter@ MFC after: 1 week Revision ChangesPath 1.583 +78 -33

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2007-04-13 Thread Alan Cox
alc 2007-04-13 16:07:29 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c Log: Eliminate the misuse of PG_FRAME to truncate a virtual address to a virtual page boundary. Reviewed by: ru@ Revision ChangesPa

cvs commit: src/sys/amd64/amd64 pmap.c

2007-03-10 Thread Alan Cox
alc 2007-03-10 20:26:43 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Completely eliminate "avail_start". It serves no useful purpose. Revision ChangesPath 1.581 +14 -18src/sys/amd64/amd64/pmap.c _

cvs commit: src/sys/amd64/amd64 pmap.c

2007-02-28 Thread Konstantin Belousov
kib 2007-02-28 09:27:45 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/amd64/amd64 pmap.c Log: MFC rev. 1.579: MFi386 rev. 1.544 of i386/i386/pmap.c: Rounding addr upwards to next 2M boundary in pmap_growkernel() could cause addr to become 0

cvs commit: src/sys/amd64/amd64 pmap.c

2007-02-19 Thread Konstantin Belousov
kib 2007-02-19 10:55:16 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: MFi386 rev. 1.544 of i386/i386/pmap.c: Rounding addr upwards to next 2M boundary in pmap_growkernel() could cause addr to become 0, resulting in an early return without pop

cvs commit: src/sys/amd64/amd64 pmap.c uma_machdep.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 uma_machdep.c

2007-02-17 Thread Alan Cox
alc 2007-02-18 06:33:02 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c uma_machdep.c sys/i386/i386pmap.c sys/ia64/ia64uma_machdep.c Log: Eliminate some acquisitions and releases of the page queues lock that are no longer nec

cvs commit: src/sys/amd64/amd64 pmap.c

2006-11-23 Thread Ruslan Ermilov
ru 2006-11-23 21:37:04 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Use a define instead of a "magic" value. Revision ChangesPath 1.576 +1 -1 src/sys/amd64/amd64/pmap.c ___ cvs-al

cvs commit: src/sys/amd64/amd64 pmap.c

2006-11-23 Thread Ruslan Ermilov
ru 2006-11-23 21:36:02 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c Log: Finish the PG_NX support at the pmap level. Reviewed by:alc Revision ChangesPath 1.575 +12 -3 src/sys/amd64/amd64/pmap.c __

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/arm/arm pmap.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 pmap.c src/sys/powerpc/powerpc mmu_oea.c src/sys/sparc64/sparc64 pmap.c src/sys/sun4v/sun4v

2006-11-12 Thread Kip Macy
Thanks Alan, this is a definite improvement. For the benefit of other readers: below I have the ten locks with longest max_wait (total time in microseconds spent waiting for the lock) during the compile phase of a "make -j32 buildkernel" on a T2000 (8 cores w/ 4 threads per core). The reduction i

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/arm/arm pmap.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 pmap.c src/sys/powerpc/powerpc mmu_oea.c src/sys/sparc64/sparc64 pmap.c src/sys/sun4v/sun4v pma

2006-11-12 Thread Alan Cox
alc 2006-11-12 21:48:34 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/arm/arm pmap.c sys/i386/i386pmap.c sys/ia64/ia64pmap.c sys/powerpc/powerpc mmu_oea.c sys/sparc64/sparc64 pmap.c sys/sun4v/sun

cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c src/sys/ia64/ia64 pmap.c

2006-10-21 Thread Alan Cox
alc 2006-10-22 04:18:01 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/i386/i386pmap.c sys/ia64/ia64pmap.c Log: Eliminate unnecessary PG_BUSY tests. Revision ChangesPath 1.572 +1 -1 src/sys/amd64/amd64

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2006-10-03 Thread Martin Blapp
Hi, Sorry about the previous mail. Unfortunatly it proved that I can add a kernel option (DDB_UNATTENDED) to make a kernel with rev. 1.563 of sys/i386/i386/pmap.c in place to not crash anymore. The strange thing is, I've compiled GENERIC kernels from '2006-10-01', '2006-09-01', '2006-08-01'

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2006-10-01 Thread Alan Cox
Martin Blapp wrote: Hi, The assertion that fails for you under HEAD does not exist in RELENG_6. Have you seen a different assertion failure or crash in RELENG_6 since this patch was applied there? I would have to backgrade my box to RELENG_6 to do so. But you may try it yourself, just u

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2006-10-01 Thread Martin Blapp
Hi, The assertion that fails for you under HEAD does not exist in RELENG_6. Have you seen a different assertion failure or crash in RELENG_6 since this patch was applied there? I would have to backgrade my box to RELENG_6 to do so. But you may try it yourself, just use a box which has many

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2006-10-01 Thread Alan Cox
Martin Blapp wrote: Hi Alan, This commit makes my box crash with HEAD at startup. Please back it out and investige why it happens. I'm pretty sure that it happens for RELENG_6 too. The assertion that fails for you under HEAD does not exist in RELENG_6. Have you seen a different assertion

Re: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/i386/i386 pmap.c

2006-10-01 Thread Martin Blapp
Hi Alan, This commit makes my box crash with HEAD at startup. Please back it out and investige why it happens. I'm pretty sure that it happens for RELENG_6 too. Martin Martin Blapp, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> -- Impro

  1   2   >