Skip to content

Commit

Permalink
[PATCH] ppc64: Fix the lazy icache/dcache code for non-RAM pages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Nov 8, 2005
1 parent b354cab commit 76c8e25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/mm/hash_utils_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap)
{
struct page *page;

if (!pfn_valid(pte_pfn(pte)))
return pp;

page = pte_page(pte);

/* page is dirty */
Expand Down

0 comments on commit 76c8e25

Please sign in to comment.