summaryrefslogtreecommitdiffstats
path: root/drivers/ps3/ps3-sys-manager.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2010-10-06 21:45:00 +0200
committerAndi Kleen <ak@linux.intel.com>2010-10-08 09:32:46 +0200
commitaa50d3a7aa8147b9e14dc9d5972a5d2359db4ef8 (patch)
tree68fae5060333dcc24c17e9dd00a87bd760d883e9 /drivers/ps3/ps3-sys-manager.c
parentFix build error with !CONFIG_MIGRATION (diff)
downloadlinux-aa50d3a7aa8147b9e14dc9d5972a5d2359db4ef8.tar.xz
linux-aa50d3a7aa8147b9e14dc9d5972a5d2359db4ef8.zip
Encode huge page size for VM_FAULT_HWPOISON errors
This fixes a problem introduced with the hugetlb hwpoison handling The user space SIGBUS signalling wants to know the size of the hugepage that caused a HWPOISON fault. Unfortunately the architecture page fault handlers do not have easy access to the struct page. Pass the information out in the fault error code instead. I added a separate VM_FAULT_HWPOISON_LARGE bit for this case and encode the hpage index in some free upper bits of the fault code. The small page hwpoison keeps stays with the VM_FAULT_HWPOISON name to minimize changes. Also add code to hugetlb.h to convert that index into a page shift. Will be used in a further patch. Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: fengguang.wu@intel.com Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/ps3/ps3-sys-manager.c')
0 files changed, 0 insertions, 0 deletions