aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-11-07 19:21:05 -0500
committerPaul Mackerras <paulus@samba.org>2005-11-07 21:07:50 -0500
commit76c8e25b905f99be5ddbe999597ba7c2c33ec64b (patch)
treec6d13a7064534116ef1c8c22021d8949d32393cc /arch
parentb354cab0763080df3735dcd0c64a545f266cc9e2 (diff)
[PATCH] ppc64: Fix the lazy icache/dcache code for non-RAM pages
For some stupid reason I can't explain (brown paper bag is at hand), I removed the check pfn_valid() in the code that does the icache/dcache coherency on POWER4 and later. That causes us to eventually try to access non existing struct page when hashing in IO pages. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/mm/hash_utils_64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index 3d83c3b84f0e..22e474876133 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -507,6 +507,9 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap)
507{ 507{
508 struct page *page; 508 struct page *page;
509 509
510 if (!pfn_valid(pte_pfn(pte)))
511 return pp;
512
510 page = pte_page(pte); 513 page = pte_page(pte);
511 514
512 /* page is dirty */ 515 /* page is dirty */