Messages in this thread | | | From | Frans Pop <> | Subject | Re: [PATCH] VM, x86, PAT: Change implementation of is_linear_pfn_mapping | Date | Thu, 12 Mar 2009 21:30:21 +0100 |
| |
On Thursday 12 March 2009, Pallipadi, Venkatesh wrote: > OK, Looking more at the code, I now understand how the patch from > yday resulted in the oops you saw. Here goes my nth attempt at solving > this problem. Can you please test this patch.
System has been running stable for almost an hour now with pat enabled, so it looks like the problem is solved.
FYI, with early .29 RCs I had the following when running VirtualBox: kernel: WARNING: at arch/x86/mm/pat.c:620 reserve_pfn_range+0x5b/0x26d()
After be03d9e80220 (which probably fixed that) VirtualBox could no longer be loaded at all with pat enabled, but with this patch added VirtualBox runs perfectly again.
Thanks Venki.
> Use of vma->vm_pgoff to identify the pfnmaps that are fully > mapped at mmap time is broken. vm_pgoff is set by generic mmap > code even for cases where drivers are setting up the mappings > at the fault time. > > The problem was originally reported here. > http://marc.info/?l=linux-kernel&m=123383810628583&w=2 > > Change is_linear_pfn_mapping logic to overload VM_INSERTPAGE > flag along with VM_PFNMAP to mean full PFNMAP setup at mmap > time. > > Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> > Signed-off-by: Suresh Siddha <suresh.b.siddha>@intel.com>
Tested-by: Frans Pop <elendil@planet.nl>
| |