From patchwork Wed May 31 15:04:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13262425 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F3AC6C77B7A for ; Wed, 31 May 2023 15:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yw7QENpEHaFozy7MPTF/SXalvuy8RqUrGSQi78K73N4=; b=UJ25YMVgN1knsG EWYJhQgINv9oUibc+dhfz7bexzbXOrOhRxTADVml5Ltwp4roi6lGnAhDXp33lMqMuPmyFtgZZ0XSV BO0Qu1fLUJmWGSUm6Mwxf/XxHhqVxryKrVQ8HE3sfYIZSCAdPa+Iba45NX3TFBTTBUniWQQJBrP3C 4J/1NDmbaBc+9MhTCpObffM/rho/7wwozYwFuiA0/ZKzsNn0LkzLLR218IXCo1/ahB8bJAfEpq50I jlqMx0jff0CKDDgWziuAl0V7rWNIEMfhl0y5J8om80wNHyt4gXxtaheA2+CMxbqp34guoXIAvkq5P ac4c4Rh1hm2CJEKx5z6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q4NNV-000EGW-2Y; Wed, 31 May 2023 15:04:45 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q4NNK-000ECc-30 for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2023 15:04:36 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f3b5881734so6974859e87.0 for ; Wed, 31 May 2023 08:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685545471; x=1688137471; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=RNLO4nYhnPqhn1ZR80So3i5u5QMBlsTPDRXJyuHPHdo=; b=IW4qp84ak6aVsS6ws9/7Pp8DqyEOrs+9UEeJvZNDjHNkRJK7ylKhyn9B4KH/8xtUuk cE91OGaDJx6+Zzq41GBxXXGz8LKhN80qTfwnbdmUIkeQ1bQKkcygFTXPriAqbveV9b+p a8hQWDqfha7UI+8c9SlmnWuMwoDlVmvIXxYbIzcNEnpyEED93dcAE7Wm+DTrplwjgKIr H6TKdN3632fu3RZGqhO8jPLMl37Th/dVXL07/DBVmJhHhH9YQ33k8I8iIWNj1GsTmDq8 q/jX+UzpY7Vob0ZUDOuS02PYbsKl490VO7GuET7mNmgbeU1rF10H4mCApe0jB///9/27 QuJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685545471; x=1688137471; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RNLO4nYhnPqhn1ZR80So3i5u5QMBlsTPDRXJyuHPHdo=; b=YqzvDWFf3gy87b9d4Frtq+CfhFbr7aS+mR6Qutm1cmBFPzjeBCwU6L1IWt3GYUiDQl Kkvv5ZCV8ug/mG+KEq8lprG/krv6FFJfnzP6iA5vEcyMKvZG0RsN0HPoc+K6NDZlkiIX Ci8RHP3bA9tKs0KpsKmWwNYSffS7Zjiq3ul+OpKECPY7rlPCTKQ/0JTgTld+E2N/Tj7C 3scmeEWBzGbZNHo43R1acKmDUVjLH6LgXH6MV+GNWc25Yn8c16BSEmidtNF9XCkNiTb9 YEWfp68M3LNNoqJWjNISqvEI7uIVWAlvlxkZnwCU45fqVCR99qZ938xdGdkFJ4bhTSoM TqxA== X-Gm-Message-State: AC+VfDwRWzuX0XD4RuZkacUictVtmBKPSO/XEGevNyPCELTBANXKiR1z AstzSWYiJOfEncJBKBAE67CK6w== X-Google-Smtp-Source: ACHHUZ6isPAGGyNErW2TVjyf8oGAklK5h/wCFAwLXiR8DWB6O0Ru3p8wOQXRM0yqKVFYFrkgCrZ/ug== X-Received: by 2002:a05:6512:3743:b0:4f2:7ce7:dcf3 with SMTP id a3-20020a056512374300b004f27ce7dcf3mr2862793lfs.17.1685545471043; Wed, 31 May 2023 08:04:31 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id v25-20020a197419000000b004f019d3eab4sm756325lfe.23.2023.05.31.08.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 08:04:30 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 17:04:23 +0200 Subject: [PATCH 1/2] dt-bindings: arm-smmu: Add SM6375 GPU SMMU MIME-Version: 1.0 Message-Id: <20230531-topic-sm6375_gpusmmu-v1-1-860943894c71@linaro.org> References: <20230531-topic-sm6375_gpusmmu-v1-0-860943894c71@linaro.org> In-Reply-To: <20230531-topic-sm6375_gpusmmu-v1-0-860943894c71@linaro.org> To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: Marijn Suijten , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685545468; l=1196; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gJOlh+EMoLh8KOQ53iJ7hyFLc362lflmhqV5kwupSas=; b=XwOLMmcbcNw6AK7Mgvhj4n75W9cOGfnCWczMCWaASiSS8xGuTRrID/XD8y6uvnCtSaElXVUmf 0Guxw3Bd1nKAZP1Fh2z0QLkXI0IovjimDCL6++lgmi08X6H+GDD2kU7 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230531_080434_968349_A255014D X-CRM114-Status: GOOD ( 10.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org SM6375 has a "Qualcomm SMMU V2" implementation for its GPU SMMU. It does not however qualify for the qcom,adreno-smmu compatible, as it can not do split pagetables. It consumes a single clock and a single genpd. Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml index ba677d401e24..aec9137713c9 100644 --- a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml +++ b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml @@ -29,6 +29,7 @@ properties: - qcom,msm8996-smmu-v2 - qcom,msm8998-smmu-v2 - qcom,sdm630-smmu-v2 + - qcom,sm6375-smmu-v2 - const: qcom,smmu-v2 - description: Qcom SoCs implementing "qcom,smmu-500" and "arm,mmu-500" @@ -267,6 +268,7 @@ allOf: enum: - qcom,msm8998-smmu-v2 - qcom,sdm630-smmu-v2 + - qcom,sm6375-smmu-v2 then: anyOf: - properties: From patchwork Wed May 31 15:04:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13262426 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 67079C77B73 for ; Wed, 31 May 2023 15:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HjBLQRADnERp7/Ll21646STx1IerMQA0WM1aBw2yz1M=; b=rGncv0FdZPcJuM NguUNoPmACTwe9kyIb89Dp0K6crohZRM/TnOUMUJGf51exlnek/YUqweHz9BYRndLwhg5BuXzzX1n fnvFcEVP6uQBHeb8/Ueh8X66E1kpaZEUfOhsJ74WLJkqWE75KZjVVIOl1ngPufeW4A3gQ5o7+hUKf 51cZhvMN4CMlMChzWlos0e/5EChhN98nvsiyPzxbXhKd86nXxRtVaAfa27NMtJmwbe9fiCBNIKFH2 BbczANIdR8CPczUTNARs0cBBF/ooDxYMmkawhQV2TBsBbyUAyqvilkAq3NDp4y/8oLYDyW8pJ4U3k 4635819rp57c8V0zzS1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q4NNW-000EGw-17; Wed, 31 May 2023 15:04:46 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q4NNM-000ED0-09 for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2023 15:04:37 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f50a8f6dd7so3334608e87.2 for ; Wed, 31 May 2023 08:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685545472; x=1688137472; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vBciu8IUz0vdlWcni9FF4uUhO0LU6XOb9eyf9C827Ho=; b=F3/9fdJooQi3A7ohsFU9tS4SwZD9ktZAukLHq/SO4yRqiZv6j/0w2BVKW9jaPyGpmc 61BYIKRpol8gHP2c7RCIptTA0gD5F3X02oMC4+tEVQ4cOszY3ncSi2jvdECqsHCJk26M h8DILCBuC48MSc74ueJASvUcbZIoEmJbTjZd26l6cPqBEA1P07OZN8j4oqHBEgfkU+0s GPdwJ/ckS5kiOt4sqgBBizYGTtKl9FMl+wyWTbdRMKrRHTVCMDIEQz1TUC5kGn9nffsu Uw28Yxy5pm2WmUFPBD9xbabSZo3UStxiZc8yXR5ubmo+NkLmv7GiTuKirSyppFGxQN5/ m4yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685545472; x=1688137472; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vBciu8IUz0vdlWcni9FF4uUhO0LU6XOb9eyf9C827Ho=; b=kZfmV5I2Zsb6r8b6zt/HymhvGbOzmNwIQUCUH3takL8LOlA01952BFUUoxugKTlPav IIg2dSE0LtctgEWbu/aXqBAclL/+dKCw6le1uETZiJwEXMaVYBU/Xe6fKPGbrE3wc/Sq NkQU0zAXeDRinio9bp9NhEH27YHsgDAUKivL5VoQhNvbK/b9QRyNEWAu60b2I3pzXaqP HMCW9KonZnyYXUDqNqQoQgBwrAlKlZNWCpR+XdfI57S8uKLkdYQfrM0q2WCN114vTvQO T1ExFTgsQsWRX4rVGYbk7fFmeT9UhgmtC7E6BcV34Emhx/3Zk3mgUe2wfBTum0+KDjyS 5GTQ== X-Gm-Message-State: AC+VfDwzGH3hUvenBJZ9tfm/uNMYB586QeVm0sy4Ihl1D8Lo60z5ynWG gHJdoO1HKygkmWulYrMq0VX7cg== X-Google-Smtp-Source: ACHHUZ7R4nk2gm5iFOwfNg+kcoT3U5GmcqIxiuSd/sSJnm1971fkxNGCuVI8TjZHxwQV8eqZo0DFjQ== X-Received: by 2002:ac2:44ae:0:b0:4f3:8196:80cb with SMTP id c14-20020ac244ae000000b004f3819680cbmr2957225lfm.41.1685545472269; Wed, 31 May 2023 08:04:32 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id v25-20020a197419000000b004f019d3eab4sm756325lfe.23.2023.05.31.08.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 08:04:31 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 17:04:24 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: sm6375: Add GPUCC and Adreno SMMU MIME-Version: 1.0 Message-Id: <20230531-topic-sm6375_gpusmmu-v1-2-860943894c71@linaro.org> References: <20230531-topic-sm6375_gpusmmu-v1-0-860943894c71@linaro.org> In-Reply-To: <20230531-topic-sm6375_gpusmmu-v1-0-860943894c71@linaro.org> To: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: Marijn Suijten , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685545468; l=2217; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=0qRthIuQ5GXryV4KqwemAc1v1T13tS3GmpDq4wc4d9Q=; b=LQedeCbvmtolR0nCDOCffZcsRKQtljPkZB5M7fCUYyluIH+p/GHigxqARJSVI+tDv6kCeipth 0qk8Eb5tkoFA2Y3hkDRi5NZRoFvnNhwpNnUsNouaeXPj509BhPZnoES X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230531_080436_085022_64A673AD X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add GPUCC and Adreno SMMU nodes in preparation for adding the GPU itself. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index f8d9c34d3b2f..3dba34210a6d 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -1276,6 +1277,42 @@ usb_1_dwc3: usb@4e00000 { }; }; + adreno_smmu: iommu@5940000 { + compatible = "qcom,sm6375-smmu-v2", "qcom,smmu-v2"; + reg = <0 0x05940000 0 0x10000>; + #iommu-cells = <1>; + #global-interrupts = <2>; + interrupts = , + , + , + , + , + , + , + , + , + ; + + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>; + clock-names = "bus"; + + power-domains = <&gpucc GPU_CX_GDSC>; + }; + + gpucc: clock-controller@5990000 { + compatible = "qcom,sm6375-gpucc"; + reg = <0 0x05990000 0 0x9000>; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>, + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>; + power-domains = <&rpmpd SM6375_VDDGX>; + required-opps = <&rpmpd_opp_low_svs>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + remoteproc_mss: remoteproc@6000000 { compatible = "qcom,sm6375-mpss-pas"; reg = <0 0x06000000 0 0x4040>;