svn commit: r348363 - head/sys/dev/pci
Ruslan Bukin
br at FreeBSD.org
Wed May 29 15:53:34 UTC 2019
Author: br
Date: Wed May 29 15:53:33 2019
New Revision: 348363
URL: https://svnweb.freebsd.org/changeset/base/348363
Log:
Pass pci_base address instead of physical address to rman_manage_region().
This should had been part of r347930 ("pci: ecam: Correctly parse memory
and IO region").
Sponsored by: DARPA, AFRL
Modified:
head/sys/dev/pci/pci_host_generic_fdt.c
Modified: head/sys/dev/pci/pci_host_generic_fdt.c
==============================================================================
--- head/sys/dev/pci/pci_host_generic_fdt.c Wed May 29 14:28:13 2019 (r348362)
+++ head/sys/dev/pci/pci_host_generic_fdt.c Wed May 29 15:53:33 2019 (r348363)
@@ -167,11 +167,11 @@ pci_host_generic_attach(device_t dev)
continue; /* empty range element */
if (sc->base.ranges[tuple].flags & FLAG_MEM) {
error = rman_manage_region(&sc->base.mem_rman,
- phys_base, phys_base + size - 1);
+ pci_base, pci_base + size - 1);
} else if (sc->base.ranges[tuple].flags & FLAG_IO) {
error = rman_manage_region(&sc->base.io_rman,
- pci_base + PCI_IO_WINDOW_OFFSET,
- pci_base + PCI_IO_WINDOW_OFFSET + size - 1);
+ pci_base + PCI_IO_WINDOW_OFFSET,
+ pci_base + PCI_IO_WINDOW_OFFSET + size - 1);
} else
continue;
if (error) {
More information about the svn-src-all
mailing list