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
@ -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…
x
Reference in New Issue
Block a user