From: houlong.wei@mediatek.com (houlong wei)
To: linux-arm-kernel@lists.infradead.org
Subject: FW: [PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver
Date: Thu, 18 Jan 2018 16:31:53 +0800 [thread overview]
Message-ID: <1516264313.16602.30.camel@mhfsdcap03> (raw)
In-Reply-To: <CABb+yY02S=+00mY-NTkJUBPiVruYdf0xuovKomehUxLNOQPLuA@mail.gmail.com>
Hi Jassi,
There is one request for one GCE h/w buffer which contains a list of
registers operation.
I will resubmit a version and please review again.
Thanks,
Houlong
On Thu, 2018-01-18 at 16:01 +0800, Jassi Brar wrote:
> On Mon, Jan 8, 2018 at 2:08 PM, houlong wei <houlong.wei@mediatek.com> wrote:
> > Hi Jassi,
> >
> > Sorry for reply so late.
> > According to previous discussion, there are two methods to move
> > dma_map_single() outside of spin_lock.
> > (1) put in mtk-cmdq-helper.c, as described by HS on 2017-02-09.
> > > I think a trade-off solution is to put in mtk-cmdq-helper.c.
> > > Although it is a mailbox client, it is not a CMDQ client.
> > > We can include mailbox_controller.h in mtk-cmdq-helper.c (instead of
> > mtk-cmdq.h), and then map dma at cmdq_pkt_flush_async before
> > mbox_send_message.
> >
> > > pkt->pa_base = dma_map_single(client->chan->mbox->dev, pkt->va_base,
> > > pkt->cmd_buf_size, DMA_TO_DEVICE);
> > (2) schedule a tasklet in send_data().
> >
> > After internal discussion with HS and other experts, now we prefer
> > method (1).
> > How do you think about it?
> >
> I don't exactly see how you mean but please remember send_data()
> callback is supposed to be atomic ... it is protected by
> spin_lock_irqsave/restore in drivers/mailbox/mailbox.c:msg_submit()
>
> BTW, how many requests max can be queued in the GCE h/w buffer?
> And since it's been over a year now, could you please resubmit after
> checking for checkpatch with the --strict option?
>
> Thanks.
next prev parent reply other threads:[~2018-01-18 8:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-04 3:06 [PATCH v20 0/4] Mediatek MT8173 CMDQ support HS Liao
2017-01-04 3:06 ` [PATCH v20 1/4] dt-bindings: soc: Add documentation for the MediaTek GCE unit HS Liao
2017-01-04 3:06 ` [PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver HS Liao
2017-01-26 4:38 ` Jassi Brar
2017-01-26 8:37 ` Horng-Shyang Liao
2017-02-01 5:22 ` Jassi Brar
2017-02-06 5:37 ` Horng-Shyang Liao
2017-02-09 12:03 ` Horng-Shyang Liao
2017-02-16 15:32 ` Jassi Brar
2017-02-22 3:12 ` Horng-Shyang Liao
2017-02-23 4:10 ` Jassi Brar
2017-02-23 12:48 ` Horng-Shyang Liao
[not found] ` <497f8e4ef7ae4c8a9b7b4ab259801306@mtkmbs01n1.mediatek.inc>
[not found] ` <1515400735.21044.35.camel@mhfsdcap03>
[not found] ` <CABb+yY02S=+00mY-NTkJUBPiVruYdf0xuovKomehUxLNOQPLuA@mail.gmail.com>
2018-01-18 8:31 ` houlong wei [this message]
2017-01-04 3:06 ` [PATCH v20 3/4] arm64: dts: mt8173: Add GCE node HS Liao
2017-01-04 3:06 ` [PATCH v20 4/4] soc: mediatek: Add Mediatek CMDQ helper HS Liao
2017-01-13 1:27 ` [PATCH v20 0/4] Mediatek MT8173 CMDQ support Horng-Shyang Liao
2017-01-20 3:11 ` 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=1516264313.16602.30.camel@mhfsdcap03 \
--to=houlong.wei@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