Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption, eHCA is close

2008-09-23 Thread Jan-Bernd Themann
Hi,

I think these are the functional changes that need to be included in
the ibmebus driver. We'll add a RT flag in the final version to enable
these changes only for RT-Linux for now. 
Ben, can you / your team look into the implementation
of the set_irq_type functionality needed for XICS?

Regards,
Jan-Bernd  Christoph

diff -Nurp b/arch/powerpc/kernel/ibmebus.c a/arch/powerpc/kernel/ibmebus.c
--- b/arch/powerpc/kernel/ibmebus.c 2008-09-22 00:29:55.0 +0200
+++ a/arch/powerpc/kernel/ibmebus.c 2008-09-23 12:04:53.0 +0200
@@ -216,12 +216,16 @@ int ibmebus_request_irq(u32 ist, irq_han
unsigned long irq_flags, const char *devname,
void *dev_id)
 {
+   int ret;
unsigned int irq = irq_create_mapping(NULL, ist);
 
if (irq == NO_IRQ)
return -EINVAL;
 
-   return request_irq(irq, handler, irq_flags, devname, dev_id);
+   ret = request_irq(irq, handler, irq_flags, devname, dev_id);
+   set_irq_type(irq, IRQ_TYPE_EDGE_RISING);
+
+   return ret;
 }
 EXPORT_SYMBOL(ibmebus_request_irq);
 


___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption, eHCA is close

2008-09-18 Thread Christoph Raisch

Sebastien Dugue [EMAIL PROTECTED] wrote on 18.09.2008 11:27:13:


   It would be really interresting to know if the eHCA exhibits the same
 problem under -rt as it's the only other user of the ibmebus.
 Unfortunately I don't have the hardware to test.


eHCA is very close from the interrupt generation and handling perspective,
so yes, could be an issue there as well.


Gruss / Regards
Christoph Raisch


___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev


Re: [PATCH HACK] powerpc: quick hack to get a functional eHEA with hardirq preemption, eHCA is close

2008-09-18 Thread Sebastien Dugue
On Thu, 18 Sep 2008 12:42:05 +0200 Christoph Raisch [EMAIL PROTECTED] wrote:

 
 Sebastien Dugue [EMAIL PROTECTED] wrote on 18.09.2008 11:27:13:
 
 
It would be really interresting to know if the eHCA exhibits the same
  problem under -rt as it's the only other user of the ibmebus.
  Unfortunately I don't have the hardware to test.
 
 
 eHCA is very close from the interrupt generation and handling perspective,
 so yes, could be an issue there as well.

  That's what I was speculating.

  Thanks,

  Sebastien.

 
 
 Gruss / Regards
 Christoph Raisch
 
 
 
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev