freebsd-dev/sys/dev/pci
Greg V 0eb901f760 pci_host_generic: implement bus_translate_resource (for LinuxKPI)
In D21096 BUS_TRANSLATE_RESOURCE was introduced to allow LinuxKPI to get
physical addresses in pci_resource_start for PowerPC and implemented
in ofw_pci.
When the translation was implemented in pci_host_generic in 372c142b4f,
this method was not implemented; instead a local static function was
added for a similar purpose.
Rename the static function to "_common" and implement the bus function
as a wrapper around that.  With this a LinuxKPI driver using
physical addresses correctly finds the configuration registers of
the GPU.
This unbreaks amdgpu on NXP Layerscape LX2160A SoC (SolidRun HoneyComb
LX2K workstation) which has a Translation Offset in ACPI for
below-4G PCI addresses.

More info:	https://github.com/freebsd/drm-kmod/issues/84
Tested by:	dan.kotowski_a9development.com
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D30986
2021-09-27 17:19:05 +00:00
..
controller Use pmap_qenter in the N1SDP PCIe driver 2021-02-25 12:38:05 +00:00
fixup_pci.c
hostb_pci.c pci: clean up empty lines in .c and .h files 2020-09-01 22:00:07 +00:00
ignore_pci.c
isa_pci.c pci: clean up empty lines in .c and .h files 2020-09-01 22:00:07 +00:00
pci_dw_if.m
pci_dw_mv.c pci_dw_mv: Don't enable unhandled interrupts. 2021-03-01 14:03:34 +01:00
pci_dw.c pci_dw: Drop unconditional explicit DEBUG define 2021-08-07 21:25:36 +01:00
pci_dw.h pci_dw: Detect number of outbound regions automatically 2021-07-21 05:51:20 +01:00
pci_host_generic_acpi.c pci_host_generic: update Synopsys device description for ACPI 2021-09-16 16:53:11 +02:00
pci_host_generic_acpi.h
pci_host_generic_fdt.c pci_host_generic: Add Synopsys Designware PCIe controller quirk 2021-09-15 15:17:40 +02:00
pci_host_generic_fdt.h pci_host_generic_fdt.c: Add support for mapping dts nodes to PCI devices 2021-06-08 17:51:40 +02:00
pci_host_generic.c pci_host_generic: implement bus_translate_resource (for LinuxKPI) 2021-09-27 17:19:05 +00:00
pci_host_generic.h pci_host_generic: Add Synopsys Designware PCIe controller quirk 2021-09-15 15:17:40 +02:00
pci_if.m
pci_iov_if.m
pci_iov_private.h pci: clean up empty lines in .c and .h files 2020-09-01 22:00:07 +00:00
pci_iov_schema.c
pci_iov.c pci_iov: When pci_iov_detach(9) is called, destroy VF children 2020-12-18 03:46:50 +00:00
pci_iov.h
pci_pci.c pcib(4): Switch from callout to timeout_task. 2021-09-03 15:03:44 -04:00
pci_private.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
pci_subr.c
pci_user.c pci: Add an ioctl to perform I/O to BARs 2021-08-14 10:59:03 -04:00
pci.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
pcib_if.m
pcib_private.h pcib(4): Switch from callout to timeout_task. 2021-09-03 15:03:44 -04:00
pcib_support.c pci: clean up empty lines in .c and .h files 2020-09-01 22:00:07 +00:00
pcireg.h
pcivar.h Implement pci_get_relaxed_ordering_enabled() helper function. 2021-03-17 13:48:04 +01:00
schema_private.h
vga_pci.c pci: clean up empty lines in .c and .h files 2020-09-01 22:00:07 +00:00