The branch main has been updated by wma:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=18027aa233f66ee2fd33e335f1d0e757e245aed0

commit 18027aa233f66ee2fd33e335f1d0e757e245aed0
Author:     Bartlomiej Grzesik <[email protected]>
AuthorDate: 2021-08-31 04:25:05 +0000
Commit:     Wojciech Macek <[email protected]>
CommitDate: 2021-08-31 04:25:05 +0000

    pci_host_generic_fdt: set domain number
    
    Set domain number to device unit.
    
    Some boards have multiple RCs handled by different drivers,
    this ensures that there are no collisions with ofw_pcib.
    
    Obtained from:          Semihalf
    Reviewed by:            wma
    Differential revision:  https://reviews.freebsd.org/D31508
---
 sys/dev/pci/pci_host_generic_fdt.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/dev/pci/pci_host_generic_fdt.c 
b/sys/dev/pci/pci_host_generic_fdt.c
index cb77c0c674a9..91ffaf7357b9 100644
--- a/sys/dev/pci/pci_host_generic_fdt.c
+++ b/sys/dev/pci/pci_host_generic_fdt.c
@@ -138,6 +138,14 @@ pci_host_generic_setup_fdt(device_t dev)
        /* TODO parse FDT bus ranges */
        sc->base.bus_start = 0;
        sc->base.bus_end = 0xFF;
+       
+       /*
+        * ofw_pcib uses device unit as PCI domain number.
+        * Do the same. Some boards have multiple RCs handled
+        * by different drivers, this ensures that there are
+        * no collisions.
+        */
+       sc->base.ecam = device_get_unit(dev);
 
        error = pci_host_generic_core_attach(dev);
        if (error != 0)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "[email protected]"

Reply via email to