From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>
Cc: Bjorn Andersson <quic_bjorande@quicinc.com>,
Rob Clark <robdclark@gmail.com>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Sean Paul <sean@poorly.run>,
Akhil P Oommen <quic_akhilpo@quicinc.com>,
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
Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sc8280xp: Enable GPU related nodes
Date: Tue, 23 May 2023 14:56:25 +0200 [thread overview]
Message-ID: <19f30d4c-d879-ce2f-1cd7-ebcb941bbcec@linaro.org> (raw)
In-Reply-To: <20230523122842.cueyeovuzpx63def@ripper>
On 23.05.2023 14:28, Bjorn Andersson wrote:
> On Tue, May 23, 2023 at 10:04:40AM +0200, Konrad Dybcio wrote:
>>
>>
>> On 23.05.2023 03:15, Bjorn Andersson wrote:
>>> From: Bjorn Andersson <bjorn.andersson@linaro.org>
>>>
>>> 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 <bjorn.andersson@linaro.org>
>>> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
>>> ---
>>>
>>> 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.
>>
>
> On sa8295p/sa8540p the GPU is powered differently, so if I leave it
> enabled by default I need to disable it (or configure it) for those, or
> they won't boot.
Another "messed up automotive forks" situation, eh..
Would it take a lot of new code to configure these platforms correctly?
Konrad
>
> Regards,
> Bjorn
>
>> 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";
>>> };
next prev parent reply other threads:[~2023-05-23 12:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-23 1:15 [PATCH v2 0/3] drm/msm/adreno: GPU support on SC8280XP Bjorn Andersson
2023-05-23 1:15 ` [PATCH v2 1/3] drm/msm/adreno: Add Adreno A690 support Bjorn Andersson
2023-05-23 7:28 ` Konrad Dybcio
2023-05-23 1:15 ` [PATCH v2 2/3] arm64: dts: qcom: sc8280xp: Add GPU related nodes Bjorn Andersson
2023-05-23 7:59 ` Konrad Dybcio
2023-05-23 8:28 ` Konrad Dybcio
2023-05-28 17:07 ` Manivannan Sadhasivam
2023-05-29 7:38 ` Konrad Dybcio
2023-05-29 8:46 ` Manivannan Sadhasivam
2023-05-30 15:35 ` Bjorn Andersson
2023-06-01 18:51 ` Akhil P Oommen
2023-06-01 18:46 ` Akhil P Oommen
2023-05-23 1:15 ` [PATCH v2 3/3] arm64: dts: qcom: sc8280xp: Enable " Bjorn Andersson
2023-05-23 8:04 ` Konrad Dybcio
2023-05-23 12:28 ` Bjorn Andersson
2023-05-23 12:56 ` Konrad Dybcio [this message]
2023-05-23 2:56 ` [PATCH v2 0/3] drm/msm/adreno: GPU support on SC8280XP Steev Klimaszewski
2023-06-14 16:03 ` Bjorn Andersson
2023-06-14 22:09 ` Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19f30d4c-d879-ce2f-1cd7-ebcb941bbcec@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=johan@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=quic_akhilpo@quicinc.com \
--cc=quic_bjorande@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).