Re: ehci panic

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.i386
Message-ID <[email protected]>
On Mon, Jul 31, 2017 at 12:38:00PM +0100, Patrick Welche wrote:
> > Can you try to remove the KASSERT()s in sys/arch/x86/pci/pci_machdep.c and
> > see where it will get you? The KASSERT() was added in 2008, three years
> > after the ehci bios handover handling code was added, so it's a bit long
> > shot this is actually the root problem, but still worth trying.
> 
> I removed the 2 KASSERT((reg & 0x3) == 0); asserts, and now have a 
> successful boot:

The problem is that the driver will crash on other architectures. The
KASSERT is especially there to detect such non-portable calls from
broken drivers.

We need to add pci_conf_{read,write}_2() and pci_conf_{read,write}_1()
functions and use that in the ehci driver where appropriate.


Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.