parse_pci_config_spaces: hard-code max_subordinate_bus to 80

On milos, Genode/NOVA only scans the first three PCI buses. With this change,
it actually detects the two Intel network cards and reaches the unimplemented
function stubs:

[init -> drivers -> nic] SLUB: HWalign=64, Order=0-1, MinObjects=0, CPUs=1, Nodes=1
[init -> drivers -> nic] NR_IRQS: 4352, nr_irqs: 4352, preallocated irqs: 256
[init -> drivers -> nic] clocksource: dde_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[init -> drivers -> nic] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[init -> drivers -> nic] clocksource: Switched to clocksource dde_counter
[init -> drivers -> nic] netdev: Intel(R) PRO/1000 Network Driver
[init -> drivers -> nic] netdev: Copyright(c) 1999 - 2015 Intel Corporation.
[init -> drivers -> nic] e1000_main: Intel(R) PRO/1000 Network Driver
[init -> drivers -> nic] e1000_main: Copyright (c) 1999-2006 Intel Corporation.
[init -> drivers -> nic] igb_main: Intel(R) Gigabit Ethernet Network Driver
[init -> drivers -> nic] igb_main: Copyright (c) 2007-2014 Intel Corporation.
[init -> drivers -> nic] pci_iomap: unsupported
[init -> drivers -> nic] pci_iomap_range: unsupported
[init -> drivers -> nic] Error: Function pci_release_selected_regions not implemented yet!
[init -> drivers -> nic] backtrace "ep"
[init -> drivers -> nic] Will sleep forever...
This commit is contained in:
Birte Kristina Friesel
2024-09-26 12:58:15 +02:00
parent 425182e3db
commit 65bd5f5ca3

View File

@@ -599,7 +599,7 @@ void Main::parse_pci_config_spaces(Xml_node & xml, Xml_generator & generator)
offset, generator, msi_number);
max_subordinate_bus = max(max_subordinate_bus, subordinate_bus);
} while (bus++ < max_subordinate_bus);
} while (bus++ < 80);
pci_config_ds.destruct();
});