From: Bjorn Helgaas Date: Mon, 6 Jan 2014 21:43:13 +0000 (-0700) Subject: agp/intel: Use CPU physical address, not bus address, for ioremap() X-Git-Tag: v3.14-rc1~132^2~7^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3572532993c7e8635ad8e5b50f8f613bf855ee2;p=pandora-kernel.git agp/intel: Use CPU physical address, not bus address, for ioremap() In i810_setup(), i830_setup(), and i9xx_setup(), we use the result of pci_bus_address() as an argument to ioremap() and to compute gtt_phys_addr. These should use pci_resource_start() instead because we want the CPU physical address, not the bus address. If there were an AGP device behind a host bridge that translated addresses, e.g., a PNP0A08 device with _TRA != 0, this would fix a bug. I'm not aware of any of those, but they are possible. Signed-off-by: Bjorn Helgaas Reviewed-by: Daniel Vetter --- Reading git-diff-tree failed