From: David Miller Date: Thu, 12 Feb 2009 10:15:27 +0000 (-0800) Subject: drm: ati_pcigart: Do not access I/O MEM space using pointer derefs. X-Git-Tag: v2.6.30-rc1~613^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7aad9a559a5488cbef7aa3d4d96fc28220b8ae;p=pandora-kernel.git drm: ati_pcigart: Do not access I/O MEM space using pointer derefs. The PCI GART table initialization code treats the GART table mapping unconditionally as a kernel virtual address. But it could be in the framebuffer, for example, and thus we're dealing with a PCI MEM space ioremap() cookie. Treating that as a virtual address is illegal and will crash some system types (such as sparc64 where the ioremap() return value is actually a physical I/O address). So access the area correctly, using gart_info->gart_table_location as our guide. Signed-off-by: David S. Miller Signed-off-by: Dave Airlie --- Reading git-diff-tree failed