]> Pileus Git - ~andy/linux/commit
agp: Use pci_resource_start() to get CPU physical address for BAR
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 6 Jan 2014 22:21:16 +0000 (15:21 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 Jan 2014 18:36:35 +0000 (11:36 -0700)
commitd68c5a271727e09ce4a26ea8b85cbb852e06650f
tree58f48c1f956a0a18f7dff57718ca19e0f4d2b6b1
parente501b3d87f003dfad8fcbd0f55ae17ea52495a56
agp: Use pci_resource_start() to get CPU physical address for BAR

amd_irongate_configure(), ati_configure(), and nvidia_configure() call
ioremap() on an address read directly from a BAR.  But a BAR contains a
bus address, and ioremap() expects a CPU physical address.  Use
pci_resource_start() to obtain the physical address.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/char/agp/amd-k7-agp.c
drivers/char/agp/ati-agp.c
drivers/char/agp/nvidia-agp.c