From c480dc188fdfa0fcd1cc35f4e4666b4b128a195e Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sun, 22 Aug 2004 23:01:13 +0000 Subject: [PATCH] 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 --- sys/dev/lnc/if_lnc_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c index eee9277eb09..688385ab020 100644 --- a/sys/dev/lnc/if_lnc_pci.c +++ b/sys/dev/lnc/if_lnc_pci.c @@ -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 */