All of lore.kernel.org
 help / color / mirror / Atom feed
From: "A.s. Dong" <aisheng.dong@nxp.com>
To: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Devicetree List <devicetree@vger.kernel.org>,
	Oleksij Rempel <o.rempel@pengutronix.de>,
	Rob Herring <robh+dt@kernel.org>, ",
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	srv_heupstream" <linux-mediatek@lists.infradead.org>",
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org,
	srv_heupstream" <linux-arm-kernel@lists.infradead.org>, ",
	Sascha Hauer" <kernel@pengutronix.de>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	Shawn Guo <shawnguo@kernel.org>,
	Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>,
	dl-linux-imx <linux-imx@nxp.com>
Subject: RE: [PATCH v7 3/6] dt-bindings: mailbox: imx-mu: add generic MU channel support
Date: Thu, 9 Aug 2018 06:45:21 +0000	[thread overview]
Message-ID: <AM0PR04MB42117A7564C6E1AA4D1232F780250@AM0PR04MB4211.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <CABb+yY1wGv8XHcTy7WPeD_GGx0J4QF8bcgowJYOoTgTD1R6wPA@mail.gmail.com>

> -----Original Message-----
> From: Jassi Brar [mailto:jassisinghbrar@gmail.com]
> Sent: Thursday, August 9, 2018 10:56 AM
[...]
> On Thu, Aug 9, 2018 at 7:52 AM, A.s. Dong <aisheng.dong@nxp.com> wrote:
> > Hi Jassi,
> >
> > Do you have any comments about this reply?
> >
> I did read your post. And my opinion isn't changed. If mailbox is new to you,
> please try to see how other subsystems works, especially SPI, I2C and DMA.
> 

Okay.
What's your comments about the known issues if doing that way?
1) Many unnecessary and meaningless interrupts handling of Tx and RX
2) Performance downgrading
    A 4 word SCU MSG may need 8 interrupts to handle which terribly slow
    down the speed. (Interrupt latency will be terrible if many). SCU msg
    are mostly handled within 10 us.
3) Complex RX flow in order to align with framework design

Are you referring to them as not a real issue?
Or even they're issues/limitations, you would still prefer multi channels way
In order to be consistent with mailbox subsystem by sacrificing the
performance drop?

And to be clear, the working flow you want is exactly as follows, right?
Sending Word 0 ->
Chan 0 interrupt -> (meaningless)
Sending Word 1 ->
Chan1 interrupt -> (meaningless)
Sending Word 2 ->
Chan2 interrupt -> (meaningless)
Sending Word 3 ->
Chan3 interrupt-> (meaningless)

Sending Word 4 on Chan 0 again ->
Wait for Chan 0 interrupt (meaningless) -> ...

Then waiting for Rx:

Chan 0 Rx interrupt ->
Read Word 0   ->
(Then we know response size here)

Chan 1 Rx interrupt ->
Read Word 1 ->
Chan 2 Rx interrupt ->
Read Word 2 ->
Chan 3 Rx interrupt ->
Read Word 3 ->

(If msg size > 4 words)
Chan 0 Rx interrupt ->
Read Word 4

Regards
Dong Aisheng

> Thanks.

WARNING: multiple messages have this Message-ID (diff)
From: aisheng.dong@nxp.com (A.s. Dong)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v7 3/6] dt-bindings: mailbox: imx-mu: add generic MU channel support
Date: Thu, 9 Aug 2018 06:45:21 +0000	[thread overview]
Message-ID: <AM0PR04MB42117A7564C6E1AA4D1232F780250@AM0PR04MB4211.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <CABb+yY1wGv8XHcTy7WPeD_GGx0J4QF8bcgowJYOoTgTD1R6wPA@mail.gmail.com>

