lkml.org 
[lkml]   [2009]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] VM, x86, PAT: Change implementation of is_linear_pfn_mapping
Date
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>


\
 
 \ /
  Last update: 2009-03-12 21:33    [W:1.396 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site