diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-06-17 14:43:34 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-06-17 14:45:03 -0500 |
commit | 3b146b24a40096d1a42f288e237e24352c93269e (patch) | |
tree | 30d6f0f41d58bcd0270f9d018f549fb2ec94a9df /mm/memtest.c | |
parent | 38301358573be7398e43115170f2d76598c8d43b (diff) | |
download | linux-stable-3b146b24a40096d1a42f288e237e24352c93269e.tar.gz linux-stable-3b146b24a40096d1a42f288e237e24352c93269e.tar.bz2 linux-stable-3b146b24a40096d1a42f288e237e24352c93269e.zip |
sparc/PCI: Implement pci_resource_to_user() with pcibios_resource_to_bus()
"User" addresses are shown in /sys/devices/pci.../.../resource and
/proc/bus/pci/devices and used as mmap offsets for /proc/bus/pci/BB/DD.F
files. On sparc, these are PCI bus addresses, i.e., raw BAR values.
Previously pci_resource_to_user() computed the user address by
subtracting either pbm->io_space.start or pbm->mem_space.start from the
resource start.
We've already told the PCI core about those offsets here:
pci_scan_one_pbm()
pci_add_resource_offset(&resources, &pbm->io_space, pbm->io_space.start);
pci_add_resource_offset(&resources, &pbm->mem_space, pbm->mem_space.start);
pci_add_resource_offset(&resources, &pbm->mem64_space, pbm->mem_space.start);
so pcibios_resource_to_bus() knows how to do that translation.
No functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'mm/memtest.c')
0 files changed, 0 insertions, 0 deletions