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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 04050C77B75 for ; Tue, 9 May 2023 08:13:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FFE510E352; Tue, 9 May 2023 08:13:25 +0000 (UTC) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7C18A10E353 for ; Tue, 9 May 2023 08:13:23 +0000 (UTC) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f22908a082so3199894e87.1 for ; Tue, 09 May 2023 01:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683620001; x=1686212001; 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=+a63huvHkNlgxbIA82jUFlFnVbRohtBnA/WfzIW4wD0=; b=qxF8cTGXstrZkvtOzXbsVSYyvI4CAjtu1dQdbvbZ/m5ALKUij7PiHBVy3P5d4gUEDD AjZnt7JU8tsTIj6M7NGdj8Cbvz3WxIL/5qzwFxfasUyxmSTAn88AgVzBP1n0GFV2or/z usUynnYjPy+zxHeR0hQ4EjFpu9FwJ3BG68MV6aEPPgvqn7fiuEnj3SylBhY8Pl1v9A5s SiQ1f1sRobaV0uq6F65WzTRyNfBtm5RNz1R9UUnErw4S6Lv7s+GeSgzLb+RUmbH2mCKm 5waEF940CxElIkXmuQ/RssIsDiIoiBubGVUwfvgLB9V7cEyJ+6PyANkUjX/Gdmv4sBab 6Z2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683620001; x=1686212001; 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=+a63huvHkNlgxbIA82jUFlFnVbRohtBnA/WfzIW4wD0=; b=Qr80yQRRr7ZGRy/1T4blLqqDUpdHVbtGLGU5GjYKhD6yOiy0BCq2hJd9tI5QDEBUMD mB9BaGt6RRK+2rELTbqN8KZ/l/uj0dOCZZtcFL1fMzeojh3gdt+nJJBVYCcQQs/jpVgs 2sfeR0oUUwiNqhbvAcMa4mOvDrkeYPHyj1bSKct83Rq+GvzO8zF2CpOTpFRaDGu8gOZ3 811RwZEZQV2aI5sMe++guStbI84G9477zWSmF1/nj6ncSBlPI3dqztqqljuHQ4kV+AYo bDcuoIDnUkwHB13GwlwP021zE6qPQvSdyQyp70fHTC9/iRqP49v505vxIhx/rP/cDiWP yCXw== X-Gm-Message-State: AC+VfDwfo236JwOuAqs1UIoDmw9xVIKh0saQxShafzYCBQdAo5QGs9tH wfbqAe5Tns3bs0fVnZ6YeikzNg== X-Google-Smtp-Source: ACHHUZ6Q9AwpgoXuzW6lEbqxALgpxFYaIBqIL97ZWrak++tcqNQ2ZwOlggV6brbiaxUZCynYRC0fJA== X-Received: by 2002:ac2:48b8:0:b0:4ef:f509:1184 with SMTP id u24-20020ac248b8000000b004eff5091184mr559873lfg.3.1683620001224; Tue, 09 May 2023 01:13:21 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id f20-20020ac251b4000000b004f14fa44403sm256760lfk.283.2023.05.09.01.13.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 May 2023 01:13:20 -0700 (PDT) Message-ID: <2776ff92-29ce-4c08-c107-db962e2948a1@linaro.org> Date: Tue, 9 May 2023 10:13:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 3/4] ARM: dts: qcom: apq8074-dragonboard: enable adsp and MSS Content-Language: en-US To: Dmitry Baryshkov , Andy Gross , Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski References: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> <20230507190735.2333145-4-dmitry.baryshkov@linaro.org> <11863653-84aa-8edf-676f-e55174fb4539@linaro.org> <7b90ed61-7789-275d-a743-6065ab6ecdbb@linaro.org> From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 9.05.2023 01:38, Dmitry Baryshkov wrote: > On Mon, 8 May 2023 at 21:01, Dmitry Baryshkov > wrote: >> >> On 08/05/2023 13:49, Dmitry Baryshkov wrote: >>> On 08/05/2023 13:38, Konrad Dybcio wrote: >>>> >>>> >>>> On 8.05.2023 12:33, Dmitry Baryshkov wrote: >>>>> On 08/05/2023 11:33, Konrad Dybcio wrote: >>>>>> >>>>>> >>>>>> On 7.05.2023 21:07, Dmitry Baryshkov wrote: >>>>>>> Enable ADSP and Modem DSPs on APQ8074 dragonboard. The MSS region >>>>>>> differs from the one defined in the msm8974, so it overriden locally. >>>>>>> >>>>>>> The modem is specified use mba.mbn instead of mbn.b00 (for the sake of >>>>>>> similarity with other platforms). This requires a patch for remoteproc >>>>>>> to be applied [1]. >>>>>>> >>>>>>> [1] >>>>>>> https://lore.kernel.org/all/20230507172041.2320279-1-dmitry.baryshkov@linaro.org/ >>>>>>> >>>>>>> Signed-off-by: Dmitry Baryshkov >>>>>>> --- >>>>>>> .../arm/boot/dts/qcom-apq8074-dragonboard.dts | 28 >>>>>>> +++++++++++++++++++ >>>>>>> 1 file changed, 28 insertions(+) >>>>>>> >>>>>>> diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts >>>>>>> b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts >>>>>>> index 6b047c679370..c893afc00eb4 100644 >>>>>>> --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts >>>>>>> +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts >>>>>>> @@ -4,6 +4,8 @@ >>>>>>> #include "qcom-pm8841.dtsi" >>>>>>> #include "qcom-pm8941.dtsi" >>>>>>> +/delete-node/ &mpss_region; >>>>>>> + >>>>>>> / { >>>>>>> model = "Qualcomm APQ8074 Dragonboard"; >>>>>>> compatible = "qcom,apq8074-dragonboard", "qcom,apq8074"; >>>>>>> @@ -17,6 +19,13 @@ aliases { >>>>>>> chosen { >>>>>>> stdout-path = "serial0:115200n8"; >>>>>>> }; >>>>>>> + >>>>>>> + reserved-memory { >>>>>>> + mpss_region: mpss@ac00000 { >>>>>>> + reg = <0x0ac00000 0x2500000>; >>>>>>> + no-map; >>>>>>> + }; >>>>>>> + }; >>>>>>> }; >>>>>>> &blsp1_uart2 { >>>>>>> @@ -39,6 +48,25 @@ eeprom: eeprom@52 { >>>>>>> }; >>>>>>> }; >>>>>>> +&remoteproc_adsp { >>>>>>> + cx-supply = <&pm8841_s2>; >>>>>>> + >>>>>>> + firmware-name = "qcom/apq8074/adsp.mbn"; >>>>>>> + >>>>>>> + status = "okay"; >>>>>>> +}; >>>>>>> + >>>>>>> +&remoteproc_mss { >>>>>>> + cx-supply = <&pm8841_s2>; >>>>>>> + mss-supply = <&pm8841_s3>; >>>>>>> + mx-supply = <&pm8841_s1>; >>>>>>> + pll-supply = <&pm8941_l12>; >>>>>> High time to move this to rpmpd! >>>>>> I won't object to adding this though, as it obviously works >>>>>> and is already used on other boards.. >>>>> >>>>> I think the problem is that they are not level-voted on this >>>>> platform, so they are regulators, not PDs. >>>> They're corner-voted. >>> >>> Hmm. Indeed. In msm8974-regulators I see both voltage and corner entries >>> for these regulators. >> >> Checked. Only CX and GFX (yes, MX not included) are enabled as corners >> in vendor dtsi. So this probably doesn't gain us a lot. > > I did a check. Implementing CX as a powerdomain here makes things > worse for now. We should first teach mss/pas/etc drivers to properly > handle the case when there is a single power-domain, which should be > unbound after staring the DSP Consider e.g. ADSP and CDSP on sm8150 or > CDSP on sm8250. But that's definitely a topic for a different patch > series. After that we can consider landing msm8974_genpd. Ack, thanks for looking into it. Konrad > >> >>> >>>> >>>> Konrad >>>>> >>>>>> >>>>>>> + >>>>>>> + firmware-name = "qcom/apq8074/mba.mbn", "qcom/apq8074/modem.mbn"; >>>>>> Could you please keep it one entry per line? >>>>> >>>>> Sure. >>>>> >>>>>> >>>>>> Otherwise, >>>>>> >>>>>> Reviewed-by: Konrad Dybcio >>>>>> >>>>>> Konrad >>>>>>> + >>>>>>> + status = "okay"; >>>>>>> +}; >>>>>>> + >>>>>>> &rpm_requests { >>>>>>> regulators-0 { >>>>>>> compatible = "qcom,rpm-pm8841-regulators"; >>>>> >>> >> >> -- >> With best wishes >> Dmitry >> > >