freebsd_network: Restore the hard-coded 128KB physical map size.

mmu_man changed this to be dynamically computed based on the BAR size.
It seems his computation was somehow incorrect, as it tries to allocate
a very large region here which deadlocks in the physical memory mapper.
Restoring this to 128KB un-breaks the new ipro1000 driver on more
recent hardware.

"Fixes" #14795.
This commit is contained in:
Augustin Cavalier 2019-01-04 18:07:11 -05:00
parent a381a48f86
commit 2afe8644cf

View File

@ -117,7 +117,8 @@ bus_alloc_mem_resource(device_t dev, struct resource *res, int regid)
uint32 addr = bar & PCI_address_memory_32_mask;
pci_write_config(dev, regid, ~0, 4);
uint32 size = pci_read_config(dev, regid, 4) & PCI_address_memory_32_mask;
size = (~size) + 1;
//size = (~size) + 1;
size = 1024 * 128; /* XXX */
pci_write_config(dev, regid, bar, 4);
void *virtualAddr;