Skip to contentSkip to conversation

noirqdebug_setup() in arch/i386/kernel/setup-xen.c

DISCUSSION Jan Beulich 2 participants 4 messages Apr 7, 2006

lore
Share & tools
lore
#0 lore raw

Can anyone explain why i386 calls noirqdebug_setup() unconditionally, while x86-64 doesn't? I believe this is the reason why we have been seeing spurious interrupt reports only on 64-bits so far.

What was this supposed to suppress originally? Is this still applicable? It would seem to me that hiding problems in this area is rather undesirable...

Thanks, Jan

#1 lore raw
Quoted 5 lines · Jan Beulich

Can anyone explain why i386 calls noirqdebug_setup() unconditionally, while x86-64 doesn't? I believe this is the reason why we have been seeing spurious interrupt reports only on 64-bits so far.

What was this supposed to suppress originally? Is this still applicable? It would seem to me that hiding problems in this area is rather undesirable...

It's disabled to handle the case where a shared IRQ line is shared across multiple driver domains. In that case, if one domain's device is busy then both domains will get interrupt notifications, but the non-busy driver domain will think that it's receiving spurious interrupts (since it doesn't see IRQ_HANDLED from the busy device driver ISR, since it's running in a different driver domain).

The above scenario is reasonably rare, and especially if there are currently irq problems I think we should stop asserting noirqdebug automatically, at least for now in xen-unstable.

-- Keir

#2 lore raw
Quoted 13 lines
Quoted 1 line
Quoted 1 line

Keir Fraser <[email protected]> 07.04.06 11:59:51 >>>

Quoted 8 lines · Jan Beulich

Can anyone explain why i386 calls noirqdebug_setup() unconditionally, while x86-64 doesn't? I believe this is the reason
why we have been seeing spurious interrupt reports only on 64-bits so far.

What was this supposed to suppress originally? Is this still applicable? It would seem to me that hiding problems in this area is rather undesirable...

Quoted 6 lines

It's disabled to handle the case where a shared IRQ line is shared across multiple driver domains. In that case, if one domain's device is busy then both domains will get interrupt notifications, but the non-busy driver domain will think that it's receiving spurious interrupts (since it doesn't see IRQ_HANDLED from the busy device driver ISR, since it's running in a different driver domain).

Then, once we are able to figure the interrupt problems we currently have, this should probably be re-enabled temporarily and for *all* architectures, but be replaced by proper logic (i.e. Xen informing the domain e.g. by means of a flag passed with the injected IRQ that it should expect the interrupt to not getting handled; Xen should then also expect some notification back from the domain that the IRQ was handled, so it can combine this from all involved domains and still report and act on problems similar to the way Linux does).

Jan

#3 lore raw
Quoted 5 lines · Jan Beulich

Then, once we are able to figure the interrupt problems we currently have, this should probably be re-enabled temporarily and for *all* architectures, but be replaced by proper logic (i.e. Xen informing the domain e.g. by means of a flag passed with the injected IRQ that it should expect the interrupt to not getting handled; Xen should then also expect some notification back from the domain that the IRQ was handled, so it can combine this from all involved domains and still report and act on problems similar to the way Linux does).

That would be better, yes. :-)

-- Keir