From: joe_zhuchg@126.com To: sudeep.holla@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joe Zhu <Chunguang.Zhu@verisilicon.com> Subject: [PATCH 1/1] firmware: arm_scmi/mailbox: ignore notification for tx done using irq Date: Sat, 9 May 2020 16:54:57 +0800 [thread overview] Message-ID: <20200509085457.31920-1-joe_zhuchg@126.com> (raw) From: Joe Zhu <Chunguang.Zhu@verisilicon.com> If mailbox uses IRQ method, it already notified framework with mbox_chan_txdone() in ISR. Signed-off-by: Joe Zhu <Chunguang.Zhu@verisilicon.com> --- drivers/firmware/arm_scmi/mailbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/mailbox.c b/drivers/firmware/arm_scmi/mailbox.c index 73077bbc4ad9..303a5dc42429 100644 --- a/drivers/firmware/arm_scmi/mailbox.c +++ b/drivers/firmware/arm_scmi/mailbox.c @@ -9,6 +9,7 @@ #include <linux/err.h> #include <linux/device.h> #include <linux/mailbox_client.h> +#include <linux/mailbox_controller.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/slab.h> @@ -147,7 +148,8 @@ static void mailbox_mark_txdone(struct scmi_chan_info *cinfo, int ret) * Unfortunately, we have to kick the mailbox framework after we have * received our message. */ - mbox_client_txdone(smbox->chan, ret); + if (!smbox->chan->mbox->txdone_irq) + mbox_client_txdone(smbox->chan, ret); } static void mailbox_fetch_response(struct scmi_chan_info *cinfo, -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: joe_zhuchg@126.com To: sudeep.holla@arm.com Cc: Joe Zhu <Chunguang.Zhu@verisilicon.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] firmware: arm_scmi/mailbox: ignore notification for tx done using irq Date: Sat, 9 May 2020 16:54:57 +0800 [thread overview] Message-ID: <20200509085457.31920-1-joe_zhuchg@126.com> (raw) From: Joe Zhu <Chunguang.Zhu@verisilicon.com> If mailbox uses IRQ method, it already notified framework with mbox_chan_txdone() in ISR. Signed-off-by: Joe Zhu <Chunguang.Zhu@verisilicon.com> --- drivers/firmware/arm_scmi/mailbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/mailbox.c b/drivers/firmware/arm_scmi/mailbox.c index 73077bbc4ad9..303a5dc42429 100644 --- a/drivers/firmware/arm_scmi/mailbox.c +++ b/drivers/firmware/arm_scmi/mailbox.c @@ -9,6 +9,7 @@ #include <linux/err.h> #include <linux/device.h> #include <linux/mailbox_client.h> +#include <linux/mailbox_controller.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/slab.h> @@ -147,7 +148,8 @@ static void mailbox_mark_txdone(struct scmi_chan_info *cinfo, int ret) * Unfortunately, we have to kick the mailbox framework after we have * received our message. */ - mbox_client_txdone(smbox->chan, ret); + if (!smbox->chan->mbox->txdone_irq) + mbox_client_txdone(smbox->chan, ret); } static void mailbox_fetch_response(struct scmi_chan_info *cinfo, -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-05-09 9:21 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-09 8:54 joe_zhuchg [this message] 2020-05-09 8:54 ` [PATCH 1/1] firmware: arm_scmi/mailbox: ignore notification for tx done using irq joe_zhuchg 2020-05-09 15:20 ` Sudeep Holla 2020-05-09 15:20 ` Sudeep Holla 2020-05-11 0:52 ` 答复: " Zhu, Joe 2020-05-11 0:52 ` Zhu, Joe 2020-05-13 8:51 ` [firmware] 88a5883981: will-it-scale.per_thread_ops -66.8% regression kernel test robot
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=20200509085457.31920-1-joe_zhuchg@126.com \ --to=joe_zhuchg@126.com \ --cc=Chunguang.Zhu@verisilicon.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=sudeep.holla@arm.com \ /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: linkBe 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.