Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp476909rdb; Thu, 15 Feb 2024 06:09:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUI2ZkpVgdUpapDPtAU94r/t10GBu6Kl28tTejLBkQ2Ufwp7IKGRNNnUAwYXw2/IWFHlXockfMoDbGEFZssI/m6mIPRjmUdXl98OtvarA== X-Google-Smtp-Source: AGHT+IGTljtIFa7mqZuJ+YBeGOuc2+Q/UZE14FSExlj+MAL8v6CzdvQxsC9He0oBVAKDStxD1M7v X-Received: by 2002:a17:90a:b10b:b0:297:190d:5a37 with SMTP id z11-20020a17090ab10b00b00297190d5a37mr1692228pjq.8.1708006182681; Thu, 15 Feb 2024 06:09:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708006182; cv=pass; d=google.com; s=arc-20160816; b=I9gdaifHTH+2Kpx0ZoJNrmMbb1p1f4bsFkAzZbZKOtM47ESl3uBfxZs1GRh/5+VIAK vnntmKmFDJeq1pNaW+AP4TroK8qElMfE25ze8ufIieXNEKcyb7G2NPw4FM6+f69WiSRA q39Qafl3uwdKBIw+wZZqvWYQowH8xD7cQPjSHKIxEsrmfM6QNhpna8FKjuRyFdVK3BRp LBdTTJTbZLaHhNYa51swNHTpWid4IWvQrmH5XFx9GTb54jzaaWtgBsCvzieWUSTAJe2f BbT3JbZ7XJ6S2C1XiMrEjEILWtGMNQvq0tuJ19lrWbWoN0aBd1F1xKDJ38wj82miqU7E 2ocg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=z8FccHgP1nlIIDxh3beS9dJmKPci7aq2sL05JU739TA=; fh=xBiiAwFNxtJuknbKU+RPkb+xA1kQDITn7cNP37qyzIM=; b=PVIDFc0Sg5SpKNbrM4cbk2b8JZCRhKCcvKfsv+Yz7J84I3+gbdrkapWK+yq0UDozmn Xus6tbC2M8A13oBAVJrSIcUR258S1pkbO4b+ZUPkX30mlMTgXe8VXLLnbu79FFHwJ2gB zh+a/QYeyAhmTjpZolGPDNOoHXjLc90j6aoOZJ2E0HdXsaZPxITd4ec9EWyG38WltzVU 9tLBmEBtDzetOvU6yh55P1bxXHLeT/AD6o2u/1dljRawGJDE+9QLG5SSrAvG8dwO9sWL J9zpHAX2XKZND0zeD2MQUg8c6ONSGdkLJUc2NN0jJSQ/j6vo2YPyI92d7dAdtErgXhbd JD/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EK5fY5Eu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-66989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q5-20020a17090a430500b00297117e6a7bsi3075568pjg.176.2024.02.15.06.09.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:09:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EK5fY5Eu; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-66989-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66989-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 63A00B2D21F for ; Thu, 15 Feb 2024 13:34:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB698131743; Thu, 15 Feb 2024 13:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EK5fY5Eu" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2677C130E2B for ; Thu, 15 Feb 2024 13:33:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708003993; cv=none; b=BYE68OvvOoDkbzqlXLKXLjFzR2DwvUdu0yvjDjg9iDo3PkD6PD6JPYSfROOijl0XNMjleIVnXCRgpok7qvxvGenGDkGyQejcg0qab6t68jBatF1gBxSlZMJKI//Wy7//45NRlIsGAutpSQ3QNdIy4D6lddZ1xSuJ4Oq0rzNU2Yo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708003993; c=relaxed/simple; bh=iu7IiIWT/WJciCFSKsL5CnkliaSf2y0e5gCmKjL/tD8=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=poPnUFKiiV3YxNY/10gc5XLUD5ymSDwAUBDfzPJe1koiZy6TtP4TqvpnS+JOJWDU2juevrqRYs2GNAOVcYXmoEz9+ec90JynIrqN4W6coaqaty6297psp+bLE0TdJt6GhMlzfo6TCdcw4odxPQvKrEESwtuUWQFlqE6vUdUukuI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=EK5fY5Eu; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a2f79e79f0cso125391966b.2 for ; Thu, 15 Feb 2024 05:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708003989; x=1708608789; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=z8FccHgP1nlIIDxh3beS9dJmKPci7aq2sL05JU739TA=; b=EK5fY5EurBPM0pkzYwvK8cpgDNG3KKIn7ZhpsWa3rdX10hMCUj4i4hLYR2VCsBPySo kiGtHJbO079dj/cf7nsK19AuLUeYF7bD2G30Dj1OrvhguetBzHBzGDHhpiI0iQEkKmg4 sLKXqKbNSkKSF9sBhu+Zv4J6EcyMh+ULJ8Rm49YV2PzzM95DX7oyzDNHgLoZVd3jRmMd wW6ENPCHh9OyAFENq1FniZVmTzsYytvog6kGr6qDrVF0tbNJQmHZWz5zuViL7BBKl89C 88kJmuEyxorfegFuihdh88toslitQVbW6XnUTQYeiaQ+gZXlrDxW58M863zly4gFnPCi wseA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708003989; x=1708608789; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=z8FccHgP1nlIIDxh3beS9dJmKPci7aq2sL05JU739TA=; b=OKezcvPOdPTGuY210U/LLmtssFcQK1pst6BSeICz3Wh1EODzRTW98UAWYk7VJ9OdJp hF6ZxtzUYiQa4UofbBsuRM7E2gqMc2A0q9DKFBfn6OSeSrii/EqBa5uepXHnPEfZm6QD ZW2GcVEk1xGr0NdyJYKFdDIeKKsKXFzTbDeC3hBRtmUTA0qUgeXui5QATukTO/wMAfys CzsmJpKvToF1GSd6ZJ8iYlTsKILspdmkgHbQwNMQ4U9br2L/BdmRF5+1TZpL8SDzpAzC 3lcOxrLXgwJQkmmrt3v5H/18wYDfWq92HQn8DfooxNfRVQQ1FX16TEI6ZUkRVrSWN9vd F69w== X-Forwarded-Encrypted: i=1; AJvYcCX74O9sRwxNsnMh8SUa1w1VYYbpypl9pqJUKnJd5o6v+aJm/wB+YabtnCXwvRdDjfesEsNliL8z1PFJ/KWf2zFydVsPex+W/Im1VyqC X-Gm-Message-State: AOJu0YxwmzGN0SM3SeRnLG38HNWHAsOsAovVspaNf7N33l3+gvNbhzzX DTqOFYut59wQCmfe5dBrIak588/cdivfaw+Z/lSuHI/p127HI1wAWBzD1NPQEPw= X-Received: by 2002:a17:906:1c8d:b0:a3d:16dd:307c with SMTP id g13-20020a1709061c8d00b00a3d16dd307cmr1498463ejh.5.1708003989366; Thu, 15 Feb 2024 05:33:09 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:7555:8187:c6f1:9c02? ([2a01:e0a:982:cbb0:7555:8187:c6f1:9c02]) by smtp.gmail.com with ESMTPSA id oq25-20020a170906cc9900b00a3cd41b3c19sm541532ejb.199.2024.02.15.05.33.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Feb 2024 05:33:08 -0800 (PST) Message-ID: <2df69499-4ffa-46a9-8e7f-041e87ad3034@linaro.org> Date: Thu, 15 Feb 2024 14:33:06 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 2/6] dt-bindings: arm-smmu: Document SM8650 GPU SMMU Content-Language: en-US, fr To: Dmitry Baryshkov Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Will Deacon , Robin Murphy , Joerg Roedel , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev References: <20240215-topic-sm8650-gpu-v2-0-6be0b4bf2e09@linaro.org> <20240215-topic-sm8650-gpu-v2-2-6be0b4bf2e09@linaro.org> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nI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PMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15/02/2024 10:32, Dmitry Baryshkov wrote: > On Thu, 15 Feb 2024 at 11:29, Neil Armstrong wrote: >> >> On 15/02/2024 10:25, Dmitry Baryshkov wrote: >>> On Thu, 15 Feb 2024 at 11:20, Neil Armstrong wrote: >>>> >>>> Document the GPU SMMU found on the SM8650 platform. >>>> >>>> Signed-off-by: Neil Armstrong >>>> --- >>>> Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 7 +++++-- >>>> 1 file changed, 5 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >>>> index a4042ae24770..3ad5c850f3bf 100644 >>>> --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >>>> +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >>>> @@ -93,6 +93,7 @@ properties: >>>> - qcom,sm8350-smmu-500 >>>> - qcom,sm8450-smmu-500 >>>> - qcom,sm8550-smmu-500 >>>> + - qcom,sm8650-smmu-500 >>>> - const: qcom,adreno-smmu >>>> - const: qcom,smmu-500 >>>> - const: arm,mmu-500 >>>> @@ -508,7 +509,10 @@ allOf: >>>> - if: >>>> properties: >>>> compatible: >>>> - const: qcom,sm8550-smmu-500 >>>> + contains: >>>> + enum: >>>> + - qcom,sm8550-smmu-500 >>>> + - qcom,sm8650-smmu-500 >>> >>> Doesn't this cause warnings for non-GPU SMMU on this platform? >> >> No because it doesn't add those to required, it simply allows clock the properties. > > Can we further constrain this branch so that it is applicable only to > the Adreno SMMUs (and enforce requirement)? And maybe constrain the > second if-branch so that it doesn't apply to the Adreno SMMUs? Indeed, it's done like that for the a6 gpu, I'll send a fix for that Neil > >> >>> >>>> then: >>>> properties: >>>> clock-names: >>>> @@ -544,7 +548,6 @@ allOf: >>>> - qcom,sdx65-smmu-500 >>>> - qcom,sm6350-smmu-500 >>>> - qcom,sm6375-smmu-500 >>>> - - qcom,sm8650-smmu-500 >>>> - qcom,x1e80100-smmu-500 >>>> then: >>>> properties: >>>> >>>> -- >>>> 2.34.1 >>>> >>> >>> >> > >