Re: [PATCH][2.6.9-rc2-mm3] perfctr ppc32 preliminary interrupt support

From: Mikael Pettersson
Date: Wed Sep 29 2004 - 06:51:07 EST


On Tue, 28 Sep 2004 08:54:04 +1000, Benjamin Herrenschmidt wrote:
>On Tue, 2004-09-28 at 06:05, Albert Cahalan wrote:
>> Benjamin Herrenschmidt writes:
>>
>> > Be careful that some G4's have a bug which can cause a
>> > perf monitor interrupt to crash your kernel :( Basically, the
>> > problem is if any of TAU or PerfMon interrupt happens at the
>> > same time as a DEC interrupt, some revs of the CPU can get
>> > confused and lose the previous exception state.
>>
>> Instead of excluding all these CPUs, simply put the
>> clock tick on the PerfMon interrupt. There's a bit-flip
>> that'll go at about 4 kHz on a system with a 100 MHz bus.
>> That should do. One need not change HZ; the interrupt
>> can be ignored whenever the timebase hasn't advanced
>> enough to require another clock tick.
>
>True, we can use the perfmon instead of the DEC for those

In principle, yes. The problem is that integrating two
unrelated uses of the perfmon HW will require major
changes in perfctr's ppc32 driver. And the kernel would
also have to be patched to redirect all DEC accesses to
the emulation code.

I have more pressing API issues to resolve, so I won't
do anything about this broken HW workaround for now.

/Mikael
-
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/