Messages in this thread | | | Subject | Re: Strange panic as soon as timer interrupts are enabled (recent 2.5) | Date | Thu, 07 Nov 2002 10:18:31 -0500 | From | "J.E.J. Bottomley" <> |
| |
mbligh@aracnet.com said: > Which seems to work, and is similar to what James did, I think.
Yes, that's almost exactly equivalent. The voyager start_secondary sequence is almost identical to the APIC sequence in function, it just plays with a different piece of hardware.
> Not sure that's any less ugly than the above ;-) I prefer your idea of > moving calibrate_delay, I'll try that sometime soonish, but need to > stare at what uses the result for a while first.
The question really is whether the secondaries need to receive any interrupts at all (except for the one that booted them) before the smp_commence mask is cleared. I don't believe this to be the case. calibrate_delay only requires that jiffies be ticking, which will happen as long as the boot cpu is receiving timer interrupts. Perhaps the correct fix is not to enable the interrupts early in the start_secondary sequence, and not to lower the APIC (or VIC in my case) interrupt masks at all until after smp_commence. Thus the boot CPU will handle all the interrupts up until that point.
James
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |