From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v1] xen/arm: Manage pl011 uart TX interrupt correctly Date: Tue, 20 Jan 2015 14:46:12 +0000 Message-ID: <1421765172.10440.275.camel@citrix.com> References: <1418099995-22777-1-git-send-email-vijay.kilari@gmail.com> <20141211121553.GB53811@deinos.phlegethon.org> <1420729153.19787.92.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1420729153.19787.92.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: vijay.kilari@gmail.com, stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, manish.jaggi@caviumnetworks.com, julien.grall@linaro.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, Vijaya Kumar K List-Id: xen-devel@lists.xenproject.org On Thu, 2015-01-08 at 14:59 +0000, Ian Campbell wrote: > On Thu, 2014-12-11 at 13:15 +0100, Tim Deegan wrote: > > At 10:09 +0530 on 09 Dec (1418116195), vijay.kilari@gmail.com wrote: > > > From: Vijaya Kumar K > > > > > > In pl011.c, when TX interrupt is received > > > serial_tx_interrupt() is called to push next > > > characters. If TX buffer is empty, serial_tx_interrupt() > > > does not disable TX interrupt and hence pl011 UART > > > irq handler pl011_interrupt() always sees TX interrupt > > > status set in MIS register and cpu does not come out of > > > UART irq handler. > > > > > > With this patch, mask TX interrupt by writing 0 to > > > IMSC register when TX buffer is empty and unmask by > > > writing 1 to IMSC register before sending characters. > > > > > > Signed-off-by: Vijaya Kumar K > > > > Reviewed-by: Tim Deegan > > Since Keir hasn't objected I've now applied, thanks. > > Should this be a candidate for backporting (to 4.4 and/or 4.5)? It didn't cherry-pick cleanly and since none of the platforms supported by 4.4 seemed affected I think we should skip it in that tree. I'll consider it for 4.5 once that opens for backports. Ian.