aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/inventory.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@bell.net>2013-07-23 12:27:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-11 18:35:21 -0700
commitb81ed4057ca3d8a069b1d7f7919263b31776d208 (patch)
treec6c5f39af903881ed53f21e89e7122dd6a3be37b /arch/parisc/kernel/inventory.c
parent6a3f7e9ec5c41da18fa1eec3cb9a2d3f2e5e14e3 (diff)
parisc: Fix cache routines to ignore vma's with an invalid pfn
commit 50861f5a02dbf939c27d35a26c472885e2844188 upstream. The parisc architecture does not have a pte special bit. As a result, special mappings are handled with the VM_PFNMAP and VM_MIXEDMAP flags. VM_MIXEDMAP mappings may or may not have a "struct page" backing. When pfn_valid() is false, there is no "struct page" backing. Otherwise, they are treated as normal pages. The FireGL driver uses the VM_MIXEDMAP without a backing "struct page". This treatment caused a panic due to a TLB data miss in update_mmu_cache. This appeared to be in the code generated for page_address(). We were in fact using a very circular bit of code to determine the physical address of the PFN in various cache routines. This wasn't valid when there was no "struct page" backing. The needed address can in fact be determined simply from the PFN itself without using the "struct page". The attached patch updates update_mmu_cache(), flush_cache_mm(), flush_cache_range() and flush_cache_page() to check pfn_valid() and to directly compute the PFN physical and virtual addresses. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/parisc/kernel/inventory.c')
0 files changed, 0 insertions, 0 deletions