Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4028433rwd; Tue, 23 May 2023 01:55:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Nj7gHkKRUTP60tCs6vhdogmV9nL0R+vBcZDQ22vQViJ30YcXJmEb59bSJ6hR5uG68deJw X-Received: by 2002:a05:6a20:160c:b0:104:4558:b412 with SMTP id l12-20020a056a20160c00b001044558b412mr15639327pzj.25.1684832139084; Tue, 23 May 2023 01:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684832139; cv=none; d=google.com; s=arc-20160816; b=Z+rJlfoFV5F7n6SV1589ARlMUyOuv0zg807RY2jn/nFdKwoIl3loJaTkkA26rUC+Xk 2r2JGMq9ZgZ5867I2WvB5lWKpCzYdF4n34Wif+TSl1HwMGp5XBQDFohnUELLjNoMgw7f CVVoqjFZoEM1OFePjGbtHSw2O8reRbpjkB0Yir1wFgYe+u6VCK/PGxRofCz2n8M464jQ twsyKSL/D6BkbQ0yFd3co5UWYHL12GxhQRosc80OJcoPttjORxvJCtEUqLs0O9No/XI2 0giBVzWuFWNH6RHTuH1rYry/CJ4K5M+zsjgHCS/eRX1mLlQPIvXW1OCcFr3W/g746FZv CI6Q== 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=jlLi+ycwQXT/s4WU1mgXfkcIcnCNUrHoMrkamB93Vuw=; b=aTHKi/Xao39XD1C5ougAwrfTIlqIxs5+5/YeAN4JtKVKO+sL+Qakh8ne2Lj0+cwNxJ AhehDLDs6X/2NbfsuUbcPHc6MkvoFo6anXFrYBXQQ5+3oNQQShIiJt0jZpZ1KT04OhKw /KQh7FgkD2OEhWcfOxhfVK8I2bMy3ORGIm/9V0H8+KajJ5lUlBhZNv6F2XwZ85wlbtqE oCXxFtxs1RjFNMK8n8lcIsbS2vBf6fABpoWKzkfN7JR3lj+jyZlM/TcKNxL3DUnEsiUu 1j8mIB85PlBJ3ljJ95f6oEDdbiE6nDFbZI6AiiOEYQyql3nWA9KsBLJhDKdOwN4loPRe QdLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XXEAhpk1; 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 b5-20020a63eb45000000b005301151503esi1921039pgk.186.2023.05.23.01.55.25; Tue, 23 May 2023 01:55:39 -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=XXEAhpk1; 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 S231784AbjEWIU3 (ORCPT + 99 others); Tue, 23 May 2023 04:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235180AbjEWITT (ORCPT ); Tue, 23 May 2023 04:19:19 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E499E79 for ; Tue, 23 May 2023 01:17:36 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9700219be87so301480466b.1 for ; Tue, 23 May 2023 01:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684829855; x=1687421855; 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=jlLi+ycwQXT/s4WU1mgXfkcIcnCNUrHoMrkamB93Vuw=; b=XXEAhpk103DUe101GB/PaPdduNts8saxz01VbPXxWH1vaRit8S0fVuKV0KftnkY6r5 o46Rq8Yk/FOzDdaaGt1vT/afDdBBdpLwMwksYbx4tdEpeQ6zm0Nkt6X/hehVFPetKjos F6LixYppLreuxOibRlh4mjzE0MAMDEXEwC72fufydOhoyw/raSf+cwwFycosVmXdlN9C 3J9xMhvYzXUrI0liphkN1qIAR8hjRUWXUHmWx+sHw7nS/bYvAxI1jRc23+nfahSplt7n tlMlgGCJEcCFheeUbJBxBa+sJTs3TzNgGx59+td7Qa9htDWqAGVysndzr2vVuG9SJR2f KUQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684829855; x=1687421855; 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=jlLi+ycwQXT/s4WU1mgXfkcIcnCNUrHoMrkamB93Vuw=; b=TzD1cyYU++PL36BTT3v/37NUupqMuM8cQ0gcWZjVs7YwKGToSqnIWD9AC5dISAe1Tr 9n3p+w36ytTbb6/lFUXKN9AMJ9ORpybY+/ypDOqBfKr/V+mCeAjQHklH8Fq3UBSMSFIs Xa8uRJwmNUJPXkd+ybZFMpz+civ0arhIMCVQ2Phf2nP69hz9ot4JDjPZBRpjLzRFJNlQ tOrHRdn3RdFQm5XtQu5+1Dl7EMUNLCCx1IZKlK731ZV0V/DlRqI+qWl52QHWTbULF81s s8so1FQEiwv3GwQ3AAKSNChHCrgQQq/derghoz6ZyI8SbwhM5ZmxEjjkwbvUGDTAA1Oe HgMQ== X-Gm-Message-State: AC+VfDxU4BG5zbj28NEfTcFPuIwWwlIka3CxcWx1patdykbD4tVPn+RB S47CQvpL9L9O2xZITfcaEJs77YCcIAKFlzSXsPc= X-Received: by 2002:ac2:5298:0:b0:4ef:eb50:4d3d with SMTP id q24-20020ac25298000000b004efeb504d3dmr4022870lfm.18.1684829082167; Tue, 23 May 2023 01:04:42 -0700 (PDT) Received: from [192.168.1.101] (abyk138.neoplus.adsl.tpnet.pl. [83.9.30.138]) by smtp.gmail.com with ESMTPSA id h13-20020ac2596d000000b004f11eb32f20sm1266058lfp.13.2023.05.23.01.04.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 May 2023 01:04:41 -0700 (PDT) Message-ID: <1669ecc5-1845-e671-83f4-19ee14d37ce5@linaro.org> Date: Tue, 23 May 2023 10:04:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 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 References: <20230523011522.65351-1-quic_bjorande@quicinc.com> <20230523011522.65351-4-quic_bjorande@quicinc.com> From: Konrad Dybcio In-Reply-To: <20230523011522.65351-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=unavailable 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 23.05.2023 03:15, 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. > > Signed-off-by: Bjorn Andersson > Signed-off-by: Bjorn Andersson > --- > > 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 5b25d54b9591..547277924ea3 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 { The ZAP region is very seldom moved around, and I wouldn't expect it to be uncommon among the very usecase-specific 8280 machines. > + 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"; > +}; Ugh. Should definitely be enabled by default. > + > &apps_rsc { > regulators-0 { > compatible = "qcom,pm8350-rpmh-regulators"; > @@ -376,6 +385,23 @@ &dispcc0 { > status = "okay"; > }; > > +&gmu { > + status = "okay"; > +}; 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) > + > +&gpu { > + status = "okay"; > + > + zap-shader { > + memory-region = <&gpu_mem>; > + firmware-name = "qcom/sc8280xp/qcdxkmsuc8280.mbn"; > + }; > +}; > + > +&gpucc { > + status = "okay"; > +}; Clock controllers have no reason to be off by default. Konrad > + > &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 bdcba719fc38..5ef3f4c07d75 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"; > };