> -----Original Message-----
> From: Jassi Brar [mailto:jassisinghbrar at gmail.com]
> Sent: Thursday, August 9, 2018 10:56 AM
[...]
> On Thu, Aug 9, 2018 at 7:52 AM, A.s. Dong <aisheng.dong@nxp.com> wrote:
> > Hi Jassi,
> >
> > Do you have any comments about this reply?
> >
> I did read your post. And my opinion isn't changed. If mailbox is new to you,
> please try to see how other subsystems works, especially SPI, I2C and DMA.
> 

Okay.
What's your comments about the known issues if doing that way?
1) Many unnecessary and meaningless interrupts handling of Tx and RX
2) Performance downgrading
    A 4 word SCU MSG may need 8 interrupts to handle which terribly slow
    down the speed. (Interrupt latency will be terrible if many). SCU msg
    are mostly handled within 10 us.
3) Complex RX flow in order to align with framework design

Are you referring to them as not a real issue?
Or even they're issues/limitations, you would still prefer multi channels way
In order to be consistent with mailbox subsystem by sacrificing the
performance drop?

And to be clear, the working flow you want is exactly as follows, right?
Sending Word 0 ->
Chan 0 interrupt -> (meaningless)
Sending Word 1 ->
Chan1 interrupt -> (meaningless)
Sending Word 2 ->
Chan2 interrupt -> (meaningless)
Sending Word 3 ->
Chan3 interrupt-> (meaningless)

Sending Word 4 on Chan 0 again ->
Wait for Chan 0 interrupt (meaningless) -> ...

Then waiting for Rx:

Chan 0 Rx interrupt ->
Read Word 0   ->
(Then we know response size here)

Chan 1 Rx interrupt ->
Read Word 1 ->
Chan 2 Rx interrupt ->
Read Word 2 ->
Chan 3 Rx interrupt ->
Read Word 3 ->

(If msg size > 4 words)
Chan 0 Rx interrupt ->
Read Word 4

Regards
Dong Aisheng

> Thanks.

  reply	other threads:[~2018-08-09  6:45 UTC|newest]

