All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Paul Cercueil" <paul.cercueil@bootlin.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 2/2] mailbox: marvell-mhu: add Marvell MHU driver
Date: Mon, 23 Nov 2026 09:55:44 +0000	[thread overview]
Message-ID: <sashiko-outbox-229013@kernel.org> (raw)
In-Reply-To: <20261123094542.44101-3-paul.cercueil@bootlin.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mailbox: marvell-mhu: undeclared ioread64()/iowrite64() under
  COMPILE_TEST
--

commit e362a8700ec12375ab4fa67b4954b2473fced942
Author: George Cherian <gcherian@marvell.com>

mailbox: marvell-mhu: add Marvell MHU driver

This commit adds a mailbox controller driver for the Marvell Message Handling
Unit on OcteonTX and OcteonTX2 platforms.

> diff --git a/drivers/mailbox/marvell_mhu.c b/drivers/mailbox/marvell_mhu.c
> new file mode 100644
> index 0000000000000..de7690897cc99
> --- /dev/null
> +++ b/drivers/mailbox/marvell_mhu.c

[ ... ]

> +static int mrvl_mhu_send_data(struct mbox_chan *chan, void *data)
> +{
> +	const u64 doorbell = 0xff;  /* Arbitrary value, SCP requires a value */
> +	struct mrvl_mhu *mhu = chan->con_priv;
> +
> +	/* signal SCP */
> +	iowrite64(doorbell, mhu->base + AP0_TO_SCP_MBOX);
> +
> +	return 0;
> +}
> +
> +static bool mrvl_mhu_last_tx_done(struct mbox_chan *chan)
> +{
> +	struct mrvl_mhu *mhu = chan->con_priv;
> +	u64 status;
> +
> +	status = ioread64(mhu->base + AP0_TO_SCP_MBOX_LINT);
> +
> +	return status == 0;
> +}

[Severity: Medium]
As reported by kernel test robot on v2 [1], does this fail to build under
CONFIG_COMPILE_TEST on 64-bit architectures with CONFIG_GENERIC_IOMAP=y
(such as x86_64 and powerpc64)?

On CONFIG_GENERIC_IOMAP architectures, ioread64() and iowrite64() are not
declared unless linux/io-64-nonatomic-lo-hi.h (or hi-lo.h) is included.
Using readq() and writeq() directly, or including one of the 64-bit
non-atomic I/O headers, would avoid the implicit function declaration
error.

[1] https://lore.kernel.org/r/202611212016.DdozCIS5-lkp@intel.com

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123094542.44101-1-paul.cercueil@bootlin.com?part=2

  reply	other threads:[~2026-11-23  9:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:45 [PATCH v3 0/2] mailbox: Add Marvell MHU driver Paul Cercueil
2026-11-23  9:45 ` [PATCH v3 1/2] dt-bindings: mailbox: add Marvell MHU Paul Cercueil
2026-11-23  9:45 ` [PATCH v3 2/2] mailbox: marvell-mhu: add Marvell MHU driver Paul Cercueil
2026-11-23  9:55   ` sashiko-bot [this message]
2026-11-23 12:48 ` [PATCH v3 0/2] mailbox: Add " Paul Cercueil

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=sashiko-outbox-229013@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=paul.cercueil@bootlin.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.