[PATCH 8/19] powerpc: supporting interrupts for Celleb

Ishizaki Kou kou.ishizaki at toshiba.co.jp
Thu Jan 18 23:05:58 EST 2007


Ben-san,

thank you for your comment and consideration.

> On Fri, 2007-01-12 at 10:01 +0900, Ishizaki Kou wrote:
> > This patch creates Celleb platform dependent files to support interrupts.
> > 
> > Signed-off-by: Kou Ishizaki <kou.ishizaki at toshiba.co.jp>
> > Acked-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>
> > ---

> There might be ways to make this code simpler and possibily even remove
> the spinlock, I have to think about it a bit more and maybe test when/if
> we get some hardware here.

> One thing is, since you need to mask interrupts while handling them,
> you might as well use something like the level handler instead of
> fasteoi (unless interrupts behave as edge on your HV in which case the
> edge handle woudl do the job though it won't mask the same way).

> Then you might also be able to use atomic operations rather than
> spinlocks for the updates of the various masks.

Please note that the mask should be synchronized to Beat.


> There is nothing urgent about those change though, that I would consider
> more as optimisations, and I need to better understand what your
> hypervisor exactly does to be sure about it, so in the meantime,

On hardware-triggered interrupt of Beat is level-triggered,
i.e. interrupt occurres continuously until 'downcount_of_interrupt'
guest OS interface is called. So we have to mask interrupt until
it is served.

On software-triggered interrupt of Beat is edge-triggered,
but we have to keep the interrupt active to dispatch logical
partition until all services related to the interrupt is served.
Since dispatching of logical parition depends on interrupt
activity, we have to mask (not to acknowledge) the interrupt.

Best regards,
Kou Ishizaki



More information about the Linuxppc-dev mailing list