Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp57991lqq; Wed, 12 Jun 2024 16:47:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUscY0pBUPsF/cRuqh9apmAUh1Q7+OcbDIH/4CfLE+F+h6elddEVOpWP8ACRE6NeJkbfqByM5s2JJlw8RXEYUYtduyviqbfYRlofkeIGQ== X-Google-Smtp-Source: AGHT+IFEdgbWLpvN+m0bcHi36h10xQA5lBUdR6iV1xNIuBbxbbWWbQ7BxxBnRHfGoTq1wvYpR4Ap X-Received: by 2002:a17:902:da83:b0:1f8:3f13:1972 with SMTP id d9443c01a7336-1f83f131debmr29320425ad.28.1718236051167; Wed, 12 Jun 2024 16:47:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718236051; cv=pass; d=google.com; s=arc-20160816; b=AEsHZsn3AIt4hPPnd+EnA/TQnT5hNWySsKv68gGwI/LyVq6Rv02sjgpI7W08SsP/pl 75T7hP0F0+6RG+5U18vCkaB4x3Yh0WVcDty2ii/yWbMthh8JFd7y7NefUTPZOqhP6wHC GNLmqTCfXvX5gNakM/tDnl4EcwA6uPkkMRX8AB6dbSbumkfIce9U7Ud3XcK2RKpnaBtd /bQjrrbPKhnzeUr7CylKcxP7PYC0WsCb5SRdivaYIst/hwBeyHIyxq6+QqQFuT3ykNf9 n/TbKOvqbweisj7liA3qiUTqNCkzi9C6SagPHZSsaeBpPiYWgBrGmbvPGhOlpIk98k2P 6r5g== 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=y1dFP+DyxPcC1cp2e9ZLgpGKAdqsLJAePCHp1Bf2QLg=; fh=AhWRPgeLno6n3nNEqS5PgwIIzfewJYGyVMHWHcMTaKc=; b=jqVAySq4ktAU/9EaL2hRbXTt3a9r2oY9CUDeCQORBU9oLOPfkDW4l8XvSGoOd5o0vB CT597AsXv55n7ZffVp49bjwsCXS71qNf/07l3/+0dxu63rfEUeyGSPufH/kebT3hNX5J XxPIrb+QLGlVIvkiqsYcx4CTRGQZDFPuNBUS3LBidDY1yOybE3gPUN9EZkjAkUJZoP/2 GP8da8BR4Qf1c7OAxhJqMdMsytw66NgOGGCSBoV6hQY1raQmEZBaEnh7tzqOfi92DQl4 mYQRuyx4c0HEi6iLLSu5hfBznK0mtoftpgii697qieSF0ROn7x/IDOC8FvgRz2lDhwyz sTsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NnrvBYH4; 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-212384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f855f1e9d9si807535ad.608.2024.06.12.16.47.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 16:47:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NnrvBYH4; 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-212384-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212384-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C7499286ADF for ; Wed, 12 Jun 2024 23:37:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 377E812D747; Wed, 12 Jun 2024 23:37:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="NnrvBYH4" 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 CBBF012D205; Wed, 12 Jun 2024 23:37:22 +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=1718235444; cv=none; b=sI9jK5dXg0dpXHqfS9vFS0qgwuQrHeAEBsnbiq443anHEPKGmbK62GBhPkp21iWNJHCAg//tplxLApLivYyXwU8b7/CR3B6mwgiEbT/dnMwAOtpFOz0Fszww7ipefa/TBq51HWhlXDqdbogdJ2XDUJmk3MBTpsZ3Jq/DpSS5Iak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718235444; c=relaxed/simple; bh=p0StulPiskZvXiAXXy2XqSB+UCYvZvpYVdWBgttD7Nk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BpvPZBudRB1F42MdMAZ3e/a9SKyud/IP5FYMDFxYUfGZ/KavGfE/yCP6S7Sl4ur+QeDgPyz9dEaYIMziaNx14dmD2DrOsllY+jQunVgGCYSvK9lTYhhPufsxMIKUcrkt1hDYQDwfrXmbmOCoqbyvo0uwzbs2p1kmDgxsSkuE8KI= 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=NnrvBYH4; 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=1718235440; bh=p0StulPiskZvXiAXXy2XqSB+UCYvZvpYVdWBgttD7Nk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NnrvBYH4gcX8jVX7MkBBhnFfP9qpqrsQxMTSYlOMraNkSxwFH0Li6QJtGdX/78m2a RBMRctyynP+nNr+yZoE+4fC+VvoXN8Nbv4dLqsD6fZK5ThvBv6j2Hpu4muLIDOaJz+ 4wxHZvfTbFt7oIcP50Jnd0epTTJgfM5nCKa1co+Z0PiHSF/DE04YPabQ4nm7r5F8v+ gp994IEVMcFT4C/J6yPzIUzYcprN/wOTjjXl/T9UaIikSo3qmQJaAuiX+aKhBFPmly h0QusGDacO2lBOzdUVzeiiEkPpL+Uy41i4MOiL7W5nQaIB1Kghz0k60NTs/O6YILD1 UWY1DJk6t4wWg== 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 D9AFF3781022; Wed, 12 Jun 2024 23:37:20 +0000 (UTC) Received: by mercury (Postfix, from userid 1000) id 56CFD10608F7; Thu, 13 Jun 2024 01:37:20 +0200 (CEST) Date: Thu, 13 Jun 2024 01:37:20 +0200 From: Sebastian Reichel To: Tomeu Vizoso Cc: Joerg Roedel , Will Deacon , Robin Murphy , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oded Gabbay , Tomeu Vizoso , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Philipp Zabel , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH 1/9] iommu/rockchip: Add compatible for rockchip,rk3588-iommu Message-ID: <75xclodzhu2slf6jntwxzx5gvthgl62g2jcmgeukbafkzkisbf@okedx7ic6aij> References: <20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net> <20240612-6-10-rocket-v1-1-060e48eea250@tomeuvizoso.net> 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="lszhpdxqfwkdo2zm" Content-Disposition: inline In-Reply-To: <20240612-6-10-rocket-v1-1-060e48eea250@tomeuvizoso.net> --lszhpdxqfwkdo2zm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Tomeu, On Wed, Jun 12, 2024 at 03:52:54PM GMT, Tomeu Vizoso wrote: > So far, seems to be fully compatible with the one in the RK3568. >=20 > The bindings already had this compatible, but the driver didn't > advertise it. >=20 > Signed-off-by: Tomeu Vizoso > --- The driver does not need to advise it, since it already handles "rockchip,rk3568-iommu" and the correct compatible for the RK3588 IOMMU is: compatible =3D "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; i.e. with the RK3568 compatible as fallback. So the kernel will just bind to the fallback compatible. Iff differences are found in the future, the kernel can start to make use of the more specific compatible. -- Sebastian > drivers/iommu/rockchip-iommu.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iomm= u.c > index 4b369419b32c..f5629515bd78 100644 > --- a/drivers/iommu/rockchip-iommu.c > +++ b/drivers/iommu/rockchip-iommu.c > @@ -1363,6 +1363,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 > --=20 > 2.45.2 >=20 >=20 --lszhpdxqfwkdo2zm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmZqMSwACgkQ2O7X88g7 +poM9w//Quf+iUHT1ho9F5H0znbElz82rmJuzS/FCgjZREXsvOOlDdO9WHuR42rU l7MZhQDNTSYuQ5ok+BbED5k26VuJf3KXdAU2k0guFceqY5kZiwJwq4HVEtUFeUqV ShNoJYdOKvLtlpQKgVPj9SBTNz63dazB0XigVFEwP6U4fSM5n8OoE/JtBWcGZBsp I22H5BHefpX7xVoG5d04lMM9EyOxeQToJ2Vveu7D7xMye8rEljBN+RHAnpUZ00dK svok25DuJKwkWEiIEmPHqJah6avsRr7/vzUz0494Ybz5MkFOFrPVwPfPp9Ge3DK6 LIJ4YZtarT99Jz1kUWzzMS8Tls61CAp3CTxq8TrlFsUvRzqmdKMwy9r+TFaXaRHb klyFZh+s+qZmMyGnYyWlnKY4RWKbP8EvyPAdGh73rvgjvAaciy8ozDfp8wdEPp0W WgQ9hIFHPgqpvV+C3dYQv+QBe/ozOzZASrJtIec8PMozNXQcj8+xMfDhzM/k0sXi azp/EFcbg8AEuoNiXhJmfQBX3lr5Mgf+z3vLvTyST+MTPD9ebqp1CkaBdrHT66jI Agcf6OBhf8/BYIHTv5e7uFho09S/frrYXqskHJnazd/tckysU+jf//EryBDLOF77 DCJbslCIkJ/jIfrX9BAKU+U+At3JN68xbB+Z1WOu5OoExUtLhO8= =mDX6 -----END PGP SIGNATURE----- --lszhpdxqfwkdo2zm--