Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Douglas Anderson <dianders@chromium.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org,
	Jassi Brar <jassisinghbrar@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	"André Draszik" <andre.draszik@linaro.org>,
	"Brian Norris" <briannorris@chromium.org>,
	"Joonwon Kang" <joonwonkang@google.com>,
	"Lucas Wei" <lucaswei@google.com>,
	"Peter Griffin" <peter.griffin@linaro.org>,
	"Subhash Jadavani" <sjadavani@google.com>,
	"Tudor Ambarus" <tudor.ambarus@linaro.org>
Subject: Re: [PATCH 7/7] mailbox: goog-mba: Introduce the goog-mba mailbox driver
Date: Sat, 10 Oct 2026 12:15:10 +0200	[thread overview]
Message-ID: <9099b92c-d456-4dbf-95c7-dcb3f1004066@web.de> (raw)
In-Reply-To: <20260714152138.7.I5cef580a62c86ba6c3465ad336fa509afbdf1476@changeid>

…
> +++ b/drivers/mailbox/goog-mba.c
> @@ -0,0 +1,567 @@
…
> +static int goog_mba_send_data(struct mbox_chan *chan, void *msg)
> +{
…
> +		spin_lock_irqsave(&goog_mbox->lock, flags);
> +		out_of_space = payload_words &&
> +			       (goog_mbox->outstanding_msgs >=
> +				goog_mbox->msg_buffer_words / payload_words);
> +		spin_unlock_irqrestore(&goog_mbox->lock, flags);
…

Under which circumstances would you become interested to apply a statement
like “guard(spinlock_irqsave)(&goog_mbox->lock);”?
https://elixir.bootlin.com/linux/v7.3-rc6/source/include/linux/spinlock.h#L642-L645

Regards,
Markus


      parent reply	other threads:[~2026-10-10 10:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 22:21 [PATCH 0/7] mailbox: Improve the mbox core then introduce the goog-mba driver Douglas Anderson
2026-07-14 22:21 ` [PATCH 6/7] dt-bindings: mailbox: goog-mba: Add goog-mba mailbox bindings Douglas Anderson
2026-07-15  4:51   ` Krzysztof Kozlowski
2026-07-15 16:49     ` Doug Anderson
2026-07-16  5:46       ` Krzysztof Kozlowski
2026-07-16 16:31         ` Doug Anderson
2026-07-22 17:11           ` Doug Anderson
2026-07-29 13:27             ` Jassi Brar
2026-07-31 21:24               ` Doug Anderson
2026-07-22 14:10       ` Rob Herring
2026-07-22 16:57         ` Doug Anderson
2026-07-14 22:21 ` [PATCH 7/7] mailbox: goog-mba: Introduce the goog-mba mailbox driver Douglas Anderson
2026-09-06  1:20   ` Jassi Brar
2026-09-09 15:53     ` Doug Anderson
2026-09-09 16:34       ` Jassi Brar
2026-09-09 16:56         ` Doug Anderson
2026-09-19 18:32           ` Jassi Brar
2026-09-19 20:40             ` Doug Anderson
2026-09-20 20:29               ` Jassi Brar
2026-09-20 21:39                 ` Doug Anderson
2026-09-20 22:46                   ` Jassi Brar
2026-09-21 22:18                     ` Doug Anderson
2026-09-22  0:11                       ` Jassi Brar
2026-09-22 16:01                         ` Doug Anderson
2026-09-23  0:23                           ` Jassi Brar
2026-09-28 21:34                             ` Doug Anderson
2026-10-09  6:36                               ` Krzysztof Kozlowski
2026-10-09  8:41                                 ` Doug Anderson
2026-10-09 15:43                                   ` Jassi Brar
2026-10-10  9:16                                     ` Doug Anderson
2026-10-10 10:15   ` Markus Elfring [this message]

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=9099b92c-d456-4dbf-95c7-dcb3f1004066@web.de \
    --to=markus.elfring@web.de \
    --cc=andre.draszik@linaro.org \
    --cc=briannorris@chromium.org \
    --cc=dianders@chromium.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=joonwonkang@google.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=lucaswei@google.com \
    --cc=peter.griffin@linaro.org \
    --cc=sjadavani@google.com \
    --cc=tudor.ambarus@linaro.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