Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177714723
D5493.1795112182.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1020 B
Referenced Files
None
Subscribers
None
D5493.1795112182.diff
View Options
Index: head/sys/dev/pci/pci_host_generic.c
===================================================================
--- head/sys/dev/pci/pci_host_generic.c
+++ head/sys/dev/pci/pci_host_generic.c
@@ -143,6 +143,10 @@
device_set_desc(dev, "Generic PCI host controller");
return (BUS_PROBE_GENERIC);
}
+ if (ofw_bus_is_compatible(dev, "arm,gem5_pcie")) {
+ device_set_desc(dev, "GEM5 PCIe host controller");
+ return (BUS_PROBE_DEFAULT);
+ }
return (ENXIO);
}
@@ -208,12 +212,11 @@
continue; /* empty range element */
if (sc->ranges[tuple].flags & FLAG_MEM) {
error = rman_manage_region(&sc->mem_rman,
- phys_base,
- phys_base + size);
+ phys_base, phys_base + size - 1);
} else if (sc->ranges[tuple].flags & FLAG_IO) {
error = rman_manage_region(&sc->io_rman,
- pci_base + PCI_IO_WINDOW_OFFSET,
- pci_base + PCI_IO_WINDOW_OFFSET + size);
+ pci_base + PCI_IO_WINDOW_OFFSET,
+ pci_base + PCI_IO_WINDOW_OFFSET + size - 1);
} else
continue;
if (error) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 6:16 PM (5 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41850135
Default Alt Text
D5493.1795112182.diff (1020 B)
Attached To
Mode
D5493: Fix pi_host_generic
Attached
Detach File
Event Timeline