Subject: Re: crash in event_set_handler() when loading LKM
To: Jeff Rizzo <riz@tastylime.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-xen
Date: 11/09/2005 23:29:36
On Wed, Nov 09, 2005 at 02:04:56PM -0800, Jeff Rizzo wrote:
> As I mentioned in my previous email, I'm working on getting a PCI device
> (in this case, a one-port FXO board for use with Asterisk) working in a
> domU. When I load the LKM with the driver, however, I get a crash (see
> below for full kernel messages) in event_set_handler(). The kernel
> config is fairly straightforward, just XENU plus 'pci* at hypervisor?
> bus ? .
>
> I've enabled some debugging I found in sys/arch/xen/xen/evtchn.c , to
> enable IRQ_DEBUG and print out some stuff that was #if 0 out, and I see
> one line that seems interesting:
>
> event_set_handler evtch 7 handler 0xc03eae09 level -900537888 evname irq27
>
> The 'level' in question gets assigned to ih->ih_level, but I'm not sure
> what a sane value for it should be...
Not this. It's used as index in an array, so that's likely the cause of
your crash.
level should be one of IPL_* value (between 1 and NIPL, currently 16).
How do you call pci_intr_establish() ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--