Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3503863pxx; Mon, 2 Nov 2020 10:34:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIslPCtF123lBi+J6NTi56u2BxYNUgvzTstIbjhTa+Q6nNI+1mnpovbSDVlvNwhjc0jRou X-Received: by 2002:a17:906:1f92:: with SMTP id t18mr3519592ejr.539.1604342069028; Mon, 02 Nov 2020 10:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604342069; cv=none; d=google.com; s=arc-20160816; b=LKrh+J7apspIyJGqSrkIitPfdpLzL3nxdkM8hWZFJxgWRxTFQH6S9bxuFURoed2ari bSeL9B1w5DCVRht3btG9kob18zWR70Ieg+JaJYvQoiUQZo4xmUi8wFGTD7VcN0HKbo3I +/i4MbD1IiYkB2BME1LOw5FEfhkO1Rn+64UlH3g9PHaUAZnEjPxtpoHExUeplAshHMOP p+jAuhbwb6txPRe8yF5ABQZjjnGekXzMg7oJvYMpkLGbg1ZCw5CtCyt/q/eeS9QScAfc 38VLZU7WOG0xM9BDbcVljqNCaOKJ5ezPb6KvXwbfza8Dgj8fuO668PN13T8l9hm0A9g/ ZnbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=xs4O/X9lRJcm2pnhyuXwbbqI2Mjci//wo9wB9QE5g+A=; b=DiQGEIB7Wv/jSNhghNCoRqCiTnRoJX9MdQw3jqZWnfre/qBy+2luzUQzl9cG9YsWMi dVNJ548DcnO9r+JUh6mAnj65Qi3NaVRiKgf6iInSh4JElPeQBQnzs9yZUzLNAEg7BedT g6I5fiBbU9eYJFFFYIaxROgkUkiGvSpNV91k4RuE0rwjm56dlqTp8ZnBCk/dlJDAicv9 leGrqDaTqiVdF9VEuSp7tK3coTZk+AsugqDhodcTzYieEoXPu1kuBdysl3cnflXTn/Oc M8/KmIsw0kJ9npzZkCnnIws9pXh7u2o/BMYl3+yXepHp/bp9MBAJsueseE9vwlRq57uI oQMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs18si7695825ejb.162.2020.11.02.10.34.05; Mon, 02 Nov 2020 10:34:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbgKBScW (ORCPT + 99 others); Mon, 2 Nov 2020 13:32:22 -0500 Received: from foss.arm.com ([217.140.110.172]:36062 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgKBScV (ORCPT ); Mon, 2 Nov 2020 13:32:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D34FD139F; Mon, 2 Nov 2020 10:32:20 -0800 (PST) Received: from [10.57.54.223] (unknown [10.57.54.223]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DEF683F719; Mon, 2 Nov 2020 10:32:18 -0800 (PST) Subject: Re: [PATCH v18 3/4] dt-bindings: arm-smmu: Add compatible string for Adreno GPU SMMU From: Robin Murphy To: Jordan Crouse , linux-arm-msm@vger.kernel.org Cc: iommu@lists.linux-foundation.org, Will Deacon , Rob Herring , Rob Clark , Bjorn Andersson , Joerg Roedel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20201102171416.654337-1-jcrouse@codeaurora.org> <20201102171416.654337-4-jcrouse@codeaurora.org> <77278507-a6be-8517-6f76-02a0ff588e39@arm.com> Message-ID: <9409941f-366e-4dca-f49b-48eeff1ea248@arm.com> Date: Mon, 2 Nov 2020 18:32:17 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <77278507-a6be-8517-6f76-02a0ff588e39@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-02 18:22, Robin Murphy wrote: > On 2020-11-02 17:14, Jordan Crouse wrote: >> Every Qcom Adreno GPU has an embedded SMMU for its own use. These >> devices depend on unique features such as split pagetables, >> different stall/halt requirements and other settings. Identify them >> with a compatible string so that they can be identified in the >> arm-smmu implementation specific code. >> >> Signed-off-by: Jordan Crouse >> Reviewed-by: Rob Herring >> Signed-off-by: Rob Clark >> Reviewed-by: Bjorn Andersson >> --- >> >>   Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 9 +++++++-- >>   1 file changed, 7 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >> b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >> index 503160a7b9a0..3b63f2ae24db 100644 >> --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >> +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml >> @@ -28,8 +28,6 @@ properties: >>             - enum: >>                 - qcom,msm8996-smmu-v2 >>                 - qcom,msm8998-smmu-v2 >> -              - qcom,sc7180-smmu-v2 >> -              - qcom,sdm845-smmu-v2 > > What about the "Apps SMMU" instances? Those are distinct and don't > have/need the GPU special behaviour, right? Oh, having looked at patch #4, which prompted me go and look at the 845 DTSI in context, now I realise the subtlety I overlooked. So I guess it really was worth resending, ha! Sorry for being thick :) Reviewed-by: Robin Murphy > > Robin. > >>             - const: qcom,smmu-v2 >>         - description: Qcom SoCs implementing "arm,mmu-500" >> @@ -40,6 +38,13 @@ properties: >>                 - qcom,sm8150-smmu-500 >>                 - qcom,sm8250-smmu-500 >>             - const: arm,mmu-500 >> +      - description: Qcom Adreno GPUs implementing "arm,smmu-v2" >> +        items: >> +          - enum: >> +              - qcom,sc7180-smmu-v2 >> +              - qcom,sdm845-smmu-v2 >> +          - const: qcom,adreno-smmu >> +          - const: qcom,smmu-v2 >>         - description: Marvell SoCs implementing "arm,mmu-500" >>           items: >>             - const: marvell,ap806-smmu-500 >>