linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hs.liao@mediatek.com (Horng-Shyang Liao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v14 2/4] CMDQ: Mediatek CMDQ driver
Date: Tue, 11 Oct 2016 10:40:32 +0800	[thread overview]
Message-ID: <1476153632.477.2.camel@mtksdaap41> (raw)
In-Reply-To: <CAJe_ZheptRQSmQp2gagqUyXqkOpi1qaTo8QPDTFpQ-+62B6kUw@mail.gmail.com>

On Thu, 2016-10-06 at 18:40 +0530, Jassi Brar wrote:
> On 6 October 2016 at 18:31, Horng-Shyang Liao <hs.liao@mediatek.com> wrote:
> 
> > Back to our original statement, we need to flush all tasks to queue
> > in GCE HW; i.e. we need to use mbox_client_txdone after
> > mbox_send_message, or send tx_done once mailbox controller receive
> > message (task). However, we still need a way to notice done tasks to
> > clients. Currently, we don't have a good way to call callback in mailbox
> > framework. Therefore, CMDQ driver has its owner callback functions.
> >
> mbox_client_txdone() is called by the client driver when only it knows
> the messages has been transmitted (i.e your submitted tasks are done).
> Obviously the client driver should do any callbacks to its users
> upstream.

Hi Jassi,

In current CMDQ driver, mbox_client_txdone() is called to prevent the
blocking of chan->active_req. It is not the real point of CMDQ task
done, so the client driver cannot do any callbacks to its user upstream.

(1) If we don't use mbox_client_txdone(), could you tell us an
    alternative way to prevent the blocking of chan->active_req?
    And then we can use tx_done when CMDQ task is relly done.
(2) If we use mbox_client_txdone() to prevent the blocking of
    chan->active_req, could CMDQ driver just uses self-defined callback
    function to notice client driver CMDQ task done?

Thanks,
HS

  reply	other threads:[~2016-10-11  2:40 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05  1:44 [PATCH v14 0/4] Mediatek MT8173 CMDQ support HS Liao
2016-09-05  1:44 ` [PATCH v14 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit HS Liao
2016-09-05  1:44 ` [PATCH v14 2/4] CMDQ: Mediatek CMDQ driver HS Liao
2016-09-22  8:17   ` Jassi Brar
2016-09-23  9:28     ` Horng-Shyang Liao
2016-09-30  8:56       ` Horng-Shyang Liao
2016-09-30  3:06   ` CK Hu
2016-09-30  8:56     ` Horng-Shyang Liao
2016-09-30  9:11       ` CK Hu
2016-09-30  9:47         ` Horng-Shyang Liao
2016-10-05  2:54           ` Horng-Shyang Liao
2016-10-05  3:37             ` Jassi Brar
2016-10-05 12:31               ` Horng-Shyang Liao
2016-10-05 14:43                 ` Jassi Brar
2016-10-06 13:01                   ` Horng-Shyang Liao
2016-10-06 13:10                     ` Jassi Brar
2016-10-11  2:40                       ` Horng-Shyang Liao [this message]
2016-10-11  4:19                         ` Jassi Brar
2016-09-05  1:44 ` [PATCH v14 3/4] arm64: dts: mt8173: Add GCE node HS Liao
2016-09-05  1:44 ` [PATCH v14 4/4] CMDQ: save more energy in idle HS Liao
2016-09-22  7:52   ` Jassi Brar
2016-09-23  9:28     ` Horng-Shyang Liao
2016-09-30  8:56       ` Horng-Shyang Liao
2016-09-30  9:01         ` Matthias Brugger
2016-09-19  6:43 ` [PATCH v14 0/4] Mediatek MT8173 CMDQ support Horng-Shyang Liao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476153632.477.2.camel@mtksdaap41 \
    --to=hs.liao@mediatek.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).