๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18012

Re: [PATCH 1/9] dt-bindings: net: rockchip-dwmac: Allow iommus

#18012
From: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 17:35
74 lines
10689 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] This patch ("dt-bindings: net: rockchip-dwmac: Allow iommus")
  adds `iommus: maxItems: 1` to the top-level `properties:` map ofโ€ฆ

--

dt-bindings: net: rockchip-dwmac: Allow iommus

This commit adds an iommus property, limited to one entry, to the
Rockchip DWMAC binding. The commit message says the RK3588 GMACs sit
behind the PHP SMMU.

> diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
> index e8dda1961ab31..2a0cd56fb4fe9 100644
> --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml
> @@ -87,6 +87,9 @@ properties:
>  
>    dma-coherent: true
>  
> +  iommus:
> +    maxItems: 1
> +

[Severity: Low]
The commit message only gives a reason for RK3588, but iommus is added to
the top-level properties without any compatible-based condition. Was it
intended to allow iommus on every Rockchip GMAC compatible (px30, rk3128,
rk3228, rk3288, rk3308, rk3328, rk3366, rk3368, rk3399, rk3506, rk3528,
rk3568, rk3576, rv1108, rv1126)?

In the in-tree DTS, the only SMMU a GMAC could reference appears to be
mmu600_php in rk3588-base.dtsi:

