Re: [PATCH] agp/uninorth: Fix oops caused by flushing too much

2010-06-07 Thread Michel Dänzer
On Mit, 2010-06-02 at 15:33 +1000, Paul Mackerras wrote: > This fixes a sporadic oops at boot on G5 Power Macs. The table_end > variable has the address of the last byte of the table. Adding on > PAGE_SIZE means we flush too much, and if the page after the table > is not mapped for any reason, t

[PATCH] agp/uninorth: Fix oops caused by flushing too much

2010-06-01 Thread Paul Mackerras
This fixes a sporadic oops at boot on G5 Power Macs. The table_end variable has the address of the last byte of the table. Adding on PAGE_SIZE means we flush too much, and if the page after the table is not mapped for any reason, the kernel will oops. Instead we add on 1 because flush_dcache_ran