Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ehci panic



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


Home | Main Index | Thread Index | Old Index