Thread overview: 155+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26  6:53 [PATCH v7 0/6] add mailbox support for i.MX7D Oleksij Rempel
2018-07-26  6:53 ` Oleksij Rempel
2018-07-26  6:53 ` [PATCH v7 1/6] dt-bindings: mailbox: allow mbox-cells to be equal to 0 Oleksij Rempel
2018-07-26  6:53   ` Oleksij Rempel
2018-07-26  9:41   ` Jassi Brar
2018-07-26  9:41     ` Jassi Brar
2018-07-26  9:41     ` Jassi Brar
2018-07-26 11:00     ` A.s. Dong
2018-07-26 11:00       ` A.s. Dong
2018-07-26 11:00       ` A.s. Dong
2018-07-26 11:36       ` Jassi Brar
2018-07-26 11:36         ` Jassi Brar
2018-07-26 11:36         ` Jassi Brar
2018-07-26 11:55         ` A.s. Dong
2018-07-26 11:55           ` A.s. Dong
2018-07-26 11:55           ` A.s. Dong
2018-07-26 12:04           ` Jassi Brar
2018-07-26 12:04             ` Jassi Brar
2018-07-26 12:04             ` Jassi Brar
2018-07-26  6:53 ` [PATCH v7 2/6] dt-bindings: arm: fsl: add mu binding doc Oleksij Rempel
2018-07-26  6:53   ` Oleksij Rempel
2018-07-26  9:56   ` Jassi Brar
2018-07-26  9:56     ` Jassi Brar
2018-07-26  6:53 ` [PATCH v7 3/6] dt-bindings: mailbox: imx-mu: add generic MU channel support Oleksij Rempel
2018-07-26  6:53   ` Oleksij Rempel
2018-07-26  9:49   ` Jassi Brar
2018-07-26  9:49     ` Jassi Brar
2018-07-26 10:57     ` Oleksij Rempel
2018-07-26 10:57       ` Oleksij Rempel
2018-07-26 11:28       ` Jassi Brar
2018-07-26 11:28         ` Jassi Brar
2018-07-26 11:51     ` A.s. Dong
2018-07-26 11:51       ` A.s. Dong
2018-07-26 12:26       ` Jassi Brar
2018-07-26 12:26         ` Jassi Brar
2018-07-26 13:34         ` A.s. Dong
2018-07-26 13:34           ` A.s. Dong
2018-07-26 13:49       ` Jassi Brar
2018-07-26 13:49         ` Jassi Brar
2018-07-26 14:13         ` A.s. Dong
2018-07-26 14:13           ` A.s. Dong
2018-07-26 15:44       ` Jassi Brar
2018-07-26 15:44         ` Jassi Brar
2018-07-27  4:02         ` A.s. Dong
2018-07-27  4:02           ` A.s. Dong
2018-07-27  4:55           ` Jassi Brar
2018-07-27  4:55             ` Jassi Brar
2018-07-27  6:00             ` A.s. Dong
2018-07-27  6:00               ` A.s. Dong
2018-07-27  6:46               ` Jassi Brar
2018-07-27  6:46                 ` Jassi Brar
2018-07-27  8:42                 ` A.s. Dong
2018-07-27  8:42                   ` A.s. Dong
2018-07-27  9:05                   ` A.s. Dong
2018-07-27  9:05                     ` A.s. Dong
2018-07-28 13:09                   ` Jassi Brar
2018-07-28 13:09                     ` Jassi Brar
2018-07-30  7:35                     ` Oleksij Rempel
2018-07-30  7:35                       ` Oleksij Rempel
2018-07-30  8:42                       ` A.s. Dong
2018-07-30  8:42                         ` A.s. Dong
2018-07-30 13:04                       ` Jassi Brar
2018-07-30 13:04                         ` Jassi Brar
2018-07-30 14:14                         ` A.s. Dong
2018-07-30 14:14                           ` A.s. Dong
2018-07-30 14:27                           ` A.s. Dong
2018-07-30 14:27                             ` A.s. Dong
2018-07-30 14:17                         ` A.s. Dong
2018-07-30 14:17                           ` A.s. Dong
2018-07-30 14:44                         ` Oleksij Rempel
2018-07-30 14:44                           ` Oleksij Rempel
2018-07-30 15:02                           ` Jassi Brar
2018-07-30 15:02                             ` Jassi Brar
2018-07-30 15:36                             ` A.s. Dong
2018-07-30 15:36                               ` A.s. Dong
2018-07-30 16:18                             ` Jassi Brar
2018-07-30 16:18                               ` Jassi Brar
2018-07-30 16:49                               ` Oleksij Rempel
2018-07-30 16:49                                 ` Oleksij Rempel
2018-07-31  2:51                                 ` Jassi Brar
2018-07-31  2:51                                   ` Jassi Brar
2018-07-31  7:21                               ` A.s. Dong
2018-07-31  7:21                                 ` A.s. Dong
2018-07-31 10:15                                 ` Jassi Brar
2018-07-31 10:15                                   ` Jassi Brar
2018-07-31 12:42                                   ` Jassi Brar
2018-07-31 12:42                                     ` Jassi Brar
2018-08-02  9:24                                     ` A.s. Dong
2018-08-02  9:24                                       ` A.s. Dong
2018-08-09  2:22                                       ` A.s. Dong
2018-08-09  2:22                                         ` A.s. Dong
2018-08-09  2:55                                         ` Jassi Brar
2018-08-09  2:55                                           ` Jassi Brar
2018-08-09  6:45                                           ` A.s. Dong [this message]
2018-08-09  6:45                                             ` A.s. Dong
2018-07-30  8:29                     ` A.s. Dong
2018-07-30  8:29                       ` A.s. Dong
2018-07-30  8:39         ` A.s. Dong
2018-07-30  8:39           ` A.s. Dong
2018-07-26  6:53 ` [PATCH v7 4/6] dt-bindings: mailbox: imx-mu: add i.MX6SX and i.MX7S SoCs Oleksij Rempel
2018-07-26  6:53   ` Oleksij Rempel
2018-07-26  8:16   ` A.s. Dong
2018-07-26  8:16     ` A.s. Dong
2018-07-26  9:55   ` Jassi Brar
2018-07-26  9:55     ` Jassi Brar
2018-07-26 10:41     ` Lucas Stach
2018-07-26 10:41       ` Lucas Stach
2018-07-26 11:15       ` Jassi Brar
2018-07-26 11:15         ` Jassi Brar
2018-07-26 11:35         ` Lucas Stach
2018-07-26 11:35           ` Lucas Stach
2018-07-26 11:46           ` Jassi Brar
2018-07-26 11:46             ` Jassi Brar
2018-07-26 11:51             ` Vladimir Zapolskiy
2018-07-26 11:51               ` Vladimir Zapolskiy
2018-07-26 12:00               ` Jassi Brar
2018-07-26 12:00                 ` Jassi Brar
2018-07-26 12:10                 ` Vladimir Zapolskiy
2018-07-26 12:10                   ` Vladimir Zapolskiy
2018-07-26 11:54             ` Lucas Stach
2018-07-26 11:54               ` Lucas Stach
2018-07-26 11:44         ` Vladimir Zapolskiy
2018-07-26 11:44           ` Vladimir Zapolskiy
2018-07-26 11:52           ` Jassi Brar
2018-07-26 11:52             ` Jassi Brar
2018-07-26 11:55             ` Vladimir Zapolskiy
2018-07-26 11:55               ` Vladimir Zapolskiy
2018-07-26 12:10               ` Jassi Brar
2018-07-26 12:10                 ` Jassi Brar
     [not found]                 ` <CABb+yY02KNB9ELKiWYdB0LyvTghhk+nk-dTUGfG8_+KUB_H=Mw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-07-26 12:41                   ` Vladimir Zapolskiy
