Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp103877rba; Wed, 20 Mar 2024 12:15:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeCcL3ZSsJZ8hZET3mDIyEVHupKST0tn4qTHVgi5FJ01SSg3q7vaud2SyR8LnOytiWEIdZQctEksHNbOp8UKvWXsiu1lW0QCAWAsO6aA== X-Google-Smtp-Source: AGHT+IHtfsAbNggDJhXonGVPJEzYMljzsHZj5mvlbXs0/wfrVHjjh8uyzSB0lxOD6KuFiT/c2gUr X-Received: by 2002:a05:6512:44b:b0:513:c2e4:9daf with SMTP id y11-20020a056512044b00b00513c2e49dafmr5025310lfk.52.1710962132722; Wed, 20 Mar 2024 12:15:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710962132; cv=pass; d=google.com; s=arc-20160816; b=yygbFYKk82Q/k87O9fRB6ZTZjVgWE74KhnTfzkzIApNqUCe69Vf2ZlPST5UKJhH17P ijT4iteq6oay71Tjt+qimo1IsE4/Mv6MbESU+4lRdps298BE3G1FHV+AdJQXllJO1Pj3 bgPav5CdR9PjucJj5OxHxSD58pvulp2uqPBNnybDnL43aRggPH2Go7xpk6YwuA/3rHe+ OTYdgQAXW38akRIGobvsyc0OiFXhVliKMfI1TaCv8a21Ld/SDIdeg+jfRaUyrqAvQJF6 CftSPWZWCcpovbbK7t4VangwaAWvTsagJD5s+ORUiDL9pm9+2SidvEFpSJlJ3LMO5jGh RScw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4pf5fV38DgxRrzU6TxqlpLd1GIC7r5BFiGCljHaZGpw=; fh=NyH2X1WmQ06d8baYUB/vSBpvdA3YEkMaJ6QIcmjT95M=; b=jr9Sn4YM2wetiCs7BiRSncGG1+kalQhzUI8htCee9yvoV1DBUWojkm6kEMEzJCPYcr AqYmuqi91WfxYq8zBRbX9tu1rWjGnGHcZ8eNPb4VpSJUg5Fdg7mPc6/+kFbHJAi68d+l xOkKh5zpdVXGVU035N89IYZr9MMsVXqw7PSk7zc8IU6fbfGCEXcafIXCImSQXebuWzc9 zGXHMJqaZX42RFyQ8xqSVicvZua6UsXRY3YvLUxcjN0OAaBUGKZhvR0+HjNaUw/zpw+D LiKW1nKsgc4qnIzyrHwDkfWKSzgxnFAlr2PyATk6X75BG4H52wnCZJJqFPb2F9fodWR3 f4Qw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=B1VWiDKI; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-109331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z7-20020a17090655c700b00a4666bb4878si6516331ejp.601.2024.03.20.12.15.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 12:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=B1VWiDKI; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-109331-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4CFCD1F22BDD for ; Wed, 20 Mar 2024 19:15:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2867C85644; Wed, 20 Mar 2024 19:15:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="B1VWiDKI" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4F6D85626; Wed, 20 Mar 2024 19:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710962119; cv=none; b=TSN4hwVK2XrMe3K+P2zYbkW5djcfSSvStO+0f0UHusx6UnoHMJOf4lIfmXlUbT5nwbwvPjxlMTca1x8ULLlRex4xlbiMmlvDTIcQpelNgxxpZJL7ddSGYB3pR2aURJ9zkNlpsuvh0IYjfxXZc/6GuUoXAHsFq0qil2akS+Fvl8Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710962119; c=relaxed/simple; bh=z+JJu0xQoW3dM54mrpxZ3kL3VRvxY9C0AzdnCinEaxc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ljCXjXV6U49IYwqZigBfPKSpZgYFdRN7iPxndATNITuP4JtV6t5Kek+9N9iQt+90lC8x917VD7ih19JnHfDMnOpU95UKel+eNyk1gtuk74KFqubWS7gM485Z90fW5zYRWYVW9avNdmg0+2liHu2xAh9PYyEG6DklgRlnQymQAYo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=B1VWiDKI; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1710962115; bh=z+JJu0xQoW3dM54mrpxZ3kL3VRvxY9C0AzdnCinEaxc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B1VWiDKI1tUhF4pRktoC0eVPZNgiRldDLP2xGOb75MPTlScONOBZX0rX4t3ATjZVG oGRD9jWNegiZ6o80vmfWoCL7PCBh7MmHCrGLPGKT/aTG5+qcEKrRUuk2VvR5nkegrv UCa5mSiGxrbyTF+FvV0iWAftyrJmb6mhk9A92+N9Ih+LgUP2gRWKLZSIuMngwTu9U8 Krpx6FxqZCTBuiKaPTl01PEWE0UI26CNo7wd0SsWBMkKcwvzcoQiaiW6UjmIm49p7s XeAn6D7Zm8HIEu17xszWTg4ck4Vgqneq6usFWY33lTKV2CAC4Tm/KPWbR/eAjOheuj mZjW/02iYvGQA== Received: from mercury (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 99D173780BFE; Wed, 20 Mar 2024 19:15:15 +0000 (UTC) Received: by mercury (Postfix, from userid 1000) id 3C9B21060704; Wed, 20 Mar 2024 20:15:15 +0100 (CET) Date: Wed, 20 Mar 2024 20:15:15 +0100 From: Sebastian Reichel To: Emmanuel Gil Peyrot Cc: linux-kernel@vger.kernel.org, Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Joerg Roedel , Will Deacon , Robin Murphy , Cristian Ciocaltea , Dragan Simic , Shreeya Patel , Chris Morgan , Andy Yan , Nicolas Frattaroli , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev Subject: Re: [PATCH 1/4] dt-bindings: iommu: rockchip: Fix rk3588 variant Message-ID: References: <20240320173736.2720778-1-linkmauve@linkmauve.fr> <20240320173736.2720778-2-linkmauve@linkmauve.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hcmholarfddiyvvu" Content-Disposition: inline In-Reply-To: <20240320173736.2720778-2-linkmauve@linkmauve.fr> --hcmholarfddiyvvu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Emmanuel, On Wed, Mar 20, 2024 at 06:37:30PM +0100, Emmanuel Gil Peyrot wrote: > The documentation got added in f8aa519976b38e67aae02d2db3e2998513305e80, > but it hasn=E2=80=99t been added to the driver so it was unused. >=20 > Signed-off-by: Emmanuel Gil Peyrot > --- Everything is fine with f8aa519976b38e67aae02d2db3e2998513305e80 (well the patch description could be better :)) and this patch is just wrong. The documentation explicitly adds the combination of rk3588-iommu with rk3568-iommu as fallback. The idea is, that the driver handles it just like an rk3568 iommu. If some differences are found in the future, the driver can switch to handle the more specific compatible without any DT changes (which is ABI). I suggest watching this presentation: https://www.youtube.com/watch?v=3D6iguKSJJfxo Greetings, -- Sebastian > arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 2 +- > drivers/iommu/rockchip-iommu.c | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/= dts/rockchip/rk3588s.dtsi > index 87b83c87bd55..2a23b4dc36e4 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > @@ -704,7 +704,7 @@ vp3: port@3 { > }; > =20 > vop_mmu: iommu@fdd97e00 { > - compatible =3D "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; > + compatible =3D "rockchip,rk3588-iommu"; > reg =3D <0x0 0xfdd97e00 0x0 0x100>, <0x0 0xfdd97f00 0x0 0x100>; > interrupts =3D ; > clocks =3D <&cru ACLK_VOP>, <&cru HCLK_VOP>; > diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iomm= u.c > index da79d9f4cf63..da0e93c139d1 100644 > --- a/drivers/iommu/rockchip-iommu.c > +++ b/drivers/iommu/rockchip-iommu.c > @@ -1361,6 +1361,9 @@ static const struct of_device_id rk_iommu_dt_ids[] = =3D { > { .compatible =3D "rockchip,rk3568-iommu", > .data =3D &iommu_data_ops_v2, > }, > + { .compatible =3D "rockchip,rk3588-iommu", > + .data =3D &iommu_data_ops_v2, > + }, > { /* sentinel */ } > }; > =20 > --=20 > 2.44.0 >=20 --hcmholarfddiyvvu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmX7Nb8ACgkQ2O7X88g7 +po3QA//ZGRsC3BtWsJE9IZElMcFAVIscBSPpnfwYskq0O3KIoMWwvFQGlHgRQ9G dAvpcGMTmFuhv3ZIqiltdO/+bIeOUztINGSzbWNz7uGhpXvTkVkjFzraNUnUKvNh oR3U29wGba+FJJODcJ3uSapaPsX8RbCk/nZ2dV32SC1/XK6nOeKXHiqGHJoDNzKL OIBE8QDo5+YuElwXkDFs336VtOo1jsyUTefahIfAlJh0MNCXJ8Gq+IoK9Rb0gBH5 HFmrJY4GodMvwQcNrAIW+FHnV/QNXIGZmbf57ktHUDU3oXqqTr313xTLwcbQO9bL Go7UEqWBQV2iUtfsz8eKnmh001LQ6iPyBW/Da+Xv979UrgGemV4yZbn9gZnWeDiC wUAnrdQGuyQBNYmdAL5LucuDnoWupwuPI6v6UuxkWI7aTUvESvuNGDHEK2ZhV15U Y1Cz3x6g1o9RXKeMST767Xd1AOC/Zs3sunicG3elgWRvMEThrweqZ35fM9b5LSeW q2JvJ5C85XF1Ast3dIXZ6EM/WwozjzzCGV+YjX8g7rmx/+3AixhXyzVLKHM81/j8 YVEwVmIXpBlwxf9mnUyduc7buIGMPYAevwrdk8R08ROhJN5D0YDEfvMGkiPRFiNx TTunFW/jz6+B0GOKl9HomDGWAowhIlJvpJWLRtQ3uetHzFgW9LI= =7AoS -----END PGP SIGNATURE----- --hcmholarfddiyvvu--