mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Pass a correct lowaddr to bus_dma_tag_create(), lnc(4) cards can only
deal with 24-bit addresses. While the two other attachments, namely isa and cbus, do it properly, the PCI attachment was passing BUS_SPACE_MAXADDR instead of BUS_SPACE_MAXADDR_24BIT. This bug became apparent with the new contigmalloc() code. This fixes the problem reported with lnc(4) interfaces inside VMWare, and should theoritically also fix any user of a PCI lnc(4) card. It is a RELENG_5 MFC candidate. Tested by: Florian Le Goff <madflo@beertech.org>
This commit is contained in:
parent
6063b5f0ad
commit
c480dc188f
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ lnc_pci_attach(device_t dev)
|
|||
err = bus_dma_tag_create(NULL, /* parent */
|
||||
1, /* alignement */
|
||||
0, /* boundary */
|
||||
BUS_SPACE_MAXADDR, /* lowaddr */
|
||||
BUS_SPACE_MAXADDR_24BIT, /* lowaddr */
|
||||
BUS_SPACE_MAXADDR, /* highaddr */
|
||||
NULL, NULL, /* filter, filterarg */
|
||||
lnc_mem_size, /* segsize */
|
||||
|
|
|
|||
Loading…
Reference in a new issue