2018-07-26 12:41                     ` Vladimir Zapolskiy
2018-07-30 22:22     ` Rob Herring
2018-07-30 22:22       ` Rob Herring
2018-07-31 10:16       ` Jassi Brar
2018-07-31 10:16         ` Jassi Brar
2018-07-31 10:18       ` Jassi Brar
2018-07-31 10:18         ` Jassi Brar
2018-07-26  6:53 ` [PATCH v7 5/6] ARM: dts: imx7s: add i.MX7 messaging unit support Oleksij Rempel
2018-07-26  6:53   ` Oleksij Rempel
2018-07-26  8:11   ` Lucas Stach
2018-07-26  8:11     ` Lucas Stach
2018-07-26  6:53 ` [PATCH v7 6/6] mailbox: Add support for i.MX7D messaging unit Oleksij Rempel
2018-07-26  6:53   ` Oleksij Rempel
2018-07-26  8:07   ` Lucas Stach
2018-07-26  8:07     ` Lucas Stach
2018-07-26 10:15   ` Jassi Brar
2018-07-26 10:15     ` Jassi Brar
2018-07-26 10:51     ` Oleksij Rempel
2018-07-26 10:51       ` Oleksij Rempel
2018-07-26 11:09       ` Jassi Brar
2018-07-26 11:09         ` Jassi Brar
2018-07-26 11:42         ` Oleksij Rempel
2018-07-26 11:42           ` Oleksij Rempel
2018-07-26 12:17           ` Jassi Brar
2018-07-26 12:17             ` Jassi Brar

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=AM0PR04MB42117A7564C6E1AA4D1232F780250@AM0PR04MB4211.eurprd04.prod.outlook.com \
    --to=aisheng.dong@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=o.rempel@pengutronix.de \
    --cc=robh+dt@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.