freebsd-dev/sys/dev/pci
Kyle Evans bd93b5f79a pci_host_generic: stop address translation in bus_alloc_resource
Translating the provided range prior to rman_reserve_resource(9) is
decidedly wrong; the caller may be trying to do a wildcard allocation,
for which the implementation is expected to DTRT and clamp the range to
what's actually feasible.

We don't use the resulting translation here anyways, so just remove it
entirely -- the rman in the default implementation is derived from
sc->ranges, so the translation should trivially succeed every time as
long as the reservation succeeded.  If something has gone awry in a
derived driver, we'll detect it when we translate prior to activation,
so there's likely no diagnostic value in retaining the translation after
reservation either.

Reviewed by:	andrew
Noticed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D36618
2022-09-26 14:25:13 -05:00
..
controller pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
fixup_pci.c pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
hostb_pci.c pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
ignore_pci.c pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
isa_pci.c Remove isab_devclass from ISA bridge drivers. 2022-05-06 15:39:28 -07:00
pci_dw_if.m
pci_dw_mv.c pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
pci_dw.c
pci_dw.h
pci_host_generic_acpi.c pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
pci_host_generic_acpi.h
pci_host_generic_fdt.c Add fdt to name of a fdt specific function 2022-05-23 15:24:35 +01:00
pci_host_generic_fdt.h Add fdt to name of a fdt specific function 2022-05-23 15:24:35 +01:00
pci_host_generic.c pci_host_generic: stop address translation in bus_alloc_resource 2022-09-26 14:25:13 -05:00
pci_host_generic.h Clean up in the pci host generic driver 2022-06-17 10:36:17 +01:00
pci_if.m Add OFW_IOMMU id type for pci_get_id() so we can ask parent IOMMU 2022-05-07 10:21:09 +01:00
pci_iov_if.m
pci_iov_private.h
pci_iov_schema.c
pci_iov.c pci: Fix a -Wunused-but-set-variable warning 2022-02-28 10:54:42 -05:00
pci_iov.h
pci_pci.c pci: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:55 -07:00
pci_private.h Add UEFI locator for bus_get_device_path, pci acpi 2022-03-01 08:06:41 -07:00
pci_subr.c
pci_user.c
pci.c pci(4): Fix a typo in asource code comment 2022-09-03 15:28:05 +02:00
pcib_if.m
pcib_private.h
pcib_support.c Add OFW_IOMMU id type for pci_get_id() so we can ask parent IOMMU 2022-05-07 10:21:09 +01:00
pcireg.h
pcivar.h pci: Add helper routines to iterate over a device's BARs. 2022-08-19 14:59:06 -07:00
schema_private.h
vga_pci.c pmap_unmapdev/bios: Accept a pointer instead of a vm_offset_t. 2022-09-22 15:08:52 -07:00