arch/arm64/boot/dts/rockchip/rk3588-base.dtsi:
	mmu600_php: iommu@fcb00000 {

The same binding already restricts the PHP-specific rockchip,php-grf
property to the SoCs that have it:

  - if:
      properties:
        compatible:
          contains:
            enum:
              - rockchip,rk3576-gmac
              - rockchip,rk3588-gmac
    then:
      required:
        - rockchip,php-grf
    else:
      properties:
        rockchip,php-grf: false

As written, a GMAC node for a non-RK3588 SoC that carries an iommus
phandle (for example, one copied from an RK3588 node) would pass
dtbs_check without a warning.

Could iommus be scoped in a similar conditional, with iommus: false for
the compatibles other than rockchip,rk3588-gmac? If allowing it on all
variants is intentional, could the commit message say so?

>    clock_in_out:
>      description:
>        For RGMII, it must be "input", means main clock(125MHz)

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113-mmu600-php-v1-0-231196049a3b%40gmail.com
Technical Details
Message-ID: <179493690908.3136.827247860672592948@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365495-linux-kernel-netdev=dewy.ru
References: <20261113-mmu600-php-v1-1-231196049a3b@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365495-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH 1/9] dt-bindings: net: rockchip-dwmac: Allow iommus
Date: Tue, 17 Nov 2026 17:35:09 +0000
Organization: Usenet Network
Message-ID: <179493690908.3136.827247860672592948@kernel.org>
References: <20261113-mmu600-php-v1-1-231196049a3b@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2388921"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:P0PUy2dFXBg5Wm+jGGECig377r8= sha256:EzoFqYjRcdHmRWMoxmNUocFfeQ4ImJX4TrgLjYw0q0U=
	sha1:es5UlKHezdTXiBauR0a+mOa01zM= sha256:W4C4TneR4uc0SSnVNHBhGnhjmS1i+IVB//4H2/QwBcU=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 384CB115015; Tue, 17 Nov 2026 20:35:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id SbbZk0e9rrRs;
	Tue, 17 Nov 2026 20:35:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-365495-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 9C50C114FFE; Tue, 17 Nov 2026 20:35:16 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 94FF333ED7; Tue, 17 Nov 2026 17:35:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794936911;
	b=a/FcXPkgA1JfgAHmx5GP2fHj8NW6b5B85ozAOUqqvTn2HvFsmE67rd43G0xpK1uIwsPO
	 2KSm1skuXfkq/LKrE06necZJTAkC4YJYbuqpBBXd2ThoNjOR57YiHDcl/04qE+NyTmy/Y
	 4XKBsUgleC/yiW0Kg4vu0xPc68pa48IvmyiCjzy8K5Wd7UQtAKgx+1CoTiWYBwpLy3lkT
	 ZVVf450+X4ouH6mv0nYnZT9Yi5tNAOJnH9CAiBTadxJ7avo4B9wM5BY3Ao8g9tarFWqgh
	 8jGYhCCRsv5a4tNdek7BGssDY35m5Nd8X0dDRAeQwCmuhEapFQZXR+w/rg650a2KjaA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794936911;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=+KzEQNGHNyX+d3v3aVcwTAOvdhg7OdW27uOcL3lFZr8=;
	b=ZT1WeHG9UsJD9MIateD6lrIpynF8DOkQI7z7U0KBGMTVFHujKq79tCxeWzt9EMzxHFfh
	 z9rCwdoNwQq+0GDbaroHevt7fmE1JJ4Z5i2TaIr3sSNqTcLzUV6MH5PZQvBZFjfcjzRRr
	 pvvWyeU9roIiedxHgw3fG2MrXtlLtmxIMX1Gf9pByHLNCfosqcj05K8yaXvpC2DXxRc1U
	 DZL0onwwxrEtsKCyIvkfzYAuJqpLxDIVcIVQ3qAfn0USeuUiwWMN841bcAm9kE1vBzpNV
	 L9ea9eoP73xLQf4oEItvE6ucBJqlDoXvcyeH0MzJAfH1MHSJlKEReSH+dyw2etKbcow==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DB31nbrg;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id CF23B606A880;
	Tue, 17 Nov 2026 17:35:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DB31nbrg
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794936911;
	b=R6uARBquxsLBokTotDCdg1m/gM0Y/fGKHebzN2A8ie19SfgQwcPwPIkRkl2a8T9R/YpZ
	 SIjy/q8zJo/YgJbOYubf5XFzl9XBOcRVJic3tG7ziBHpSG7d7L4uxXPC5utE9VxK+PNbD
	 tT2Xampi2bH+tLtD01YWzGXgTZb6rFpbad37t36iM7gdrEGqa193X/B/jMISOmuwmWYrY
	 jKzEdduBrlZ+gmQRUmQN/05Ez3Lk7GLpazcTV/b/VYlpy8WgrtyHwye2Io8SKjk9bU0Zr
	 dzQk2WeZp5bk8APghMWExb/2GG5ZWg+rNgUcRedhCzKA0yQMk4A8GxEszjQLhG0FSlQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794936911;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=+KzEQNGHNyX+d3v3aVcwTAOvdhg7OdW27uOcL3lFZr8=;
	b=NL8vtiAFT6foIFjQ3Ve2ebdj0Mf7FAPHbcV30URrgpgiIO8PL/qiHQmRnn1keNxhF8Ll
	 AMU4+emJQ0aCd366uVzTLmM8MwN0aqxOjsOFWtsbiO59sf4eg+4pPFKKBF3Oq56t2iZZQ
	 FiGIqqm5hbHjmCow/tds2xuli+zg1dq3uxHlP/5EAc7wycCTXxUdKjMaFrlFk7DOmmg7r
	 UT3tYvQ5X1Tu2VUUmEeJNAfU41AQg3atSCbQDCzISTQ/Si3cV/1t1eFe5ZuqMWQ6QRyu7
	 tJ5Him+6GT1fNTZ2TJqGsOiDmUe4MUTEQn8jbFCNN8qX5JgIvstSaDQ7W6ikTNBp7SA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DB31nbrg;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED23F606A32C;
	Tue, 17 Nov 2026 17:35:10 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8297B1F000C4;
	Tue, 17 Nov 2026 17:35:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794936910;
	bh=+KzEQNGHNyX+d3v3aVcwTAOvdhg7OdW27uOcL3lFZr8=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=DB31nbrgHw4cb5wk09Uoa3sTa0f48KHnVB0If14yyoePPs2K870d/2jEQ5MCJTxk7
	 0HbKP/tiPgmXoOHfj2InyasAd47uGI8E/6iSoGTJhOzM8dvbDWG7HZPRHc1peUVljb
	 bpK0ef6TRTVaBEeQgE1lXV+qAr6GbTkVpd+c0RE4ulHrao45SJHUPegpUWrKFnclEo
	 FQCp6PuFn/QNCouwAXCJuSg2lpyRKy7uDDr02088M4XQa+eLK4f+LEVvyBEA+6Nq0M
	 nYXgyZYAq/AsgoC+Rn+TdaHymUq0WvnTsk/kCX4Ps8PLhsT1M+7GNk3Jc4PC38jZgV
	 TkXzr9kfqXCiA==
X-Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, david.wu@rock-chips.com,
 dlemoal@kernel.org, cassel@kernel.org, fancer.lancer@gmail.com,
 netdev@vger.kernel.org, devicetree@vger.kernel.org,
 linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org,
 linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, praan@google.com,
 will@kernel.org, robin.murphy@arm.com, iommu@lists.linux.dev,
 shawn.lin@rock-chips.com, sebastian.reichel@collabora.com
X-In-Reply-To: <20261113-mmu600-php-v1-1-231196049a3b@gmail.com>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list