diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-06 14:43:13 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-07 11:37:18 -0700 |
commit | d3572532993c7e8635ad8e5b50f8f613bf855ee2 (patch) | |
tree | 4e6b9b4650bbc60add44d824469b357b831b2264 /drivers/char/hw_random | |
parent | b5e350f919acb8ef6961bc1b62e395f53cea123a (diff) |
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 <bhelgaas@google.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/char/hw_random')
0 files changed, 0 insertions, 0 deletions