[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1516264313.16602.30.camel@mhfsdcap03>
Date: Thu, 18 Jan 2018 16:31:53 +0800
From: houlong wei <houlong.wei@...iatek.com>
To: Jassi Brar <jassisinghbrar@...il.com>
CC: Rob Herring <robh+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Daniel Kurtz <djkurtz@...omium.org>,
"Sascha Hauer" <s.hauer@...gutronix.de>,
Devicetree List <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-arm-kernel@...ts.infradead.org>,
srv_heupstream <srv_heupstream@...iatek.com>,
Sascha Hauer <kernel@...gutronix.de>,
Philipp Zabel <p.zabel@...gutronix.de>,
Nicolas Boichat <drinkcat@...omium.org>,
CK Hu (胡俊光)
<ck.hu@...iatek.com>,
"Cawa Cheng (鄭曄禧)"
<cawa.cheng@...iatek.com>,
Bibby Hsieh (謝濟遠)
<Bibby.Hsieh@...iatek.com>,
YT Shen (沈岳霆)
<Yt.Shen@...iatek.com>,
Daoyuan Huang (黃道原)
<Daoyuan.Huang@...iatek.com>,
Damon Chu (朱峻賢)
<Damon.Chu@...iatek.com>,
Josh-YC Liu (劉育誠)
<Josh-YC.Liu@...iatek.com>,
Glory Hung (洪智瑋)
<glory.hung@...iatek.com>,
Jiaguang Zhang (张加广)
<Jiaguang.Zhang@...iatek.com>,
Dennis-YC Hsieh (謝宇哲)
<Dennis-YC.Hsieh@...iatek.com>,
Monica Wang (王孟婷)
<monica.wang@...iatek.com>,
Hs Liao (廖宏祥)
<Hs.Liao@...iatek.com>, <houlong.wei@...iatek.com>
Subject: Re: FW: [PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver
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@...iatek.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.
Powered by blists - more mailing lists