All of lore.kernel.org
 help / color / mirror / Atom feed
* xen/arm: uart interrupts handling
@ 2014-12-04  3:50 Vijay Kilari
  2014-12-04 13:51 ` Julien Grall
  0 siblings, 1 reply; 5+ messages in thread
From: Vijay Kilari @ 2014-12-04  3:50 UTC (permalink / raw)
  To: Ian Campbell, Stefano Stabellini, Tim Deegan; +Cc: xen-devel@lists.xen.org

Hi Tim,

I see that on uart interrupt, ICR is written to clear the all
interrupts except TX, RX and RX timeout. With this, cpu always finds
TX/RX is active and never
comes out of the loop.

With the below changes, TX, RX & RTI are cleared before handling this
interrupts.

Is my observation is correct?. If so I wonder how it is working on
platforms that
are using pl011. Without this for my cpu just keeps looping here.

  index fba0a55..d21bce3 100644
--- a/xen/drivers/char/pl011.c
+++ b/xen/drivers/char/pl011.c
@@ -63,7 +63,7 @@ static void pl011_interrupt(int irq, void *data,
struct cpu_user_regs *regs)
     {
         do
         {
-            pl011_write(uart, ICR, status & ~(TXI|RTI|RXI));
+            pl011_write(uart, ICR, status & (TXI|RTI|RXI));

             if ( status & (RTI|RXI) )
                 serial_rx_interrupt(port, regs);
@@ -157,7 +157,7 @@ static void pl011_resume(struct serial_port *port)
 {
     BUG(); // XXX
 }


Regards
Vijay

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-05 10:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04  3:50 xen/arm: uart interrupts handling Vijay Kilari
2014-12-04 13:51 ` Julien Grall
2014-12-04 15:40   ` Tim Deegan
2014-12-05  0:46     ` Vijay Kilari
2014-12-05 10:52       ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.