Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1404802rwd; Wed, 31 May 2023 13:31:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ddLLXq7Pnmlc0e/olwnO/55d0fGKmkNhHXIky4aPszrqDt9WjsdqACyD6AwwUJXUm8LUV X-Received: by 2002:a17:903:2109:b0:1b0:2658:db20 with SMTP id o9-20020a170903210900b001b02658db20mr5633408ple.53.1685565063764; Wed, 31 May 2023 13:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685565063; cv=none; d=google.com; s=arc-20160816; b=QlOPVweZ62YJq7O0fhlQqJyqgUeV69FyNYNmKhUPyMFvl8oZ/9InUHHGMtzO4nyE1s jtRMrqF0iYpGLkht4jJ5WiuyVPCl/kuIMa0YlMa3WUOWjmP2DL/oRRaw8q+dmyewno7Y YVk3c7UUYkgF7RJzO6ZnbFxvzkiHEAVz8VYgvAMQonLGTZs1nXcHiCy5Eae8u9az3KWs oqPCYeqGisB+QMVnaqqLs26OdmXeg0ZLHSmwXLfaJlBnnl9/mBSGJIy4HmyKGK/GC6N/ MD9oI0yVTEY+OVQ/OThEoJZlo1SVpAQ/phMoDtjTZpnAmQK4WRtufSr8jTFi7nE+0LwM nW0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=x9eYJWg+Z+b1a+E6Hrzk3FNFSPRGj5LfNanix7jwz0I=; b=s+U8PcQg1Hah0u9BmHgfdBEtbEjUVU7LruR9jeag0ppKy2ygwOaAJZzh9vzVTagOY0 zVnX6+HGoUlprvs+IiwtIxuvIv50AK2uk1YnH50GBb39hfIys5Cy2NlKU94IdAkV+Zeg oFZl1gX0uYt/gPaBFnldYhVflCQY88+BiP2jREzSGHvn3J1LxsiV6vxGVMLMGP7XFml8 uNXMwHHT+/SImMeF7cqbsxcxIK0NwbswrXbl5JZBowf5anqI2uKxQ6V7PJ2OhDzAPdJU Lyuau7RnTE46zFM3PV85NirK4m2LtApvIw905yqBKSVmJnxP9dPLCSuvD8OdLv9np8gm QpOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tgz3CX7l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a170903111000b001a9b4bda723si469710plh.421.2023.05.31.13.30.20; Wed, 31 May 2023 13:31:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tgz3CX7l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229459AbjEaURM (ORCPT + 99 others); Wed, 31 May 2023 16:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjEaURK (ORCPT ); Wed, 31 May 2023 16:17:10 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A0ACE52 for ; Wed, 31 May 2023 13:16:49 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f3bb395e69so7592516e87.2 for ; Wed, 31 May 2023 13:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685564199; x=1688156199; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=x9eYJWg+Z+b1a+E6Hrzk3FNFSPRGj5LfNanix7jwz0I=; b=Tgz3CX7lyJT1Z5ozBlXD/O6CZ4srDi1Cn356IL4wea7SeHNmPdblciCwObuf213y1N RynUQHrmHpEcD05kxajiM853Ja6pkBG5tPvbBXXqOTnsPr8p51OymjqXdhJzDeacVTvv 3yHPaDfK2YXfBS+aga0O4GWXaoWDRfo4zUwe5M/1zUMVX1eKJmW2lqTwPAmfMsf43nio fThkOFlIP0cp1IK168sYbsUiPMimXoLU+XtnYUt6DYW6e//8WiiKKh9+cEezjDLTzxJz 0HaZ0O1oAKk3VHnMVnZCaKE9ee43h4yysjjrV7P82DupzLN4kdHISxuJhtkafeFJTvpp fyng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685564199; x=1688156199; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x9eYJWg+Z+b1a+E6Hrzk3FNFSPRGj5LfNanix7jwz0I=; b=Nk6GdHXYfdyh+Xut+5zUqD1krV+A/aeQEPifGppwvx8dp6NewQ0tA/d+NhueSxlZRV dp/XzaBgutzVfSH+GNyPbrTXDta46rqtOIqpKV1RqCQiQna/ZMe+gicptsxWZSQCj042 gGBxFXWJ7hI2xFS12NTLF/xk7wn4NUZUNVQt0NnUFzLIgUsaRZnBsagQqhLWXtS6YBU7 OYuin6kvydjxSWozKdHRcs2phqX9Xv97GdB9mGkNW+25nNtqinJQ7qWEf+HeSUX5B1sy 9JbTh4jbSmInxTiOBtoht7ozrt8JxQI1a6ylSIj0NZ9ze0w3+0AtAnvX3No0eyElBpeN /lTw== X-Gm-Message-State: AC+VfDwDEH+OibttbMLk95xn6EYGPgC9M/x1b/rF7OXlQt0rpZkTQr5P Cjt+Pj262RGEqeeOaMO5Jyq/EA== X-Received: by 2002:ac2:5dd5:0:b0:4f2:7cb1:65fc with SMTP id x21-20020ac25dd5000000b004f27cb165fcmr71934lfq.64.1685564199513; Wed, 31 May 2023 13:16:39 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id e2-20020ac25462000000b004f38e55ae79sm832743lfn.278.2023.05.31.13.16.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 13:16:39 -0700 (PDT) Message-ID: <991fe23f-a9af-8929-00bf-94e623ef38cb@linaro.org> Date: Wed, 31 May 2023 22:16:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v3 3/3] arm64: dts: qcom: sc8280xp: Enable GPU related nodes Content-Language: en-US To: Bjorn Andersson , Bjorn Andersson Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Akhil P Oommen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, johan@kernel.org, mani@kernel.org, Steev Klimaszewski References: <20230531030945.4109453-1-quic_bjorande@quicinc.com> <20230531030945.4109453-4-quic_bjorande@quicinc.com> From: Konrad Dybcio In-Reply-To: <20230531030945.4109453-4-quic_bjorande@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.05.2023 05:09, Bjorn Andersson wrote: > From: Bjorn Andersson > > Add memory reservation for the zap-shader and enable the Adreno SMMU, > GPU clock controller, GMU and the GPU nodes for the SC8280XP CRD and the > Lenovo ThinkPad X13s. > > Tested-by: Steev Klimaszewski > Signed-off-by: Bjorn Andersson > Signed-off-by: Bjorn Andersson > --- > > Changes since v2: > - None > > Changes since v1: > - None > > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 26 +++++++++++++++++++ > .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 26 +++++++++++++++++++ > 2 files changed, 52 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > index cd7e0097d8bc..58b1d920ea9c 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > @@ -210,6 +210,11 @@ vreg_wwan: regulator-wwan { > }; > > reserved-memory { > + gpu_mem: gpu-mem@8bf00000 { > + reg = <0 0x8bf00000 0 0x2000>; > + no-map; > + }; > + > linux,cma { > compatible = "shared-dma-pool"; > size = <0x0 0x8000000>; > @@ -259,6 +264,10 @@ usb1_sbu_mux: endpoint { > }; > }; > > +&adreno_smmu { > + status = "okay"; > +}; > + > &apps_rsc { > regulators-0 { > compatible = "qcom,pm8350-rpmh-regulators"; > @@ -390,6 +399,23 @@ &dispcc0 { > status = "okay"; > }; > > +&gmu { > + status = "okay"; > +}; As I pointed out in v2: You can keep the GMU enabled by default as well, it won't "probe" on its own (the GPU's hw_init calls its registration) same for the other dt Konrad > + > +&gpu { > + status = "okay"; > + > + zap-shader { > + memory-region = <&gpu_mem>; > + firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn"; > + }; > +}; > + > +&gpucc { > + status = "okay"; > +}; > + > &mdss0 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > index 5ae057ad6438..382f27946468 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts > @@ -264,6 +264,11 @@ vreg_wwan: regulator-wwan { > }; > > reserved-memory { > + gpu_mem: gpu-mem@8bf00000 { > + reg = <0 0x8bf00000 0 0x2000>; > + no-map; > + }; > + > linux,cma { > compatible = "shared-dma-pool"; > size = <0x0 0x8000000>; > @@ -359,6 +364,10 @@ usb1_sbu_mux: endpoint { > }; > }; > > +&adreno_smmu { > + status = "okay"; > +}; > + > &apps_rsc { > regulators-0 { > compatible = "qcom,pm8350-rpmh-regulators"; > @@ -518,6 +527,23 @@ &dispcc0 { > status = "okay"; > }; > > +&gmu { > + status = "okay"; > +}; > + > +&gpu { > + status = "okay"; > + > + zap-shader { > + memory-region = <&gpu_mem>; > + firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn"; > + }; > +}; > + > +&gpucc { > + status = "okay"; > +}; > + > &mdss0 { > status = "okay"; > };