RE: [PATCH v4] x86/irq: handle chained interrupts during IRQmigration

From: Thomas Gleixner
Date: Wed Jul 11 2012 - 18:56:49 EST


On Wed, 11 Jul 2012, Iyer, Sundar wrote:

> Hi Thomas,
>
> Any status on this one?

Yes. I have thought about this some more.

1) Why is this an issue at all ?

The irq is not visible to irqbalanced or /proc/irq/N/smp_affinity
settings.

So how would this irq have an affinity mask which is solely
directed to a particular cpu which is going down?

There is no documnted way to direct such an hidden irq to a
particular cpu.

I really can't find a reason for this. And without a reason that
patch is completely pointless.

2) Why are chained handlers horrible on SMP?

They are hidden from the system, so nothing can see them, assign
affinities or such.

That's a real drawback, as one might want to assign the demuxed
irqs to CPUn, but the primary handler runs on some random other CPU
and therefor the demuxed interrupts run in exaclty the context of
the CPU which handles the primary interrupt.

Granted that the chained handler setup spares a few CPU cycles, but
at the same time it limits usability and debugabilty and causes
such vehicles as the proposed patch.

What's the reason why you can't use a proper set up primary handler?

I can't see none, though I know that Russell will disagree :)

Thanks,

tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/