NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/38857
The following reply was made to PR kern/38857; it has been noted by GNATS.
From: fun%naobsd.org@localhost
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/38857
Date: Tue, 24 Jun 2008 16:49:14 +0900 (JST)
sys/dev/pci/autri.c rev. 1.37 seems to be wrong. please back out 1.37
and apply this patch.
my friend said autri(4) on Libretto L2 works fine with this patch on NetBSD
4.0.
--- sys/dev/pci/autri.c.orig 2006-11-16 10:33:08.000000000 +0900
+++ sys/dev/pci/autri.c 2008-06-20 18:12:15.000000000 +0900
@@ -536,6 +536,12 @@
sc->sc_revision = PCI_REVISION(pa->pa_class);
aprint_normal(": %s (rev. 0x%02x)\n", devinfo, sc->sc_revision);
+ /* enable memory space access */
+ reg = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
+ reg |= PCI_COMMAND_MEM_ENABLE;
+ pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, reg);
+ pa->pa_flags |= PCI_FLAGS_MEM_ENABLED;
+
/* map register to memory */
if (pci_mapreg_map(pa, AUTRI_PCI_MEMORY_BASE,
PCI_MAPREG_TYPE_MEM, 0, &sc->memt, &sc->memh, NULL, NULL)) {
--
FUKAUMI Naoki
Home |
Main Index |
Thread Index |
Old Index