Re: [PATCH 2.6.21-rt2] PowerPC: decrementer clockevent driver

From
Sergei Shtylyov <hidden>
Date
2007-05-18 13:40:12
Also in
lkml
Reply to
Benjamin Herrenschmidt, 2007-05-18
Hello.

Benjamin Herrenschmidt wrote:
quoted
quoted
quoted
Yes, on some implementations there can be other conditions that
make a decrementer exception go away; there is no contradiction
here (thankfully).  My wording was sloppy.
quoted
quoted
Some CPUs have the DEC exceptions basically edge triggered (yeah I know
quoted
for example?
quoted
quoted
it sucks). That's why, among others, the IRQ soft-disable code has code
to re-trigger DEC exceptions ASAP (by setting it to 1.. note that we
could probably use 0 here, we've been a bit conservative).
   Yeah, the classic decrementer is programmed off-by-one.
I'm not 100% certain... Paulus thinks all the old 6xx are like that, and
maybe POWER4. If I look at the oldest BookIV I can find (the 601), it
   From the "PowerPC Operating Environment Architecture" that I've already quoated t follows that POWER4-compatible decremented exception *must* be edge triggered.
says that an exception is generated when the MSB transitions from 0 to
1. It's not clear wether the exception sticks while that bit is 1 or is
   Freescale MPC 7450 manual says the same, for example.
indeed considered as an "edge" event that gets cleared as soon as
delivered.
Ben.
WBR, Sergei
Thread (50 messages) 50 messages, 12 authors, last reply 2007-10-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help