🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Lorenzo Bianconi Mon, 30 Nov 2026 08:27
Re: [PATCH net 1/2] net: airoha: fix NPU mailbox notification ordering
#24489
Author: Lorenzo Bianconi
Date: Mon, 30 Nov 2026 08:27
61 lines
9932 bytes
--plXdNZP7I9uPutUc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> During automated reboot testing, NPU mailbox communication can fail
> intermittently and prevent Wi-Fi from coming up.
>=20
> The message counter in CTRL(2) notifies the NPU that a new message is
> ready. Write the function information to CTRL(3) before updating that
> counter, so the NPU receives the function information before the
> notification.
>=20
> Fixes: REAL_LINUX_SHA ("EXACT_ORIGINAL_COMMIT_SUBJECT")

This does not seem a valid Fixes tag.

Regards,
Lorenzo

> Signed-off-by: Faliang Wang <faliang.wang@airoha.com>
> ---
>  drivers/net/ethernet/airoha/airoha_npu.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/drivers/net/ethernet/airoha/airoha_npu.c b/drivers/net/ether=
net/airoha/airoha_npu.c
> index edec6b111895..7f7cdc2553ad 100644
> --- a/drivers/net/ethernet/airoha/airoha_npu.c
> +++ b/drivers/net/ethernet/airoha/airoha_npu.c
> @@ -178,10 +178,10 @@ static int airoha_npu_send_msg(struct airoha_npu *n=
pu, int func_id,
> =20
>  	regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(0) + offset, dma_addr);
>  	regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(1) + offset, size);
> -	regmap_read(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, &val);
> -	regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, val + 1);
>  	val =3D FIELD_PREP(MBOX_MSG_FUNC_ID, func_id) | MBOX_MSG_WAIT_RSP;
>  	regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(3) + offset, val);
> +	regmap_read(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, &val);
> +	regmap_write(npu->regmap, REG_CR_MBQ0_CTRL(2) + offset, val + 1);
> =20
>  	ret =3D regmap_read_poll_timeout_atomic(npu->regmap,
>  					      REG_CR_MBQ0_CTRL(3) + offset,
> --=20
> 2.43.0
>=20

--plXdNZP7I9uPutUc
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCaw0zeAAKCRA6cBh0uS2t
rI31AP0QQbN0lPQqGx1dGrPTehxKOIgc5It35Ido0e5La21lVgD/VzccqeH2sMvT
06A9kikWDn8XoRwdkjv6X1Oh/e2g8wg=
=ceez
-----END PGP SIGNATURE-----

--plXdNZP7I9uPutUc--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads