From: Paul Mackerras Date: Tue, 1 Jun 2010 19:33:08 +0000 (+0000) Subject: agp/uninorth: Fix oops caused by flushing too much X-Git-Tag: v2.6.35-rc2~45^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79905ad50bcf025deb81382413719ed600734941;p=pandora-kernel.git agp/uninorth: Fix oops caused by flushing too much 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_range() interprets its second argument as the first byte past the range to be flushed. Signed-off-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed