lkml.org 
[lkml]   [2015]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/2] mailbox: switch to hrtimer for tx_complete polling
From
On Wed, Jul 22, 2015 at 5:58 PM, Sudeep Holla <sudeep.holla@arm.com> wrote:

> we might end-up waiting
> for atleast a jiffy even though the response for that message from the
> remote is received via interrupt and processed in relatively smaller
> time granularity.
>
That is wrong.

If the controller supports TX interrupt it should set txdone_irq,
which prevents polling i.e, controller driver calls mbox_chan_txdone.

If the controller doesn't support TX interrupt but the client
receives some ack packet, then the client should set knows_txdone and
call mbox_client_txdone. Again you don't have to wait on polling.

If there's neither TX interrupt nor some ack packet, only then it has
to rely on polling. In which case, I doubt if we can desire some
functionality that requires sub-jiffy notification of TX_done.

Thanks.


\
 
 \ /
  Last update: 2015-07-24 07:21    [W:0.070 / U:1.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site