From patchwork Mon Dec 9 11:02:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899289 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DC40217F48 for ; Mon, 9 Dec 2024 11:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742154; cv=none; b=DNyWyUvP2RQ+n7UX6kdbrHkCQVVi6XJt6ApgjXzd2eiv0CbLU28JYy6J4VOHF8VnJ8BqbcqeBxOVqwoTxOAWo7K2p9vcMf2nPg6rORjkqPHfWfimlLzZR0XsNWYPwyEOH1KKq/GiUJ6LhFREQhiKijzhuuy9kpBKgq7dac6HdRc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742154; c=relaxed/simple; bh=BmeLBSD7e/5702j3yO++zDTzKsDBRH4GtN6Tw8+69y4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hLidNJtSvI6dsx0h/RUDE9c2tbvkBXsPYVLrR7PDsg+4G7v5984MuU8pToUHgEF8v1FuJ6U9/R19+h3lh2oS3zqmKznIR6ZwHrT0bjMsj4mqKxjnEJ27l+ekx+/XYFqcOIIJ6wajdpWKd3JZD5fFELArafBjeb5d1E4gRvJVDuM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GOpjSd9A; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GOpjSd9A" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5d3be7f663cso345671a12.2 for ; Mon, 09 Dec 2024 03:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742150; x=1734346950; darn=vger.kernel.org; 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=/fP5kZHXhj/8NE4k7+vfB0C5FDMhhdszC9LncVHhIgA=; b=GOpjSd9A9vCRJpzw5zNg1qvt5/4ifOe+qBv2xVNLuxzMZe+tYsfyOuYZMKQvYZ46Y/ ECtCVlCyKEzluLZ/wC4zlnMEFn7QqgM+VDWttxVskaqhnKzHn+2CUgMhcja973WIK4B6 mV1nYcy2Gi/ErbBs2Hee7wvnIHI8uLiSOuXboEUrXSK73NKe3+XkP2uJc834GT4FgJG5 D74YD/GBOGYmBUftIbgTYzionhod3ZJTlJMciNHFLHVvjWan1AcOm27ZWRQi41EG+HMO EpaRwMF12rpSUCM7DQpHSImk6mHvPpXvdYYsTWnO8zib0pA6XvDvdNTXZEHQRf5kpibE lEcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742150; x=1734346950; 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=/fP5kZHXhj/8NE4k7+vfB0C5FDMhhdszC9LncVHhIgA=; b=Day6WlMFLkR9ZPcAB+H7egNb/Us26Kcg0gofnCk7ZtXTTfL0meKmUXs29kUsQpEFG6 m0exCKtHb2nC4PWNN2lufbmJtRsrjYpZZ0+8aJH3c36N/vWB3qCwldRdTaSmynkDzVwW AuU5QFEV3ekUZfKQbCtcsWy6BHq63iEWA9D0SNM17GGQB5R9CbjgmcDyiBVAILMYbTsm W3oMOU9Eirg3m35itOxLD3xT4HpJhfyGEl47VmLoaX2omaYRBBn6KwCcczjuez6l9g7S 2yx2t1HX9uNaPAmjemLqoRTY4WkDvCOjvnN0AcZE6K88/bFoOpOEFwDiDWYu4AjZorgQ 8PzA== X-Gm-Message-State: AOJu0YyBWwtFuO6pqgcXLkM3RjqXapk+CpoJeIcSLjFOpSG3C6NfQp+/ sLkUI+qG2YXkmOK8JEy/wmoFsT6j1UtZOdO0UCOJ+xkYYrM2UehrrKCwzeCp8ZI= X-Gm-Gg: ASbGncs13nJqWIXu0vOXlwSmVHYmCWu0CNNDNIiik147Xgoc/YAysDL9UphiunXoaTL ZxFvr+qLdboG8MO4Qls0C0xYc0HiTkmueVYSYz/1RolPx3Fw6n1PUVXn7IRMmar6XJa5CpaZInw /zZSDUmyx3eGjeNPRTQ2J68yI/4qITCBm7XvuQGRQg1pSNeu5Mvxted9MxaBt01sjwRVXMaA5mD Qx+gBCMsWaD8vgiXyIBekOhO5SyTdH6i+u66Bdm3HrVaToqMxHe7X7Vev+6wRFcEw== X-Google-Smtp-Source: AGHT+IE4Um91Aalnsg+dgl23v4V/6CYS0o5T52fibvfVdIFzyI3393akYxxjkGeVOSgg+7KcWm+QcA== X-Received: by 2002:a05:6402:2349:b0:5d0:b87c:3eb6 with SMTP id 4fb4d7f45d1cf-5d3be7883c8mr4687314a12.10.1733742149681; Mon, 09 Dec 2024 03:02:29 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:29 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:06 +0100 Subject: [PATCH v2 01/19] arm64: dts: qcom: sm8350: Fix ADSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-1-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=8733; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=BmeLBSD7e/5702j3yO++zDTzKsDBRH4GtN6Tw8+69y4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs4xdy5GpFiACHNzRmnbB/fcpnkMcRvLKXgKY ukbCc+XNSaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOMQAKCRDBN2bmhouD 1/K4EACX3+kQRVY4kboNdL9iU0+NIlgCfEym6CKnxtvCFfefqQ9eFMmP7Gs83UAQ5HPE0THxtCG gBqubXrSaWuaH5a4tOsvLckuWfjiwBKL7kXOCq8iPCzYmv9Me4pL7YS7nTYWsd2cX0mmwjsQYTW m90ChrEqGjWhBhMkoCHMuqB3iV0LZDXo1PL6imPYptipTMkOWfIc3sEITVdy3ySb4v00EmAFjIY KjrwL0Y0TWI+5kE54nZ5GO9avcxf0xsZDarr88WhOaNofaJzNvhi7ZfHTnbQzfIqi1XviMf3OfZ bqxDSM8EY2wap/T6l30u6sMmspdzmqo7h9lFTmBZKWSVhZLcvTTxzBREKx9PfVaERkKuehBPwAp 0TMSZ4lerJ718ry/+kCbyI/EYZL9UrDq6195BiWbHbfROssV0KB+hbYQlO6bp9tsGYw4nn8X4G2 5GQW4kxH6byKHzBUeq927625XlA90+MWxQIX1Jn3VyVKfDt8gEw14zkFOFjNLadHbm9f7Iqi9K2 dpaT1I8hqPsPYOFOUCFaTyoUeczc2xpRgvvdtnNQyO67BSP2hjHZ+1O0EEMMehkOIALtTNh5gzr OYkEgkX7uVEzFZBzu/BYbVeKZCxrAmzE2aBjtQHqcXT7tAf7Zyqy+owQ4a8tGghl3nFuJTt3ypF EBUjxizvHGlPPxA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0300_0000 with length of 0x10000. 0x1730_0000, value used so far, was copied from downstream DTS, is in the middle of unused space and downstream DTS describes the PIL loader, which is a bit different interface. Assume existing value (thus downstream DTS) is not really describing the intended ADSP PAS region. Correct the base address and length, which also moves the node to different place to keep things sorted by unit address. The diff looks big, but only the unit address and "reg" property were changed. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 177fcf0aeda2 ("arm64: dts: qcom: sm8350: Add remoteprocs") Cc: Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 272 +++++++++++++++++------------------ 1 file changed, 136 insertions(+), 136 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 877905dfd861edbcd083e6691a7cfa1279164ffc..5fae676af3a3da21066d01092b6b24fbc4ae4a40 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1876,6 +1876,142 @@ tcsr: syscon@1fc0000 { reg = <0x0 0x1fc0000 0x0 0x30000>; }; + adsp: remoteproc@3000000 { + compatible = "qcom,sm8350-adsp-pas"; + reg = <0x0 0x03000000 0x0 0x10000>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", "lmx"; + + memory-region = <&pil_adsp_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + apr { + compatible = "qcom,apr-v2"; + qcom,glink-channels = "apr_audio_svc"; + qcom,domain = ; + #address-cells = <1>; + #size-cells = <0>; + + service@3 { + reg = ; + compatible = "qcom,q6core"; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + }; + + q6afe: service@4 { + compatible = "qcom,q6afe"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6afedai: dais { + compatible = "qcom,q6afe-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + }; + + q6afecc: clock-controller { + compatible = "qcom,q6afe-clocks"; + #clock-cells = <2>; + }; + }; + + q6asm: service@7 { + compatible = "qcom,q6asm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6asmdai: dais { + compatible = "qcom,q6asm-dais"; + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x1801 0x0>; + + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; + }; + }; + + q6adm: service@8 { + compatible = "qcom,q6adm"; + reg = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + + q6routing: routing { + compatible = "qcom,q6adm-routing"; + #sound-dai-cells = <0>; + }; + }; + }; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x1803 0x0>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1804 0x0>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1805 0x0>; + }; + }; + }; + }; + lpass_tlmm: pinctrl@33c0000 { compatible = "qcom,sm8350-lpass-lpi-pinctrl"; reg = <0 0x033c0000 0 0x20000>, @@ -3285,142 +3421,6 @@ apps_smmu: iommu@15000000 { dma-coherent; }; - adsp: remoteproc@17300000 { - compatible = "qcom,sm8350-adsp-pas"; - reg = <0 0x17300000 0 0x100>; - - interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - power-domains = <&rpmhpd RPMHPD_LCX>, - <&rpmhpd RPMHPD_LMX>; - power-domain-names = "lcx", "lmx"; - - memory-region = <&pil_adsp_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - status = "disabled"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - apr { - compatible = "qcom,apr-v2"; - qcom,glink-channels = "apr_audio_svc"; - qcom,domain = ; - #address-cells = <1>; - #size-cells = <0>; - - service@3 { - reg = ; - compatible = "qcom,q6core"; - qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; - }; - - q6afe: service@4 { - compatible = "qcom,q6afe"; - reg = ; - qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; - - q6afedai: dais { - compatible = "qcom,q6afe-dais"; - #address-cells = <1>; - #size-cells = <0>; - #sound-dai-cells = <1>; - }; - - q6afecc: clock-controller { - compatible = "qcom,q6afe-clocks"; - #clock-cells = <2>; - }; - }; - - q6asm: service@7 { - compatible = "qcom,q6asm"; - reg = ; - qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; - - q6asmdai: dais { - compatible = "qcom,q6asm-dais"; - #address-cells = <1>; - #size-cells = <0>; - #sound-dai-cells = <1>; - iommus = <&apps_smmu 0x1801 0x0>; - - dai@0 { - reg = <0>; - }; - - dai@1 { - reg = <1>; - }; - - dai@2 { - reg = <2>; - }; - }; - }; - - q6adm: service@8 { - compatible = "qcom,q6adm"; - reg = ; - qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; - - q6routing: routing { - compatible = "qcom,q6adm-routing"; - #sound-dai-cells = <0>; - }; - }; - }; - - fastrpc { - compatible = "qcom,fastrpc"; - qcom,glink-channels = "fastrpcglink-apps-dsp"; - label = "adsp"; - qcom,non-secure-domain; - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - iommus = <&apps_smmu 0x1803 0x0>; - }; - - compute-cb@4 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <4>; - iommus = <&apps_smmu 0x1804 0x0>; - }; - - compute-cb@5 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <5>; - iommus = <&apps_smmu 0x1805 0x0>; - }; - }; - }; - }; - intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; From patchwork Mon Dec 9 11:02:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899290 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FADA219E80 for ; Mon, 9 Dec 2024 11:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742156; cv=none; b=awjNG12X35CfttLs4JICKfRBX9XynuBgD6KyukFdEFyRD6kxjyDXJUiY5TmnPnPP+52BNoYJCFRJZqofUbHC+6UqERnQo2SY5aw4WrPy+Za6t70vaoB7lvcs2/MEpavOoBTP317B6e27De8IoF+UrMsTnRgCuWIoTdJxZ3vDb40= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742156; c=relaxed/simple; bh=eZkXlPyaruX8crpL1/AvzdOvoDUQnQQd9zI2il3C2w0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QpXOhG64RcohgSblzATEF4tXitZK0/OE7N+Pe5RwPky4qBm35oJeX4xsddqLvPgjP/nccuax1Ju77opSHe/C9Qc7H1VK37bVDr+Y7jhzxDsX3R1Pfvn3EoL8sBaXh8qCrzceoASXlwIr/fIytu7KDqU+ZY061nWgrr7bc60azZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Fmdmx7d5; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Fmdmx7d5" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5d3da226a2aso144443a12.0 for ; Mon, 09 Dec 2024 03:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742152; x=1734346952; darn=vger.kernel.org; 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=wCQZHcMvRi9iQ8s0t6z5HpqVIJgC7kyG4M3HNIWuLDA=; b=Fmdmx7d5T7kbvRbYP14s3E84Ul7bIIGxwyyNkEPeZbk5CYx6hWi30s30J0JLLk3jqa GkHk8fh8J7m5HyvU3DmbV0y+ypdU6n6MjxiDUdFLYFBnoaF+pVCxHHcBYaXcq1zq/SNN 5GXesve8zQdenVJjifQR/dsbBXb8V9XxKv4QwCeOU1m49Oc0zAFh3PVdvsYyJ+7c73Ki cuM3h6MyTL3ffoYL5zIoVrDv1PJARt8xZwkbFLK9ARkdmAKBaGmXrexju3AzmXB3dq0U EhwKB17biHQzDvH4aur/5WOEHNE795w3D/o5mWetH4CsUWqjhvhfgehEtJKrQv1/snQn amlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742152; x=1734346952; 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=wCQZHcMvRi9iQ8s0t6z5HpqVIJgC7kyG4M3HNIWuLDA=; b=GKWqCtbIbkOGtgOv7hNnwpdQsSa9CKy9CG7ZFdyY7ccphDGAoiiDsWgz0AdzTAz3ko kxuXYKzpHNLpk2lonqqlsErVjTCVkglphiwoDZ8RxLqPaln+6K/zJfbqkyzqtN7GKLLI v/EwAtEoYdINNYIKjY9VnrWYhsCNH4z28SK2bQfu30JOLch/GiwLnV5X9WyQvTfQ/edb ygNGGxLlm6uShhvghByrAhdZbMKUqwS8c7Ys6J5rNAxuE5wXQukcgRyCAJRg6iHfdbqC qIwuMWMslbFzxg+RgRD86jJVcHXEqzzOUjFCDR4gvU4+H28AqT8/M5+r38dTlKFQ+z77 V3uw== X-Gm-Message-State: AOJu0YxCtdOjJQBjQMAotzcFsgG3oj/vXHlIDXxRKG8Wgit+Ez6YfP1N thTslTywxUDC/ibg444Bs25PCnJkJM3He5c5/JQ8E3LrXUCWKW9nkSdoPUuva6s= X-Gm-Gg: ASbGncvOiufaB9HHcB4kkIccgXjKgqHSPEYT5K4R0HXZzhXpRZz1Ujtg/rFFkH6TRyq R1GWtq+5HQzrApBds82lxty0XA7yWV7NKA7/3X9mLC0CfcS9Alci5txkffaoeRxnnGWjGBmICYS 92FluqQ7JtHQqiG6qLtqZpM02RJIEN+VB8gwNLRYtjsL2nNhyJnDYQVNQhyRx14b+CFH/qJXEve bOTMcPCtWZBGOfYh67Bli4Yo7fhB2jWnKMjymKc/1b704iR6pdXkjr4EecNQgC33A== X-Google-Smtp-Source: AGHT+IHqcqZMTgJX8G2GXQ0L4+EfdZbXGqlO1MAJqaJQBz78ApHZUkQiVKXaczDuiRl0U30+EV3iMQ== X-Received: by 2002:a05:6402:5289:b0:5d3:e843:fcfd with SMTP id 4fb4d7f45d1cf-5d3e843ff81mr2601313a12.11.1733742151614; Mon, 09 Dec 2024 03:02:31 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:31 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:07 +0100 Subject: [PATCH v2 02/19] arm64: dts: qcom: sm8350: Fix CDSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-2-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=7882; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=eZkXlPyaruX8crpL1/AvzdOvoDUQnQQd9zI2il3C2w0=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs4y5Y9190qLvbza+FBbDoKW69OSnJHvkza3/ FKG3CMotQqJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOMgAKCRDBN2bmhouD 1zdKD/0Zq7zahWNKijfJmvj1Sykj+OvMlMosY5vECcb5oubsACRKXndv+R4vRUW+y4QXf+HNtF8 U6Az1Tr75/7p+OCl9PN0zzK60W9BotK4MyXNSLUB2IVteChX4dZpKVYcXgLtdQPGlPPcfQxl6Ml Z8jngKVuvtotaIrSEEUMuxxGoqN1lFoJ4/7mehxwXumzmcFtO8CTHuGLIO920om0QNH5rzd88ln PZSAWp97FM020hpCSWImB+ucI7u8gtigmM6TIAf5plnMYfHgbZtUrISjeyAvs+zVPqPquFw7xty s7WgzPSv/J7tXnRLCbXtdD7oE/g8uOqop6IqgCneE0bA26Uu10pjQq7Bv3rY9i+o4sBop+JuU+Q PR8cZG3k4Roeo/sHU70WyNxRuA+r7LvyJk/w3gSgCijASOOG4JYy9z3XcPZvFI0xAoHETUeyGKP RYBtBkoTZX3OCAYPM4oNN/f4nfP4tJ65VVxsXY9ly7QA3NGvrHTIUlchaDbDqFtB2jHPmsJMiiY EpHo0CgoF3ucsczVKQOEewpGNcvkhdq15FEysinCqhXMdV+TM12YKVoXZvVWVHj3Gk94W6oHU0m R6qpp2wvg2+h5F8dogADwzQ+yjkml1qshDszWbPXlilRxb1idS/+JDHRKoHVN+Ug8wOQJjYnzds cbKWEqbiOqq+paw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in CDSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0a30_0000 with length of 0x10000. 0x9890_0000, value used so far, was copied from downstream DTS, is in the middle of RAM/DDR space and downstream DTS describes the PIL loader, which is a bit different interface. Datasheet says that one of the main CDSP address spaces is 0x0980_0000, which is oddly similar to 0x9890_0000, but quite different. Assume existing value (thus downstream DTS) is not really describing the intended CDSP PAS region. Correct the base address and length, which also moves the node to different place to keep things sorted by unit address. The diff looks big, but only the unit address and "reg" property were changed. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 177fcf0aeda2 ("arm64: dts: qcom: sm8350: Add remoteprocs") Cc: Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 218 +++++++++++++++++------------------ 1 file changed, 109 insertions(+), 109 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 5fae676af3a3da21066d01092b6b24fbc4ae4a40..2a62405c0c9eff959abc4cee57753a8b1545c9bf 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2496,6 +2496,115 @@ compute_noc: interconnect@a0c0000 { qcom,bcm-voters = <&apps_bcm_voter>; }; + cdsp: remoteproc@a300000 { + compatible = "qcom,sm8350-cdsp-pas"; + reg = <0x0 0x0a300000 0x0 0x10000>; + + interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_cdsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_CX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "cx", "mxc"; + + interconnects = <&compute_noc MASTER_CDSP_PROC 0 &mc_virt SLAVE_EBI1 0>; + + memory-region = <&pil_cdsp_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_cdsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_CDSP + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "cdsp"; + qcom,remote-pid = <5>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "cdsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + iommus = <&apps_smmu 0x2161 0x0400>, + <&apps_smmu 0x1181 0x0420>; + }; + + compute-cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + iommus = <&apps_smmu 0x2162 0x0400>, + <&apps_smmu 0x1182 0x0420>; + }; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x2163 0x0400>, + <&apps_smmu 0x1183 0x0420>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x2164 0x0400>, + <&apps_smmu 0x1184 0x0420>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x2165 0x0400>, + <&apps_smmu 0x1185 0x0420>; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + iommus = <&apps_smmu 0x2166 0x0400>, + <&apps_smmu 0x1186 0x0420>; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + iommus = <&apps_smmu 0x2167 0x0400>, + <&apps_smmu 0x1187 0x0420>; + }; + + compute-cb@8 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <8>; + iommus = <&apps_smmu 0x2168 0x0400>, + <&apps_smmu 0x1188 0x0420>; + }; + + /* note: secure cb9 in downstream */ + }; + }; + }; + usb_1: usb@a6f8800 { compatible = "qcom,sm8350-dwc3", "qcom,dwc3"; reg = <0 0x0a6f8800 0 0x400>; @@ -3589,115 +3698,6 @@ cpufreq_hw: cpufreq@18591000 { #freq-domain-cells = <1>; #clock-cells = <1>; }; - - cdsp: remoteproc@98900000 { - compatible = "qcom,sm8350-cdsp-pas"; - reg = <0 0x98900000 0 0x1400000>; - - interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, - <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_cdsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_cdsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_cdsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - power-domains = <&rpmhpd RPMHPD_CX>, - <&rpmhpd RPMHPD_MXC>; - power-domain-names = "cx", "mxc"; - - interconnects = <&compute_noc MASTER_CDSP_PROC 0 &mc_virt SLAVE_EBI1 0>; - - memory-region = <&pil_cdsp_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_cdsp_out 0>; - qcom,smem-state-names = "stop"; - - status = "disabled"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_CDSP - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_CDSP - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "cdsp"; - qcom,remote-pid = <5>; - - fastrpc { - compatible = "qcom,fastrpc"; - qcom,glink-channels = "fastrpcglink-apps-dsp"; - label = "cdsp"; - qcom,non-secure-domain; - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@1 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <1>; - iommus = <&apps_smmu 0x2161 0x0400>, - <&apps_smmu 0x1181 0x0420>; - }; - - compute-cb@2 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <2>; - iommus = <&apps_smmu 0x2162 0x0400>, - <&apps_smmu 0x1182 0x0420>; - }; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - iommus = <&apps_smmu 0x2163 0x0400>, - <&apps_smmu 0x1183 0x0420>; - }; - - compute-cb@4 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <4>; - iommus = <&apps_smmu 0x2164 0x0400>, - <&apps_smmu 0x1184 0x0420>; - }; - - compute-cb@5 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <5>; - iommus = <&apps_smmu 0x2165 0x0400>, - <&apps_smmu 0x1185 0x0420>; - }; - - compute-cb@6 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <6>; - iommus = <&apps_smmu 0x2166 0x0400>, - <&apps_smmu 0x1186 0x0420>; - }; - - compute-cb@7 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <7>; - iommus = <&apps_smmu 0x2167 0x0400>, - <&apps_smmu 0x1187 0x0420>; - }; - - compute-cb@8 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <8>; - iommus = <&apps_smmu 0x2168 0x0400>, - <&apps_smmu 0x1188 0x0420>; - }; - - /* note: secure cb9 in downstream */ - }; - }; - }; }; thermal_zones: thermal-zones { From patchwork Mon Dec 9 11:02:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899291 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 029FB219E96 for ; Mon, 9 Dec 2024 11:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742157; cv=none; b=fXGpYxTvd3RTfYP2uIWvcTmHbi34ajoVI1czftApqI9DlwYuUby5giCEc4YYCzOE3JI2XDR+EUeBSCAw/eQ40yj2EEjJAFzt42+TukRe3kKtoRNUeaVwOrbBteUdq+KeVXCwgYiixx8CoE4+MfKCtLYnWDTHh86uVmP/Ck4TGGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742157; c=relaxed/simple; bh=PuDf73tdKDHbHnwQKtTDXx3s1+y6oHS3JD5Fye3Pvgs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mI6WZrY8T9Ub3CzmoQwwc522aeHDb+HTkUD98qsgbfRqy6HgVowgbFOZWpRufGlU7W5eiy9TP1kceoFRGGUVKtYgVJxDhd0uQkXcenPjGB18BhinEsuzZD9whC6qJTURHOn3DWHOKkFwKaYViAvsb76Ydh53z54qU6KRmfN7DBI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xz7XRAvG; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xz7XRAvG" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5d3c1f68f1bso276835a12.3 for ; Mon, 09 Dec 2024 03:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742153; x=1734346953; darn=vger.kernel.org; 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=f9RqT1kv6j4/9BLcMgXCVstovd0I53X/UQb6AnamVm8=; b=xz7XRAvGA/5fvYRtXnorV1XnI5VZiEsx0E+Ks/hSZ1+QsJEPZ3vpu8YF1tjW6a/GrA wO8HfxCNXNE1te5WZ9v4LWMqJA3UDJgQCmkPEOOovB76XOozkgl4Z5EFh7ODS5UCvlAn ywC4cMr8iH9BzV47z12gz27KqcNNXqm7y9uazl0cP5ZApIulKw9Tvg+90O6rP+okByaD RQuDO507621UHakPe8I7WW2ov+md6cYYeMDS+vOZEz2gDaqJhQV8+V2ZpzHcMwyhvphx 1DKDyShFnN8u50AreYeqOxo1VSeMRKNzazO58jzC/7OYyPaZMltcRz1aKFEfDmMTvPmF NYoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742153; x=1734346953; 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=f9RqT1kv6j4/9BLcMgXCVstovd0I53X/UQb6AnamVm8=; b=O4UQCkIRaSRzlKf7wMZURLS+OIqSgX6zCwlGkdf3DS9Sb9OEMlPcGeJGYacRj7VTIh jPFFzF3MMPGFIYb9C4JnPU4cYbN7s5h4q7J9yp8J8TglZAGSJETp0OaNmQlO5bg7GgXq VvBJjjtx+L2pBZH0JKyC1hldaaw7VeRtjCWIXoBIPZX/RBziMOXx+S1OeGgCLZXYi7Cc XKWzuOPJ2+FHcNmk2IECp5yZ0orUuEK/yaqH0nlWxzY09NPfiT9DPVoIHcPR1hAACG3A LppV84Nl2oDJU8srpUKom3+JPtEVWXIhNWzbjaDqzmesloYIjkkWVKe4Pr2bcUOpshaE s2YQ== X-Gm-Message-State: AOJu0Yyp8h/Z2s0Q6O0iQHccjv64oqchfuZXqlMzmmWRiuq8uLDzGgqr 8GSJaXYDEtzKnoQ6egUlRN5jrCY+GLCFNNs4K5RoJcz1G6xavX0VYuWSfRbI7Yc= X-Gm-Gg: ASbGncvhnnF5vi09dhLe5HIxQYHW2Q2NgSShtU8M0Qo01sJChfcrVvuUDiJgqD/ono7 DNOnRiFL6cAy8dWk5yCpi/XHEk4SvdfJtHhIiPwMpty4wV8OdRQfDbbhVDeregIf5LhfgytoeOa HmmcfnP6UQ1NsjCrWBMvo7YIvIeMDycN3zLU998qs9iavdyMuUC/3Gp/zpYmv6jhXGQcihYHXpW XaztdXw4bjs2kKnvNkptC8rpJpQOkiBskBfw3hw9FgYEveE1ukNWFWsXtkcAU+0CA== X-Google-Smtp-Source: AGHT+IGVjfe6LbUwcIZPJI79Mm7GY/0ynVUSdji+K6kOobx+/TDNPg8/46CFtUJpnBRMDCCkpudU9w== X-Received: by 2002:a05:6402:5106:b0:5cf:6635:858f with SMTP id 4fb4d7f45d1cf-5d3be6d6a3dmr4549624a12.3.1733742153340; Mon, 09 Dec 2024 03:02:33 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:32 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:08 +0100 Subject: [PATCH v2 03/19] arm64: dts: qcom: sm8350: Fix MPSS memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-3-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1271; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=PuDf73tdKDHbHnwQKtTDXx3s1+y6oHS3JD5Fye3Pvgs=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs4zx4Qf+rpIkNGcPUwo5cgEVuPjjzI+mbSx2 2SoDseo/GmJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOMwAKCRDBN2bmhouD 1xrHD/wMjG9aXTZHJMYSwawWIy96BMwUyjOBu2qm9ov4YvfD1wMk0Idmcn6hTRjGS0kpEAP74ua EQIBGXXria/KtrVQLOghr8dv/PiBq491MPv8XSmXcY5A6UyAManDl2Qk6nvDoIMh07iohp/zE44 YRC3nOYZTtdSd0UqYqjzKxmTk4CicFXYNO+aVKUnHQYM7s/5PuwKJ/vg6lbxE/I9VmV5MM5OnLD uWas6ck6s+97dSnBRYyLn8WPFiuMLcxnKnGN9IrcwXUD+Gy9qbhd61nDPlcMTS6LqZW+eOV6Oes FBVvDxRC7oltG5dGKWETxrHWkzb2+cbclPMopz8GY2Sfco9cXtaLz9sdOBqh/AYEvhGs/qb6nUi dlhVec3qE7l6sbvHHzmJU3/K4LfkDW+55pxmStQkuN5fb/IcUk4bf0FEtr/83I7ng9cUFYv+v5I CADaC+8AScZqbMCVeUO9rL12/OIs4elSUJe7vxN0DUGMWUY/xo5RnjXQNtkhBImNAU+kV7MAAEw eS7rS6INojjR3lt17m6/lr4YFURtfxXbaZLtlCVgLXr7BZCQatxkexcqlZiRlWkGCLUNE+2Gkev skO/GYHl1MIU/hpPhitBK33OEbr7y+JAMYJJao/MRZKtdpqjf1Qg0QkmAAlMXZe/z994afnhNne ksS3Uqzk9lj9OJw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in MPSS/Modem PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x4040 was copied from older DTS, but it grew since then. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 177fcf0aeda2 ("arm64: dts: qcom: sm8350: Add remoteprocs") Cc: Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 2a62405c0c9eff959abc4cee57753a8b1545c9bf..7d77dc528eb734a86be5f194b120b6d926f150c6 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -2214,7 +2214,7 @@ lpass_ag_noc: interconnect@3c40000 { mpss: remoteproc@4080000 { compatible = "qcom,sm8350-mpss-pas"; - reg = <0x0 0x04080000 0x0 0x4040>; + reg = <0x0 0x04080000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899292 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B9AF21A935 for ; Mon, 9 Dec 2024 11:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742160; cv=none; b=WdVVE2u/HBj9tc+i6KzGyr7zGMjpnUaQAiEmPpXHmCefYEsPkk1VFXhZh3VFhDnkQtG09XRa8JPuu7/1m0KGLugN6Vu5EobcVlJaBGF635AAZG5S2tAmfTk0g4nAcduXQPV781vdmnNbk9q8hPc6M8+0v+GjI0rNOCVFVQu9+SE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742160; c=relaxed/simple; bh=ojNBKn2Cn0kL/c1PWCkFJmK3q2qRhAktzyUnFGcbPSU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HLYUxG7HNMguq84DKFrou/NBvLOSGt6hRr45n/AyV1pHsMBQSjtZWaKWw01ZZPuPD7R/O5fehsdXaq3fThCR+JxEeTvQZu3hWI+ZIPeakVrL6ukMQ2otnDtNt31jDkDFb7HgKTgDGM4lchefrt2ITbzoRNsIAe2jOgB5z5xIf/s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=G+o9abM0; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G+o9abM0" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5d3c0bd1cc4so236829a12.0 for ; Mon, 09 Dec 2024 03:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742156; x=1734346956; darn=vger.kernel.org; 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=AiJezWnFLPyP/UDR+sDZkKbQNqEaekKVv8EfgzgM7q4=; b=G+o9abM0/4OXgRK2aLVOaJeHnuRHlHsIa7FGYmQ5mAQkJaC51Rt0hwavUstezbtS1C a0g7blklzP3PH9wj/66zUbn6i/4wpcYGl36PU7OvD1wr84Oj8mehb1AYgTuww+bK4KPL /4YQTFVALWfeewH8A+60O3jcLg7MFb/MwMyISXmGFkpkFjNVsgkrjJj4k+XP1LlgLor2 lrPqicGIRfMgpee9vywLp7vwTwuXEZnq3W7XMCDn3LIycRuzEv8wtjX7i/OUGiJjl7Oc SiZsI1bKwAlMw4RF7Wr7vK88mwRKJRrJVAqXdHSl00gPBXQCYPNSDwng4NqZftG8UHlE F7dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742156; x=1734346956; 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=AiJezWnFLPyP/UDR+sDZkKbQNqEaekKVv8EfgzgM7q4=; b=n5iyRDw+oWF/HfMIxOf88Zw6vNJr50KMGTdiq6m+TbSzk9U/OQR+bdYJy69aT9UkH0 3hQw67Vmn/psV+cIxR+0s34m0rRTyro88wdbNER2lVWiL6JVb98Qx5z6PC893XWvpu0X IU+OTLMkRG+z+2YH2O6Mhe1ld7OvYdpXsyD+OB31+DH62PLY54+0/7airdnNut1aNB35 3niP3kADM9qYjRa40LPqJNV25OunKR+k5P+ZzDtgMbexrmExU1CO3omMkwEMTj2qnYlK Mv12ryqV1XyFmtiaCE0V1imWWt2AZNVbwOlB5v48FhXLYvZtwUdfCiWPwKbaEKvtC0tR 2uKg== X-Gm-Message-State: AOJu0YzMe60R4AopbyueMdhshH/xdUJT20pus7wfFQateclA3dCmgO11 wctZ3/ubzYu20SplruWq1KWuFjJhe+bm0r+QBQKoJ5e/m4sbffSO+s9W778aQaI= X-Gm-Gg: ASbGnctmJ6QYDr/4udLdh7RsNgv58WMg1HctA4Ja/x9iYQS4MWJ7ffqpNdE101dUJHg i1AV+PFwNdqggWionQmKi21zjLo7MKNL8VzM5JVXbPmmxG3gym2DcRVy5JDsobyKGJFj0WZt2wf QDZCrg3RhZGfGHiko/nnzOOTGjvpA7HbgAQ418UIOKPOj6NxKKv5v9089HU2uQXwphEskMVwa4B Voa/FE9BwG/39ZG2dcI9fRXoM3YMTO1ymCWUVpeLVs1TEqQDLrTCKi7p58bGy4Xyjqf5g== X-Google-Smtp-Source: AGHT+IGKXwbCUPH3IuMuyf0snHk+QvGd4G+6BUZERDpK+riKYxJ+eGLFzrJ3iPmZVjP0/DWHQxG9Aw== X-Received: by 2002:a05:6402:40c7:b0:5d0:eb6b:1a31 with SMTP id 4fb4d7f45d1cf-5d3be6ae309mr3445049a12.5.1733742155894; Mon, 09 Dec 2024 03:02:35 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:34 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:09 +0100 Subject: [PATCH v2 04/19] arm64: dts: qcom: sm8450: Fix ADSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-4-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=7362; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=ojNBKn2Cn0kL/c1PWCkFJmK3q2qRhAktzyUnFGcbPSU=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs4zau1QfwAGKYpqrqIHNBY2ZKXAp+oLLbGFn xV2Bn6XLYiJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOMwAKCRDBN2bmhouD 1zx9D/0Xl0QeWsWUx7GCSma6eq9wWiq2xDTI5GOKaNSI5ktZDOejXE6hSLrY8MG6CuoiRB7d29N ZK7c8R2GQwyQOB6wX4HcJXLJh95UEg1VJiNHNqRZt0mCH5PiL62ve777ua5EsjpVtVomMPrNyl/ E3I342Cf7a4t5N4LOTmJzpT5Qau90aaV55JYb9jt/FPcIuifCxHViqJoWkB9R8VE0iHD14Z6jpv j+G0IXz3y73KIIRIjjr26FnYnxAQBo3JQ6mTl9tl1qdbHhN2ZOF59NvyxN3CRUov2wWzhcaVXbQ 2PgvwenfDNJ4UBMkONp09jE2b8Agpl5SJhvCVd1MEEEWtXLxr/4wIm4WicRWSMjCXWxpoWvgsL1 mvyU+hoGdr+vGJa72Tm3qZBDFXgGaBeSzhsxvxga5loinLDT/QN7Z3i/esXseua6gb+o9joxFO2 R76Aoi+JFlods+RuNmQlte1oFcm5g/g6/X0BZgKMDV1Kk25t6KzDIu3ZaAZ4BAGhiFqr+BxiZRA TSjgNvplyw9AO3OIHXYi9Ss7MQzAc3Nji7/mwfHqXbsdSNlF5bMiv3JKJVpNOB/uriX43aXFkQT jkIx+cglERVfgagsyCm1/CFQ1gEO5LZk+LYMawIjWcLVWvd6hco/Eemg2wvp0eWh+099S23CYL5 hxg51fXudYt0AJw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0300_0000 with length of 0x10000, which also matches downstream DTS. 0x3000_0000, value used so far, was in datasheet is the region of CDSP. Correct the base address and length, which also moves the node to different place to keep things sorted by unit address. The diff looks big, but only the unit address and "reg" property were changed. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 1172729576fb ("arm64: dts: qcom: sm8450: Add remoteproc enablers and instances") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 212 +++++++++++++++++------------------ 1 file changed, 106 insertions(+), 106 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 53147aa6f7e4acb102dd5dee51f0aec164b971c7..d028079c11bdc2dd2b254f7f7d85e315a86f79bc 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2496,6 +2496,112 @@ compute-cb@3 { }; }; + remoteproc_adsp: remoteproc@3000000 { + compatible = "qcom,sm8450-adsp-pas"; + reg = <0x0 0x03000000 0x0 0x10000>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", "lmx"; + + memory-region = <&adsp_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + remoteproc_adsp_glink: glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,domain = ; + qcom,intents = <512 20>; + #address-cells = <1>; + #size-cells = <0>; + + q6apm: service@1 { + compatible = "qcom,q6apm"; + reg = ; + #sound-dai-cells = <0>; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6apmdai: dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1801 0x0>; + }; + + q6apmbedai: bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; + }; + + q6prm: service@2 { + compatible = "qcom,q6prm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible = "qcom,q6prm-lpass-clocks"; + #clock-cells = <2>; + }; + }; + }; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x1803 0x0>; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1804 0x0>; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1805 0x0>; + }; + }; + }; + }; + wsa2macro: codec@31e0000 { compatible = "qcom,sm8450-lpass-wsa-macro"; reg = <0 0x031e0000 0 0x1000>; @@ -2692,112 +2798,6 @@ vamacro: codec@33f0000 { status = "disabled"; }; - remoteproc_adsp: remoteproc@30000000 { - compatible = "qcom,sm8450-adsp-pas"; - reg = <0 0x30000000 0 0x100>; - - interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - power-domains = <&rpmhpd RPMHPD_LCX>, - <&rpmhpd RPMHPD_LMX>; - power-domain-names = "lcx", "lmx"; - - memory-region = <&adsp_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - status = "disabled"; - - remoteproc_adsp_glink: glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - gpr { - compatible = "qcom,gpr"; - qcom,glink-channels = "adsp_apps"; - qcom,domain = ; - qcom,intents = <512 20>; - #address-cells = <1>; - #size-cells = <0>; - - q6apm: service@1 { - compatible = "qcom,q6apm"; - reg = ; - #sound-dai-cells = <0>; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6apmdai: dais { - compatible = "qcom,q6apm-dais"; - iommus = <&apps_smmu 0x1801 0x0>; - }; - - q6apmbedai: bedais { - compatible = "qcom,q6apm-lpass-dais"; - #sound-dai-cells = <1>; - }; - }; - - q6prm: service@2 { - compatible = "qcom,q6prm"; - reg = ; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6prmcc: clock-controller { - compatible = "qcom,q6prm-lpass-clocks"; - #clock-cells = <2>; - }; - }; - }; - - fastrpc { - compatible = "qcom,fastrpc"; - qcom,glink-channels = "fastrpcglink-apps-dsp"; - label = "adsp"; - qcom,non-secure-domain; - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - iommus = <&apps_smmu 0x1803 0x0>; - }; - - compute-cb@4 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <4>; - iommus = <&apps_smmu 0x1804 0x0>; - }; - - compute-cb@5 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <5>; - iommus = <&apps_smmu 0x1805 0x0>; - }; - }; - }; - }; - remoteproc_cdsp: remoteproc@32300000 { compatible = "qcom,sm8450-cdsp-pas"; reg = <0 0x32300000 0 0x1400000>; From patchwork Mon Dec 9 11:02:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899293 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 943FC21A95A for ; Mon, 9 Dec 2024 11:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742162; cv=none; b=rtF7ZoAPau/inP+Xw8cdz4b0x0OUrxXL11DMmefoEkI/Ig4udDqLgi+Y8nZahLhP0D6asJqY5Da7s97hiI436x2MQbCIUAXkHCrZDqRgOvztbfYmIWGdbP+XkCrkkz97IBMy4gFD0ZnvkmVIVWfubVzcSaVgitcl3/Iu2AhcoRo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742162; c=relaxed/simple; bh=XAEiKnCO1r1d3Rt38gaJyxFTDUYuD0/ITOVOdeMu+YQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VxiwIpaOPb6HlCZZ3Duii4MkxMKJrYfxdUVs1hhSLBxMbolzpUmHE225eTWZaXMzJf0ueAJ8a7dmJcwSyffddxvDGkIAiiVXkysXQT/tUsx+90P203HL7N1uwJWPUioK22aNL6QmEoE3oVUDNMGcHNFeSW4AAeikPt9sBvBB2Ew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MBj4L7Qp; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MBj4L7Qp" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5d3cfa1da14so205471a12.1 for ; Mon, 09 Dec 2024 03:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742158; x=1734346958; darn=vger.kernel.org; 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=dIBR65NQgnFdG5+Wr1oGSIxsxM3LOWc73QgneL07cmA=; b=MBj4L7QpvchthVgiH4sfMpbOXUYmRB0rRzulT5noNr0VBg+wi/y/vElQo3DMNX36j0 t+iFG/A+2mPPbUPOAFFasKeFOOU4C7Wao1UG1W2sEmTTZ/dM+I9ywONiwqiknyKtanGL Rk8BRrCMgFqQ904pAWSGvGZ6FNqBoeN54YQ97xyF/aK5es/sBNpBmL+8Ol2xdbxUkIGc oS2u2stZEEzqOuo2g0GY0HjpPzXIDhw2/dTRYXyWsMyeM0jQLF2PxCw+H0tQH0io91VY mA+9a2bYvxefqcu/JGepsmAMwhCF0/3oXSzNa3UxYMFkrDBsUaz67VC4IfWE3qbW5uYG DQtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742158; x=1734346958; 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=dIBR65NQgnFdG5+Wr1oGSIxsxM3LOWc73QgneL07cmA=; b=lrwSZIB8uwKzy9s9IrD85PTh3Yg7d4xFH7sewEMeV9/GBaS8BrABIqlYWZckUjdRL1 4GIrLJ3PcM9dNFx4/g5Pwkso8Vwtdw+rECcxGa++CjIdlaiIvilTzkGJ+pXChVBMCmg2 Xl+DLRf8dz8Fe4aE1P6sVwZEMmaHSxC2Wf9+zFq2GMiNUPj1F98di0eo7Ihrn8F8q40z W45AmpWoYXHhGSZIAflWj+qPDs9Kk5veINPR701cpXrX9IAejGQTmN0JqVKTMEZENHFU A3JeDOJ6mJZ63O0ChwVvoMIFF1qOjre1wl0fx+ljqGcnlDpVWzthsVycnV1HmUPjKRj8 XTWQ== X-Gm-Message-State: AOJu0YzlGyFKuOAEIULzPXcM3tRuKDkaNcaXTpsYQ1giHKHxDpBJf7nq QqttuJ+xd7rzW0CPGdh0TAxu0e3/IPzO6wI8K3nyTUxs4/GLQP7H6mC3rQemmUM= X-Gm-Gg: ASbGncuKCHbIoAhJ7tqKFsOV4vEeLGSvi0BGAlwsJYCsFsFVdku/H95x+NNyyw8HMLe sSBSAFMzD/zygx8gWOUmZUNQ3KslBS405jRYvy0xzcNtUnNbB1ZVMqZGwvD+dXb0J4QD6Tdn3C8 O0/aUilUH6jJ64UG8mkuKa5Jee5hPHTDNV/48Mfi3UQiNKHXY+9vse8xoZWSAZWqPOW1IR0tUDD HCEdlQmzj7Lkn+21hdY0xV7Oi1KSbFdmp9uHwFKN+yVDeuAfPKpHBRfPhJCY4neCA== X-Google-Smtp-Source: AGHT+IHAdSvGUMJ6WzNylQo7YE1SQHxO9I1C8GmPvQQClOmUWgSyK2GKzRFMICqjXdmANW1pTx5cVQ== X-Received: by 2002:a05:6402:51cb:b0:5d2:727d:dc04 with SMTP id 4fb4d7f45d1cf-5d3be79f1bdmr4493603a12.8.1733742157853; Mon, 09 Dec 2024 03:02:37 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:37 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:10 +0100 Subject: [PATCH v2 05/19] arm64: dts: qcom: sm8450: Fix CDSP memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-5-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1353; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=XAEiKnCO1r1d3Rt38gaJyxFTDUYuD0/ITOVOdeMu+YQ=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs40pheQLD7ikDweDTuPirbb9rI+zxFhT77oG U+0nQQYy5mJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bONAAKCRDBN2bmhouD 1+UHEACJoZZJ8e2ORkVLjDW2jP7bDhCV3z4+8ldDPOn6oc15bIK9NG/V9XqCN30rPpgtGxeq6mJ B0jQYDj2HgSV29a/9jhqumoB40EDYMsn/NABLTOLcgaFttSKRozpK8rjXI8qKMSNUDrvN65gyA8 x+8d7XB6dNmfqOdRAnLcN1cxS1HCm42Q32GLi79KVIWulg7mR1KrF0myPO8j1eUTBV8iST1WgEq o6fqW1/7IU3lthdWnOWQP3f9TrIaIDTIW0eQarDajXxbzpxo+wgr9fL1go3BlplS/JFWgMnT0lh +t4KCZdzSlX7C2nWZokQNDDc5OCa7KVYb6OxgZ/LIdNOb4cUMepEP7Y3DB3H4MI6CovyWEHYG9s iQ259EAin877F66dm+9lSPvZP47MXrCoHIdRjfnhz2+lvLQrNb+EA1Waq4UY9BPCqyNlJSDZtYi QuKWw0rGtTmEhXpMFaPeYosEnerCEZ6E1W9YOBg6Z0dsUsEzCKzvMjLnJ9XR7VOaxKf6ya6Wu4A SQnJPFmccwMPAjRY5sqzby77HfZvsy/vIkyv+/jlHK0aKFC0VsopHRvTAWf55njp3RDgDbBvXZL 5Fh8EmPX/9Z2u4d8X7lkG1fqIqskhomKWkLwVn73GdsZPa5BiwA4IFT8zhKMs5QMUWKvWBmBm4L ne78++J5LtiUx+g== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in CDSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x1400000 was copied from older DTS, but it does not look accurate at all. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 1172729576fb ("arm64: dts: qcom: sm8450: Add remoteproc enablers and instances") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index d028079c11bdc2dd2b254f7f7d85e315a86f79bc..7a3bf847b0b9eae2094b0a8f48f6900a31b28ae4 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2800,7 +2800,7 @@ vamacro: codec@33f0000 { remoteproc_cdsp: remoteproc@32300000 { compatible = "qcom,sm8450-cdsp-pas"; - reg = <0 0x32300000 0 0x1400000>; + reg = <0 0x32300000 0 0x10000>; interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899294 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C782D21B8E2 for ; Mon, 9 Dec 2024 11:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742165; cv=none; b=oJYghFxe8mAmjwIaWlW3AmolLFnHOxEaYQll6FWqFWCRbec83kYKN5uWMFnY2Di6KKcIZLTWiL7wx4Fc1SlqcNQS2Gyk5ckwY/LVBxUfANPzEbczkel/4ZvvUJ9S7w2FH7Ec9JagM1U+k6PT+QBYm0rRVzqnDHIu7sHbA3wYXwI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742165; c=relaxed/simple; bh=yEPqHjmIbUmITf1O49UDWhwRUCdSrmaIhPmoTG307TM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sDpPElQFEy6SIPRc0kcwvmG7VvawFrJ/fkb19EsQJL6XlOxXY18BXKxlXUdT+oYb+8Bcro8f24IvqE8khmmqym0TBY8mPq1tBIM9cbqoMuKMGOdVrPwl72NSw5JPJ6oXwIya93t4FWeA1W85zHfghLNeE489F9XW/ZHTfkjpojE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xjDfGveP; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xjDfGveP" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-aa551d5dd72so76828266b.3 for ; Mon, 09 Dec 2024 03:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742161; x=1734346961; darn=vger.kernel.org; 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=GJx0NfcTqStUzuYKIn4gg25GLXMxBa36UekQophjNMI=; b=xjDfGvePvwd5zKC/IxTNL6a4n856GA84yrGaeX/UQAVkz8vvPC2Ca4qxgm4MFS6fra TMCMXEft1UnYT/oQ2rgXoSQx2iJt/2bFk/+lE1EmtGqnKJJSN+D5wYR/oGRTfLbBw4cm 8AXm1fkvYvy2IeRQfkA7lbL+J6jtCtCELaxsvGByIufW5DFqxvGtLA+ZTA7cQJRaZ/y8 JIzA9NwJJQlKQ4lBxGvv2WJX6phdO0pOPJYkdhk6kPEkhFHPprDuif2yumx/63pd4lIR aJbsOqvnNCKTA5eLg017V9/jT/L8IOaHWu9Lg1/WPmyXkLRobDmllTcEZRYiCp7MYPId It4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742161; x=1734346961; 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=GJx0NfcTqStUzuYKIn4gg25GLXMxBa36UekQophjNMI=; b=N3QvdGQpJEHhy5SZpaF58Lwn+YfwZAJIcxGWy+v+sRXT6HXeXA35JFhlTrPMLWee0L PUYQmtPGF9zFyiyqzdbita6Wj6451eSLWiVsEvHnOMi5I0/4dF9dYSL06tnlfClbmct0 pWBtlSq1yIFoDMmzlWxADnM1m3RMC0wqMf8JC98rCiO2kwxoinXlUcUDUs3U1zTL7tWT NwuH2nHQVhVqOcy0kAoPZnGYlkyYz001h88IpRLC6nHX6+B9d6EQuvRMH3E1+F61taJr F58uNVznDkn9wiz0ev7P7EcYP+hkMFhEuhtsnmoHhYkNP61st2qduNVWXgJxt6x+rQc1 5tUQ== X-Gm-Message-State: AOJu0YwlA049jXhubFu7L38sboPcf78VzIaIdt1uBf1nm76M5X6E5v7y PdTkqGHDN8e/IbRGJZ0EM87hZs+k3Zs256TRmy4UG/1/Mvf8Htq4Mtd96kBguNY= X-Gm-Gg: ASbGncvHJ0X3sWFpgFJEBTvm9WUaIieadBdvQsf/3tjQrrjqZr9NNXfXqzKW5rOFxnR IaNML1MXbTIzdEvulOVbtrDaZWM8Fo9gQ/TjlEDgIviiCfMiODKYbVm0C8QjI75E/OfGKVa+e6A Djg1OfnuCbZMB0Wi0OIiW+JDg95FuWYqg2LM6CRG8p+1q80cZ6zHyMJz0QnhaRRXkhDskh02bcl CYy5hzxKgND1ivldwuQ20NWhfIshf+I2+2k0EmyY6VNqfImTWTCwUd9TAUdVRJ1vQ== X-Google-Smtp-Source: AGHT+IFhhfRVDg1CGXum8gpQ0cgkjK1GmXgCh7/JnuDKniWLinqdsYk6z0kqv+PmHrmlqgraEjxaRQ== X-Received: by 2002:a17:907:724f:b0:a9e:c430:713d with SMTP id a640c23a62f3a-aa639bfa414mr500502966b.0.1733742159564; Mon, 09 Dec 2024 03:02:39 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:39 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:11 +0100 Subject: [PATCH v2 06/19] arm64: dts: qcom: sm8450: Fix MPSS memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-6-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1337; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=yEPqHjmIbUmITf1O49UDWhwRUCdSrmaIhPmoTG307TM=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs41jELXY2sQtTLqRKxN0JKaSzDMSf7Icbj5A Iz/LmrIJPOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bONQAKCRDBN2bmhouD 1/q5D/4plWc/iXSk6IL+Wlc7s0c1MGWGF3hW5jR0WssTIe8BEPxS11XcjNKwS4YVXHCY2XoAC3A dZDNvZbkvVDQ9DI+K4vbnNuDj9u+lcxOJYqE/JaPokxlA9ykzDWG5SJAVzbLcHCxJncr0HyWrBp 5sqyv8HLXMgWwahqQp1kTHlr1w6pSt4biMwpZlELkR4EMemTSqDyKmn1RwH+I9oz2UpvgqMMLyc b9byCVPZKNYD2YwGdemVt6QiQoTr8ymDHQqJYAMjeePKKDRPascMZHD6B5Vysk+dtIGzk4+mu4A AYR+C3qJhGOxlt0QIMf34GLVSGAE68V/H7IgU1IcDPHtvBAK9bj8hhRH7G5mcRDmoUIAAmeY4rn QP2A12QCucrPHStJMS0UKZK+Mu1kxtS/6g6e+5TONDwolBO8vPaXDQDbYPg38k9N8moazr0FPcv oBUTtQ6JwZNPv4G2QWNvQHuB7Ah+x7/tLfG6YC3CXQw5IF0c+/7BWLiSJdVyWYHHomGSBP9mwW/ LDNiUDii9OT3u1eO6Tokt7iXnEHL2WxvySoO27PjXut78ZeLyo/27A6Epg0CDDwEBaMVeicAheN GkbB62BC94zLM6POivHfYg2DIb+zCWweOVzLKpVbalkjZrKn7j0l+j7D0xFuPu+8yNplS9aS7Ou cOvTgf3KJ6naJ/w== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in MPSS/Modem PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x4040 was copied from older DTS, but it grew since then. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 1172729576fb ("arm64: dts: qcom: sm8450: Add remoteproc enablers and instances") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 7a3bf847b0b9eae2094b0a8f48f6900a31b28ae4..6df110f3ec21dd8efe0bf5e93621b2cabb77fd17 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -2907,7 +2907,7 @@ compute-cb@8 { remoteproc_mpss: remoteproc@4080000 { compatible = "qcom,sm8450-mpss-pas"; - reg = <0x0 0x04080000 0x0 0x4040>; + reg = <0x0 0x04080000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899295 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3B8C21B1BD for ; Mon, 9 Dec 2024 11:02:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742165; cv=none; b=rj70LDii0gQO7D3i0mGOCoRJ5QcPjN2PW+rdcgSA1V7IXbjtUgxLZtAk3L0B+deOE+DoK/KZjnT56eongwjSNY+4aYUOPwyveiJBLhkzev4SuX9/2o4WSMWSUWclmTr5r2gUeaR9zQhxv1qI/QqXXjQ5b4UAKjgrxYF/tHPPxSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742165; c=relaxed/simple; bh=vrwP+h6zpIhOuCkjeo3qhBybMESM51e5HW0nDc1kJiY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZKFcKnrj1x0W5bWwlg0rHijcCutT9dIt4pAiTotJK9Ep0LYBO4fsL45+ZFanaOWrHnMTAj6oqaDfqY6/1Lz/XZbKGggrQw+KMCyWzoFeIi89MI3IcjJK4mDyDTTazNHWKq8qNJjoFgvnwwEQJkP0kOejN50beaZu+2KS67n4YiE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=clkyOoO1; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="clkyOoO1" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5d3c1f68ef1so492922a12.1 for ; Mon, 09 Dec 2024 03:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742161; x=1734346961; darn=vger.kernel.org; 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=ylbfkDketc8h5XC3dggtd3WAotQ14SQ+WCMxgV3LPvw=; b=clkyOoO17qW2OHblEkMyzfzcbo3p6mReDvAKeeRWfa6ErPTOq91j8oo46pxNFKnryb oGBEVQ0bywrYWkF2yWTLje8Ag7rryMqXkLrtGE1EM0+pf8zWzlbuYq2WxkfFFkDwd491 ZR+1SPE71jkabhKwyPvjJjKJ0UWtaA9VQ+jZ/gLTAj/pJraKRbfJf3pXTYusCwv1U+HA U6oYhV9c+m5onu+WxE1ijVBv3U3APnq1u3OqLAC44LxSgfGKxbuEavJx+6Q/pFzvdwN3 DlaGlSraigTSt0h89J/8KqVgm5fhcTSaWTX84RwxrI4jvO8OTtMr9MhMDGo4oKPXz9QT 7UNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742161; x=1734346961; 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=ylbfkDketc8h5XC3dggtd3WAotQ14SQ+WCMxgV3LPvw=; b=h5IoD45pD/bYLCmf83E0bOwesHELpMnGxgrZb9UNEueixNSOUk9E/LrG/mWPdQb0nA J++C5lrBnN3dsvMWPsDun2mC3iJKAzK5nn/kttCkct1QBaM3NyecPK3h45dQsNGtM8Nb MNLMWxYhdY7IFnnkRcQ84tOuI8dnWB02lBRClPiLfDu4zuRq+qK4AdmyiSiLc0qA1J0x GBDsWjVROE7rRi0qx4dGKRRt9JFDDXYwEFARgNIPPjLehw5iXKenuHKHxjbKuM3UBDHL wxEbIhlveNudeu/LoFZWHN6t+ukV3uDjgpT2o2elY5dhPfIXLsdCmbSbaNXdwp+w7A92 XrNw== X-Gm-Message-State: AOJu0YzPq/P/QdHbNvT6sqqcpg4d6JPKYDljChx/2YfZm0+m0Bb2OUvg PbxFaRjnoRhDCEiw3mZ0EuIf5rjAycHrrbGBc1xo7VN0j0NV4T+8rq5CJRno7G8= X-Gm-Gg: ASbGncs9XNbiSTm4xYgqWLQNYm3bkNtFXr//q13FtJuvpCIQTbyjrEyhwhahs7iVGo1 H7qTpkuazT+VHnQblB2sJ8b1BXGiN4XuxzLBpxXKpYSzBlVbfpu7jY/DH4AqiZvwtrvvEUuUzQm PgFKYlc9REjt33YDQp4lLnnz5M76vcZQePcCPR4gsFx0QN2U/2N1FkXTcGQ+CJmqbPOChO08bDy UmNyda9VFE2AyVUctkyB++zFQ8/LAW2Npr1xMMu1T3uL7oNwU+v5sfrAB+WuRJVOw== X-Google-Smtp-Source: AGHT+IF2mcNXKaw/FZzi7gg0/uWlXrIwcL0K9xSH7PrjhEKX0XxZycwI13k/NkXr2kaKHJNglr+2gg== X-Received: by 2002:a05:6402:3224:b0:5d3:e79b:3b4f with SMTP id 4fb4d7f45d1cf-5d3e79b3fe6mr2481141a12.8.1733742161118; Mon, 09 Dec 2024 03:02:41 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:40 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:12 +0100 Subject: [PATCH v2 07/19] arm64: dts: qcom: sm8550: Fix ADSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-7-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=8927; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=vrwP+h6zpIhOuCkjeo3qhBybMESM51e5HW0nDc1kJiY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs423CFVOKApA3wu78lFPDWKAuT8mwgni+MHA jSNnFRT11+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bONgAKCRDBN2bmhouD 121wD/91jTaAE3KeZhGDkg3p7Z/FV2Tcz5LUVzb6okEaB2aD3CHNNSQC8rCXwLcl/992hVNFNfh CogA2Ck77F4Cp+zi7wJSmAR5dJgWNCG2Ln2q3R3A20lkWFH9VbCp9SDe9ppeFemUcrfnU1YzDZ3 OauxMSA5daMpLVn1IiVGGfg2FzL3yX58c3oSMAOZjbEkt6E+e2DsDt2WXWG1FHJ/5Mo9fh254Od fzGqIvrv5oQ1lEvbCg4DmJ35O0ePCcUchxYuezqY1Ra/EdTwN0P0ZlMOLXVYiZuJ3OIsyHJ/aD5 6DVlykcOZzS0SxdyWuTDWOH6dF8M/joYODmiHNaj8MbNlixlqgnaHan+7ZxXsl8G73cLPbekW2y b+X5rUaycE0FDnfDTkv/dUPrHVPgD2o4PuIUeDo12UqktqdbPMBdnquyqKWwoR87aU9H0znTAPS 3BHcUxG5vd2xOs4VbtsO+CzWLqmNjYlYVJt+Rl3INc1sOks0XxQGHSNfyaW0HtBBxI2t8k3t/Kc EwyISSOf6n7rU+KybpzcLQL1tg/oz3hoDE9Ir5IwJ0aNF5tiWjMwspSz48a/fT0RH3DZv3uK8PX L3WZs+02HGkqIkHyKmtMkIxNwPlfRxIO0b/Iz2qOF2VzWkE4+54gAjnRbi6IacCDJ5X383VRCbi d/J8OU5jg9nswlw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0680_0000 with length of 0x10000. 0x3000_0000, value used so far, is the main region of CDSP. Downstream DTS uses 0x0300_0000, which is oddly similar to 0x3000_0000, yet quite different and points to unused area. Correct the base address and length, which also moves the node to different place to keep things sorted by unit address. The diff looks big, but only the unit address and "reg" property were changed. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: d0c061e366ed ("arm64: dts: qcom: sm8550: add adsp, cdsp & mdss nodes") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 262 +++++++++++++++++------------------ 1 file changed, 131 insertions(+), 131 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index e7774d32fb6d2288748ecec00bf525b2b3c40fbb..f454015c5b90c7d792c01bf85256812857d79c64 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2354,6 +2354,137 @@ IPCC_MPROC_SIGNAL_GLINK_QMP }; }; + remoteproc_adsp: remoteproc@6800000 { + compatible = "qcom,sm8550-adsp-pas"; + reg = <0x0 0x06800000 0x0 0x10000>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", "lmx"; + + interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC 0 &mc_virt SLAVE_EBI1 0>; + + memory-region = <&adspslpi_mem>, <&q6_adsp_dtb_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + remoteproc_adsp_glink: glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x1003 0x80>, + <&apps_smmu 0x1063 0x0>; + dma-coherent; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1004 0x80>, + <&apps_smmu 0x1064 0x0>; + dma-coherent; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1005 0x80>, + <&apps_smmu 0x1065 0x0>; + dma-coherent; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + iommus = <&apps_smmu 0x1006 0x80>, + <&apps_smmu 0x1066 0x0>; + dma-coherent; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + iommus = <&apps_smmu 0x1007 0x80>, + <&apps_smmu 0x1067 0x0>; + dma-coherent; + }; + }; + + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,domain = ; + qcom,intents = <512 20>; + #address-cells = <1>; + #size-cells = <0>; + + q6apm: service@1 { + compatible = "qcom,q6apm"; + reg = ; + #sound-dai-cells = <0>; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6apmdai: dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1001 0x80>, + <&apps_smmu 0x1061 0x0>; + }; + + q6apmbedai: bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; + }; + + q6prm: service@2 { + compatible = "qcom,q6prm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible = "qcom,q6prm-lpass-clocks"; + #clock-cells = <2>; + }; + }; + }; + }; + }; + lpass_wsa2macro: codec@6aa0000 { compatible = "qcom,sm8550-lpass-wsa-macro"; reg = <0 0x06aa0000 0 0x1000>; @@ -4576,137 +4707,6 @@ system-cache-controller@25000000 { interrupts = ; }; - remoteproc_adsp: remoteproc@30000000 { - compatible = "qcom,sm8550-adsp-pas"; - reg = <0x0 0x30000000 0x0 0x100>; - - interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", "fatal", "ready", - "handover", "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - power-domains = <&rpmhpd RPMHPD_LCX>, - <&rpmhpd RPMHPD_LMX>; - power-domain-names = "lcx", "lmx"; - - interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC 0 &mc_virt SLAVE_EBI1 0>; - - memory-region = <&adspslpi_mem>, <&q6_adsp_dtb_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - status = "disabled"; - - remoteproc_adsp_glink: glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - fastrpc { - compatible = "qcom,fastrpc"; - qcom,glink-channels = "fastrpcglink-apps-dsp"; - label = "adsp"; - qcom,non-secure-domain; - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - iommus = <&apps_smmu 0x1003 0x80>, - <&apps_smmu 0x1063 0x0>; - dma-coherent; - }; - - compute-cb@4 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <4>; - iommus = <&apps_smmu 0x1004 0x80>, - <&apps_smmu 0x1064 0x0>; - dma-coherent; - }; - - compute-cb@5 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <5>; - iommus = <&apps_smmu 0x1005 0x80>, - <&apps_smmu 0x1065 0x0>; - dma-coherent; - }; - - compute-cb@6 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <6>; - iommus = <&apps_smmu 0x1006 0x80>, - <&apps_smmu 0x1066 0x0>; - dma-coherent; - }; - - compute-cb@7 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <7>; - iommus = <&apps_smmu 0x1007 0x80>, - <&apps_smmu 0x1067 0x0>; - dma-coherent; - }; - }; - - gpr { - compatible = "qcom,gpr"; - qcom,glink-channels = "adsp_apps"; - qcom,domain = ; - qcom,intents = <512 20>; - #address-cells = <1>; - #size-cells = <0>; - - q6apm: service@1 { - compatible = "qcom,q6apm"; - reg = ; - #sound-dai-cells = <0>; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6apmdai: dais { - compatible = "qcom,q6apm-dais"; - iommus = <&apps_smmu 0x1001 0x80>, - <&apps_smmu 0x1061 0x0>; - }; - - q6apmbedai: bedais { - compatible = "qcom,q6apm-lpass-dais"; - #sound-dai-cells = <1>; - }; - }; - - q6prm: service@2 { - compatible = "qcom,q6prm"; - reg = ; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6prmcc: clock-controller { - compatible = "qcom,q6prm-lpass-clocks"; - #clock-cells = <2>; - }; - }; - }; - }; - }; - nsp_noc: interconnect@320c0000 { compatible = "qcom,sm8550-nsp-noc"; reg = <0 0x320c0000 0 0xe080>; From patchwork Mon Dec 9 11:02:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899296 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C45A221B8FA for ; Mon, 9 Dec 2024 11:02:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742167; cv=none; b=u/daXZQUokiBYAFSAziSwHyCby746+Gi6arAFigncg4pO9brkcuTcChPFNCt04Ows1MwH6dGHcHvbRs7803E7AJw6j1WMjd4vU+qexfIz7R1JDjV10vRXD4za3x6aFUMOHJ+/w7om/YMqfLNp1igEbaUjYkfQ/+n9QLRD1Vme+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742167; c=relaxed/simple; bh=Grc563omxN4A8+JWY3Ft7oNDXIMFMPfoHnQ4ss/HgL8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SMPvMgQgwCaj9QXYcH/cbg4fkdTA14RoG7gTkf+72vyL30ajKiJ4pJnI8skAITQjXaobFxPggFWp/BNpBqYLoxWtVQr2RHj/6t9/yH4IsyC5ufZuHXMDPbRvV5LWct8sGDse7X/KmWufvfBKtSmsGAVxtqtnPSuFpIfC0e61c0w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MJxEyyLi; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MJxEyyLi" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa551d5dd72so76829066b.3 for ; Mon, 09 Dec 2024 03:02:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742163; x=1734346963; darn=vger.kernel.org; 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=97qXLU13jn5QwDEN+dIGTdS1uzbvFCZJW4MAhmLfpaE=; b=MJxEyyLi/Dl/6cras1V+iqW8emXcGcTubnpOujP2Ko4TbUStKI4heE1EPXQL89tnmb hmSz+tB1fRJ4RQ2YrSiBmbyilFuoHIkkTBvsALlzXZBFaapn7VHbT25fhWsRVhHJ3RUD qH+kJhPrAUgUmXnHacKSz6nXChI7UmIKNtFawIGvNU2bWDTpPgQP3vDmm0q0hFmPQCjc FoSmnv+awAh0j/gXUS2Ezlwr8RhS4PLkb7cn2d5jdjk17rhdYDjRD7OIIjU1LpfCxFzv GLzvWdfEQWOWrlzhA/U7iWCZGsW6ChiaRqSvxbkfKuRilfPBT0MkN0ZU7bYjYF55T23o GpjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742163; x=1734346963; 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=97qXLU13jn5QwDEN+dIGTdS1uzbvFCZJW4MAhmLfpaE=; b=Iu3vPArwHT/3LotFkmIRpFafz5auOiE7XmB115UsiT61lsf7zOxOtZdF7i+GvRfmOc 0w5/cQdUFuz8r4lx82ZuCMijQCTKk/oKDZEu23s2jQ1zM+EfB9ffbwSFrvBZ5kUGYsi6 IP0E0F16AaaPkddifSRt9NVjCajQ5Sznu0yCqgMnyoFYRJWfWpF9OL+gw/z6VmxST2G6 3RJXbBSLsmYxA01bLh59d8klvoRnZD+0zuj+HP2/QKxQk4M3SPBhJN4EfWi3iwNAwhfx 9hjGjQFstJvn1JTI7tDy2Ky7aK7Kal3Jh/DTCqdO9LmXE0ifjwdbNuwhIsWHflYn0P0I Jdtw== X-Gm-Message-State: AOJu0YxOvE2EvMb2anAPzZ+tQjJamgi5dVWevrqUZvhqiL/xC74RzKpy S0oJXamrqKVmyn56vRt4zvQGj483OsNTFAxvzN9bKviTCdk78AyVqqDT7HRkZa8= X-Gm-Gg: ASbGnctzuGjpIWYGScsDN5xsoUVicuIM47PSxVcfOAZDBCP6Fh0E59O2yzOGs+nRmnx haR/VWRuNr3g+LUUvEZVrjCODobYWBwA6s0vfUONPG0SULWksqz1MMCvlGtjPWuE0rEGCst3z/O /eBOzbrC+ZrixSJgJB8wuiNGXQ+Vwjc2hulpjRXtJHb4sRtOOPVunPtF2QejYT9w6jISvsHyJSQ H4m4oVp6Yg2PYdBZtAu6+l5wN+N/bT9r8eJfz/cMuxMc7vG7rXMriCThJLFH+Fxbg== X-Google-Smtp-Source: AGHT+IGprZDNs6jnXCt81jwR6++BFFvZCNI/GnnhJ3LxeLCsf+zIa0QuJpfJ3g1U5aHDkbnQqxLJ/A== X-Received: by 2002:a05:6402:51cb:b0:5d3:ba42:e9e1 with SMTP id 4fb4d7f45d1cf-5d3be74c1c9mr4549638a12.6.1733742163030; Mon, 09 Dec 2024 03:02:43 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:42 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:13 +0100 Subject: [PATCH v2 08/19] arm64: dts: qcom: sm8550: Fix CDSP memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-8-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1359; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=Grc563omxN4A8+JWY3Ft7oNDXIMFMPfoHnQ4ss/HgL8=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs43NCAEUcaxQ1YCd1ShrnACwFUmoJUa3LsG0 Sy/6/OblsWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bONwAKCRDBN2bmhouD 1/DdD/9VkHwO33jdyv/F5flNyTpV1gN9I/1JtBRk4T2k7D0TSrIs2UPM+qtD+15C7RY5YM8vKhV 4sr07NEwjCcq5nrjjtXDrrfhsubqtsyRrFEEBIgt9VUKKSmPK2RAlsWpC4czc1lYeNk44zt3gDo Tak9QPPZE0Et9XNrp43OVpy3OgFUyzHS437ppVbaEfjQ7HdfUiUHKV+rzagOW4lJpJXhUKaSXCu Y5Bp/heWBsWiR2bWChjuKOOIY+l8ySVnrNnXqDYzT9De6xyoyeZtnQy/Gnl+kX1OiAvC733+91U rgzseq2ugvhFd0dM7hHFRy+E3aouyaUaiowCWL5QTP6dIIbzqlnrq/6QcYqfEzOOKsieCAc3A7i Is5WqNmwj2DsbmR+CR/0zBAEnljN55iJf+orWhwYaUjl3ccBqZiRYIbDNElnX2eaiIOQ5HEuFU+ 2xMtfkBBfvGkYXko6c8jk57kODKGUhz3s5nZTaZhS4YrtVRKN0RpJAW0n8PxBN9zxj0KbSf1uZG 7/UnyIqyFWcsH8WIj99Oj0jiw+HNI6BCmW3UXy6l+jVlAuS3UtjA0DsagHnUwznhS/cGY7EOY9J KjDIttSSrbKnekU3yssxSWo3Ro5o3iKqZ33aiYev1HVtuGJKbYWPrEUakawwe62A7VPUyPFQe4O Wmmh6xOSZjabAyg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in CDSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x1400000 was copied from older DTS, but it does not look accurate at all. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: d0c061e366ed ("arm64: dts: qcom: sm8550: add adsp, cdsp & mdss nodes") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index f454015c5b90c7d792c01bf85256812857d79c64..541b88eb5f5300ef9e20220305ff638db9b2e46b 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -4716,7 +4716,7 @@ nsp_noc: interconnect@320c0000 { remoteproc_cdsp: remoteproc@32300000 { compatible = "qcom,sm8550-cdsp-pas"; - reg = <0x0 0x32300000 0x0 0x1400000>; + reg = <0x0 0x32300000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899297 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABF9821CFE9 for ; Mon, 9 Dec 2024 11:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742169; cv=none; b=Wv1wIJrFvv1fF26IMH9FD9cqwiNDQbvC9baIB/WxxU+FU2ie2a8aNWzLa4VkxCQAncmHwD1JQkjM8F/5BBZkrubhkgvPxdir6LDNXAUmPKHOwaKgmCu2/iRIhP/HbZZHVnG39LS9IIplIVc+O8le8K4o6qwmic38teBLj1K6bvU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742169; c=relaxed/simple; bh=ZnVV35Ysk2q6WdcSOD3vQho9WYZzqbjyCRsxVVNYQ0M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NGurP8JfYvwlgTENtvrmjoJ1geyBtnLy9jM6BOjuSX92ohU54AwHeO5itcMCJySITkeiaW0WPKYUHG8pFOwkTduIND84u2CFFGRK0rmG/RoKLn02OhKaXfferWVG3S5K7iUlJAQ8zcpivY1D+4KsWkr0vwNDltxB1GG1ue7YY6A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LfjtlZSq; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LfjtlZSq" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5d3d69e5b63so237602a12.1 for ; Mon, 09 Dec 2024 03:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742165; x=1734346965; darn=vger.kernel.org; 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=OQMcevWOxu50/RdSzVyc8fIM+ZHd3YW7Px4om1Us8a8=; b=LfjtlZSqPCzyWsfpzvOv9SyUyXXL9ggeKuqJ8wfVRUA30wk+fMf68MGjNmLxvKRFtg wX2gpX1wRx2cCFf4fTOUgQ+gIptHgQQhgP9z0qNndsGGTvWNTwKOnkxkNvjMRawvzl+l BvOVbJLhYJedJbsUZnCKP24BBKfKR2FUQTT/SZCIgHU6Og8uTP8tF9p2/4QE3V/QOUqo qU59oRT/G0Ys8A+5MrfZDEmu4QaEjzO6J19TqTjloMwGdklme92Un2jq+W/Sxfl7Oswy 8jImtFO4mbAI6APxaExRqT6CBM/Uhir2xRRf2WGhJQfmtbRXEREGBwEiHQynuuf8ZL4S nRrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742165; x=1734346965; 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=OQMcevWOxu50/RdSzVyc8fIM+ZHd3YW7Px4om1Us8a8=; b=aya4Fr9F6jmwZJou9aZK3LSWN3Q6uxvw7gZwjNpD2/1o0MGucVQ0Ranuv2xa3njlYs uYz5dXSAalTgOtNQcZzxPbweF8HzQfxuEOa35xf+wF2N19KzlNkB1vYQ2Uvsoy6yrn1x wI+N29VkxrRr0UIcBab/C8e/sQrZIHDa4YkIgSHr8rbM8AFls0qNw5pdwSJdG7ycg7ny KXScNmWhVb1mcx0CepamiDv9CYXpbRSYK+092/86/jh7Hk27oOwU4XPxgfZqmZqlZ3fy RN8s4j45e3ShnXbEj7E1uECAG79z80Y//gW7byAKy25IKUnNlhAXV8nB4oTxNKNaHn/A bB9g== X-Gm-Message-State: AOJu0YynD7jfO2iXXIbFHCGEeNcRZlJ0we3bfbYNaxOYmw5dEdIhGBps pIhf6uBa6lc5Vq7VY50iBqzlvqiu6nKwSqdsoUyNxrOWrBoxVN3ueJ2UnC3c9P4= X-Gm-Gg: ASbGncs78vGDYwQpI9vKfNQ70YFebWhMRAk1PVJsISzVmQCyQBEfu+7v6ozJ9Tzieh2 zwgXgn6AEsdS5NxHZiJTCA4hu4aN0oTXhF+sFKCT05lJHNdYNlMV5O3R26lpGuzt7jeKQGOVkKt immU9UVTo0QNyz/Byeyf1EcSfctjSVg/jD6tkeTxqtm05iI2jevrOKIsCh/Svr9N9YHDmmQ4nnx 1Rv/NXAAk+Yj31Dfvc87X8BO6GG0tm1UFibRrbxg1KUzNnTH62IIZfnj7Y/XH/nQg== X-Google-Smtp-Source: AGHT+IFzCl8SKl1Lq4Uhq4Ox9VnzgZ1G0ah8E8zajoftd/Cw3MeQ/a6WmzekBUfNm80ihhxNwOtHBA== X-Received: by 2002:a05:6402:2115:b0:5d0:214b:96b4 with SMTP id 4fb4d7f45d1cf-5d3be6bdefcmr3657286a12.1.1733742164742; Mon, 09 Dec 2024 03:02:44 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:44 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:14 +0100 Subject: [PATCH v2 09/19] arm64: dts: qcom: sm8550: Fix MPSS memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-9-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1331; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=ZnVV35Ysk2q6WdcSOD3vQho9WYZzqbjyCRsxVVNYQ0M=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs44QloLVkk6HRDsj/yakFTUZNo1Z8Jt07bHX lqp32Lz/yGJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOOAAKCRDBN2bmhouD 113MD/982eUyfuK+5WgfBpaPMpgbQ0yJomYIy2FQv0auF4Wp4dCChOaSFLZVhoHHXA4nUcIsMKE maN7Bq1nHY1HSLxEI+/egUUM1LrAsQcOs8cXsfjpLOgvyR5RvjmOPX/4Gj+p29qBW0NJl3ghC82 c6c1yWonXJ8Pm4CHwnQooZ+PHEptQhwGY6NoVCw+bBXU7OtUds5wMu1BWYr2bdC7Hd/XcBo/Zsd HddpB4lg0GftQ3ZYdTSKKgAhPZx9bgwMLHzVAC99QcipXfSl7B86va0Es4WqiqKCMKLblrLcC8L 76sMwpSQ1dZK0aBTfxwX3zDyYcfCVKVSnJdrGrj3gtZA6lvXD7Tz50p/tmNcXHVXw79F4oI6eoE 7i+UTA1wFjQ/SBW/bDlsJ/S6+Vo3848ecksta60i0odHNVshT+U5Lw3rAai0Qjj10twqLkwkFsi K2yf4ocBRolaw7S61nsJmrwYwYnvKEQmru4uqMSiD4kn7NUdYcJhHg25Qvn+6W2693jQSpryIWo ifqtmWFttDIHq7am2jh5aNw2AmN/tdKEKnk6POCvrNJZQnjCdvTo8Qg1spC//TqIthLWQiMIeEJ soABrZ8yRPRpyXxoGp3RRjRFelqdrED4j+jyiOMp4d0mron0yhj9T5HzdjtcMJloeKy6lzsh8GC 67MWln3QVOnDLLg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in MPSS/Modem PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x4040 was copied from older DTS, but it grew since then. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: d0c061e366ed ("arm64: dts: qcom: sm8550: add adsp, cdsp & mdss nodes") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 541b88eb5f5300ef9e20220305ff638db9b2e46b..71ff15695d396a68720a785435e692d3bbb38888 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2314,7 +2314,7 @@ ipa: ipa@3f40000 { remoteproc_mpss: remoteproc@4080000 { compatible = "qcom,sm8550-mpss-pas"; - reg = <0x0 0x04080000 0x0 0x4040>; + reg = <0x0 0x04080000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899298 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 64CCD21CFFE for ; Mon, 9 Dec 2024 11:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742170; cv=none; b=hj8otN05xwHkXDnKbEtQHXLPJZkmnEGccA/mVCmfCiR3P0rJYzbrNw03lXgP17ZJDh89giVg2I8l6japIPiW4cR/IjzOJdj4j5Pj82oe69WVWOHdILDW+76cZBZBBUox4nqjLqsvY0YplpV9Rb3HK6Ax9j74++X/aoRivpo+8pc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742170; c=relaxed/simple; bh=OfBIwWEP7oyP+n6M5EXEEg0B2suUs/3ufFGrQeFa4kM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iBAnh9VBop4Gg09Yl+aQ4tthuB8vJhfQ6PfW5WTHMjYTw2p3LW664Rtclimo9IGoRkx0CPJdSV66ndmmxZqVo9bUvZHXpZ0NUinp6ivISQYi2FmySWUS1WZBdeUtOgZkoMXIvOJa9EGd7Rwu2njofCQvNSXpv/jCX7aGm074OLo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UmxLUxNT; arc=none smtp.client-ip=209.85.208.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UmxLUxNT" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5d3da226a2aso144478a12.0 for ; Mon, 09 Dec 2024 03:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742166; x=1734346966; darn=vger.kernel.org; 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=x9ADceHBH1J2N/1cRjoHb9Ju1ou7q1g/f1iOSWK6wKo=; b=UmxLUxNTG4/NDFiD4JzQL+S4wgr2jk//Nqs+cl/ry0D3g3G/ZVPGFFsGf4f9pjoe/p cF3f0GOAAp/7RyNCg98INI431yUYC7/bVMjDeulRWuxtqei67XRKSQNrkYwUanaXZzm+ jCo+w+U+dWB1+brEJ6gv/bur3Wo8rr5DrZLJyK4UMDguZU7G/zDQWEgIUwc4G5x299B6 qrdqhyYmlHY6xZDBjE3s+3i8VoQeal0TGhuMwVdYJQGNuh3/2c35DDplBWWCTK/QeGzg wP7pre+ttulpjp32SAWY/6qyDAOQSoQC1Mzb01yHNbGLKuJrypz14seAhSwiQY8Htuho f3oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742166; x=1734346966; 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=x9ADceHBH1J2N/1cRjoHb9Ju1ou7q1g/f1iOSWK6wKo=; b=sh0szL2TdT9XGZVk7JK7d13K96cL+6fHsYZ3nWN22+bi8J+/UzI3oMhYHPtfz2/Ox6 hCNnOXLTQmwk8EfzR9EXkkHfyPjMXl6GacWs8EyzT4/0qaDbrD3Z/+khoIUTOqcFVYaw LYO+wwgV8VxfE8Imb/YG0AWD7Hf7gIQfva/u0oaOQxt62Q9wKoF/bNV6BKphXIJvYEIr xRAMn4GwIBvg1PKTz1coHOwtN400wxA5ibQkIv69bnEFfqTQjtCGi6rOhWiKMbfg0yke Clo+V2aVdOiAYPusT5ul28MGSh+Ci4YuATCECZ3/TSR0qfzqj3FG99KeVxRqMojlybAT m1mA== X-Gm-Message-State: AOJu0YzLFfNj3PzJ6i80PdQXcmIFNpftVtmnqEShQDtqhzTrPCjC7TKW WC9aHEu5/rLuj5rRQuWFsDA2MK2EyAjT24w0LqWyh1afzXIQBA+TCAfXnF8KfuU= X-Gm-Gg: ASbGnctueZNQ97qXLuNh2sSEDHLiPXQc8z9g3NL9VhQopW5E+Bcx0mcSkCZtXsyvjS5 1g8bCJQ1xy/8WSUetsXEyjRsyhKIEQPCZJGf95aLgPNYlTkbsoNxiqhavEf7AXA7l28WfSpTdeL oniXTPn8A5MQRD36Zl5X9QjBa/ET1Lv2EY78tPxuVGMk3aPvR8MGT+cn4Z9HV/RaxjGNlWDE6tT bMoqE3kk5zGupoc00qksfpy84eZ2rpIgS/XhsZ7fig127CzVG1dwG3ZTyAgJ3wLEA== X-Google-Smtp-Source: AGHT+IFW9U8K9A6KnkYMyzuOj88kfO4mcwlD1P3gY4uhHVtnr894dXLaonij9PbeeULYtwcuwE6KaQ== X-Received: by 2002:a05:6402:849:b0:5cf:ca6e:400d with SMTP id 4fb4d7f45d1cf-5d3be69a983mr4023281a12.3.1733742166250; Mon, 09 Dec 2024 03:02:46 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:45 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:15 +0100 Subject: [PATCH RFT v2 10/19] arm64: dts: qcom: sm8650: Fix ADSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-10-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=9276; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=OfBIwWEP7oyP+n6M5EXEEg0B2suUs/3ufFGrQeFa4kM=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs45mjf5p6yYxCtwaSZplRIXpMfR6ppd0k5vd A8wlLfNu4GJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOOQAKCRDBN2bmhouD 100MD/9EJWzR3Bz8NWutMOuuZZjOF1Q3kon0qHC4tStpb0vvSAEY/dRbun3uJrBLQfZBVdbDldC Kk9eD67wXxPSaeH9byYrktiprkpCtuaYoe24GQMumlWb9b6bMPy5zv4jad5jgLB1CuQwHT+Rery RrTC4+6utMxkvZvAOL0Dkd1gU1S3flxO11xoaHLSq69odFYt8aQi0ambzVwyUdil/h7R00+oyVe WzDNDiXm+/D7LocxE8OMYj/FkYwfHLE/ZIIxNOMkeu1L/ojTqQb+6SrjWjo5io6mmkvOywBw0S8 WV/C3jqg2QF8G0tnsAquv1JQ/MOHvQdthLbYE+7YJ3QCtOfue7NdD9TpvBQ7ia/AiTaLOZPFlYN 5XQYMVKeJXgAd0E+Xuxnsol5tKqbZtcw4WxkWK4dM3ABsQY/S/v2APJXDg71eRuv7UckYwJlhNg QG95Yq/2Blx7KbaJXqTNUVmYzWL1p4/2e7DUyY5Dc88DsPKc7pXjq7HIEZBAyE543TYbrHEBlBB eXuaae2IwC6Bct2ugMxoi35URyChVCeSqP8g2y3yksHvb8dcMz4VPBY88ERIpH3YHRbFnjUPsm1 qZlsUcGWhtMNt22pBsqZHmU9DWo8Mtz4fN1JbyxEyXZ6Zglmt0BSphX+va+NWMjMx/u7ZzT3q+u Xnblu9p0oFe5xfg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0680_0000 with length of 0x10000. 0x3000_0000, value used so far, is the main region of CDSP. Downstream DTS uses 0x0300_0000, which is oddly similar to 0x3000_0000, yet quite different and points to unused area. Correct the base address and length, which also moves the node to different place to keep things sorted by unit address. The diff looks big, but only the unit address and "reg" property were changed. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 296 +++++++++++++++++------------------ 1 file changed, 148 insertions(+), 148 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 25e47505adcb790d09f1d2726386438487255824..95ec82bce3162bce4a3da6122a41fee37118740e 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2904,6 +2904,154 @@ IPCC_MPROC_SIGNAL_GLINK_QMP }; }; + remoteproc_adsp: remoteproc@6800000 { + compatible = "qcom,sm8650-adsp-pas"; + reg = <0x0 0x06800000 0x0 0x10000>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", + "lmx"; + + memory-region = <&adspslpi_mem>, <&q6_adsp_dtb_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + remoteproc_adsp_glink: glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + qcom,remote-pid = <2>; + + label = "lpass"; + + fastrpc { + compatible = "qcom,fastrpc"; + + qcom,glink-channels = "fastrpcglink-apps-dsp"; + + label = "adsp"; + + qcom,non-secure-domain; + + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + + iommus = <&apps_smmu 0x1003 0x80>, + <&apps_smmu 0x1043 0x20>; + dma-coherent; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + + iommus = <&apps_smmu 0x1004 0x80>, + <&apps_smmu 0x1044 0x20>; + dma-coherent; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + + iommus = <&apps_smmu 0x1005 0x80>, + <&apps_smmu 0x1045 0x20>; + dma-coherent; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + + iommus = <&apps_smmu 0x1006 0x80>, + <&apps_smmu 0x1046 0x20>; + dma-coherent; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + + iommus = <&apps_smmu 0x1007 0x40>, + <&apps_smmu 0x1067 0x0>, + <&apps_smmu 0x1087 0x0>; + dma-coherent; + }; + }; + + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,domain = ; + qcom,intents = <512 20>; + #address-cells = <1>; + #size-cells = <0>; + + q6apm: service@1 { + compatible = "qcom,q6apm"; + reg = ; + #sound-dai-cells = <0>; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6apmbedai: bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; + + q6apmdai: dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1001 0x80>, + <&apps_smmu 0x1061 0x0>; + }; + }; + + q6prm: service@2 { + compatible = "qcom,q6prm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible = "qcom,q6prm-lpass-clocks"; + #clock-cells = <2>; + }; + }; + }; + }; + }; + lpass_wsa2macro: codec@6aa0000 { compatible = "qcom,sm8650-lpass-wsa-macro", "qcom,sm8550-lpass-wsa-macro"; reg = <0 0x06aa0000 0 0x1000>; @@ -5322,154 +5470,6 @@ system-cache-controller@25000000 { interrupts = ; }; - remoteproc_adsp: remoteproc@30000000 { - compatible = "qcom,sm8650-adsp-pas"; - reg = <0 0x30000000 0 0x100>; - - interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", - "fatal", - "ready", - "handover", - "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWAYS - &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; - - power-domains = <&rpmhpd RPMHPD_LCX>, - <&rpmhpd RPMHPD_LMX>; - power-domain-names = "lcx", - "lmx"; - - memory-region = <&adspslpi_mem>, <&q6_adsp_dtb_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - status = "disabled"; - - remoteproc_adsp_glink: glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - qcom,remote-pid = <2>; - - label = "lpass"; - - fastrpc { - compatible = "qcom,fastrpc"; - - qcom,glink-channels = "fastrpcglink-apps-dsp"; - - label = "adsp"; - - qcom,non-secure-domain; - - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - - iommus = <&apps_smmu 0x1003 0x80>, - <&apps_smmu 0x1043 0x20>; - dma-coherent; - }; - - compute-cb@4 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <4>; - - iommus = <&apps_smmu 0x1004 0x80>, - <&apps_smmu 0x1044 0x20>; - dma-coherent; - }; - - compute-cb@5 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <5>; - - iommus = <&apps_smmu 0x1005 0x80>, - <&apps_smmu 0x1045 0x20>; - dma-coherent; - }; - - compute-cb@6 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <6>; - - iommus = <&apps_smmu 0x1006 0x80>, - <&apps_smmu 0x1046 0x20>; - dma-coherent; - }; - - compute-cb@7 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <7>; - - iommus = <&apps_smmu 0x1007 0x40>, - <&apps_smmu 0x1067 0x0>, - <&apps_smmu 0x1087 0x0>; - dma-coherent; - }; - }; - - gpr { - compatible = "qcom,gpr"; - qcom,glink-channels = "adsp_apps"; - qcom,domain = ; - qcom,intents = <512 20>; - #address-cells = <1>; - #size-cells = <0>; - - q6apm: service@1 { - compatible = "qcom,q6apm"; - reg = ; - #sound-dai-cells = <0>; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6apmbedai: bedais { - compatible = "qcom,q6apm-lpass-dais"; - #sound-dai-cells = <1>; - }; - - q6apmdai: dais { - compatible = "qcom,q6apm-dais"; - iommus = <&apps_smmu 0x1001 0x80>, - <&apps_smmu 0x1061 0x0>; - }; - }; - - q6prm: service@2 { - compatible = "qcom,q6prm"; - reg = ; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6prmcc: clock-controller { - compatible = "qcom,q6prm-lpass-clocks"; - #clock-cells = <2>; - }; - }; - }; - }; - }; - nsp_noc: interconnect@320c0000 { compatible = "qcom,sm8650-nsp-noc"; reg = <0 0x320c0000 0 0xf080>; From patchwork Mon Dec 9 11:02:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899299 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D8D621D592 for ; Mon, 9 Dec 2024 11:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742173; cv=none; b=DlyiborASFuo+Ac66Omd0NF/SSexXfkcPDjDlL4+MVaRSTEsEniyeZuUhF9Aq0DMaGa5POo+fEay9K5WsWUm4/gDiAK6XBR8BwzwPssTmmK0qrsZwbk7ZBU8j1cMSZjmMWOJsIqU9DzohW/3dIw1ndAnomT9B2JHE3gbE22zg0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742173; c=relaxed/simple; bh=O8Bus3+NCYOHILrSko1m3UkK0HY69hffCJIEwPcQ3bY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tkdDO86bD4vVnRfAVgFpORW2pz433pY9Air3/Q5ygfrz1+AD+SffMFlC4F/Q8C4wnm46chMoE8SfTgqGdlbU6d0dMASSaUP+p1sPHQbscTZBVvKYjrTlCnBBZeA+lAZVgjD6WghMk3jSmynMDjwveb4LDbHQH8AmS8+5iew7k/s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=T8uJ3BLb; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T8uJ3BLb" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5d3c1f68ef1so492952a12.1 for ; Mon, 09 Dec 2024 03:02:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742168; x=1734346968; darn=vger.kernel.org; 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=kCJyk0h0MDbYAkMubWpFcgnTzjf7M1fMS/Py9APCKq0=; b=T8uJ3BLb/GHW9pul52vAFW8hy6HPKzDk/bDSPfbKa6T3QnhWYpyan8gk/IRBiBzrsS opBM4PyQ84aaXEBHe2PpGTq4c0drDWlwusjyfsF8Kij5AlAN+PLlE8+Udtz9/bZKV24K YVNfl7k2fTPirh7qSZdm+pwMfoSVamjzO3n94GM5Ot22/rxVlpRi/g+czrcNwdWndhje 9LUGrLi/OrWtMif/ytaap4cufYYXcm3ejhT5gCiiD6BH9Y2FqjdhoP19+siIxCxt1xm3 qzz+CDQLZG0CfghX58Fd0i15fsmJiOP6ZyDpOz6QCPlnZ/yUt4vnKhqA8BLxBRngoaQe KTow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742168; x=1734346968; 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=kCJyk0h0MDbYAkMubWpFcgnTzjf7M1fMS/Py9APCKq0=; b=lUq03fA6qY9HYOfPtLpACxhwj7NlNEsDGPUOhzHSpx+S2LA0C+H7TQmroItoPZiO6z YrIm5vUCF5Gaj3Gs3B1D/HdSr3ToFKcoUrwSR2biuT0IzlyqXIEmjfpXTzzxX9bQvA0D 4E3m7VwrTZg0lZTQH01orA/YsoA6lgWI1MJGWos9J38qU/lVOinUb5fOaxMjxYBSDMBf nJJ0Y65k5SnkNQbUGIRiLeX0Ul6iZxKqInuULf98PVQVBo/Cl48D3Zc6qOPABrns/ASZ 40gA17K4lsJJTd3RvpmYodzVHjmAQtyRZbVmnEL2gXAchWNmBJXK2pvkpI36XR0/sME4 8Z5Q== X-Gm-Message-State: AOJu0Yw32lugh9nvayq6tjF5V9gDuGAYZki5t0BF94pSsM9H1feLEoHI nBnoOfWzvamEm24hdKPRlBaC1jFulDqygXS+NIdAIXon3eZ0ZWo6JfrZN/DqDXU= X-Gm-Gg: ASbGnctajUY3LXgLvgN0LKCXnzSjbTgpSjc82uJGHs3HNsUzrcJpDF12HQv0ZTyWodM 60nrtNCoLphnCR89DPuywzNxB/cPjHPfXvkN5PX6vu0pUcjKqEFDg7KBRXtHilXfwltUlj3UNHZ uhxTHqHE7/Uvw26cwaBMyhmfFD9Ld3xy5ZJbh1rVdvzrANrKI2UOjtlZgAO0PedOsf5nhSFiCqy 01uAB7KZb+3Ne2U1GdSmuIifk8Kl8UTCc14aEoo0bAYdVdQFKvuPsbefjHgdy0ZPg== X-Google-Smtp-Source: AGHT+IE/h/dH0VJJNrRmshoWtaW3YAuQloCeHpjAh6+fslbQuMlX40ZdGSk8Fx+szevyPHhVriJQxw== X-Received: by 2002:a05:6402:1ed2:b0:5d0:bb73:4947 with SMTP id 4fb4d7f45d1cf-5d3be4617d1mr4584045a12.0.1733742168099; Mon, 09 Dec 2024 03:02:48 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:47 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:16 +0100 Subject: [PATCH RFT v2 11/19] arm64: dts: qcom: sm8650: Fix CDSP memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-11-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1367; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=O8Bus3+NCYOHILrSko1m3UkK0HY69hffCJIEwPcQ3bY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs46Q4bCb5RzI9UlhztHjrSA1JTgHQS7Fizb+ w53eBB0nuyJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOOgAKCRDBN2bmhouD 10J+D/47nqYHV8oPvKIaJUAaXIwm5RlaMQApfYv8ZmsGI2HX4bsuBSvNPEryAbk+1w6Sb+ZSEPG y9/33RleiiiR0Af2i8RguVUUYvNS6Ytc6OneU3tjCzxJykYPcKXk9FsloUBy65lidkfswH/TtnA HKBzlxVxfG664/cM7N37bU6fSPlVIwENrUURjFXgCHUpeQOAuHp9zpTBgHA9ODHlsXZY2B39gQb 0HZjKLDRFZQpGAo4W/c5UjTbhfyKiVuDbekJ21bQju/qIuqShEaojtihRuk/ffL/9oBBFB0NZeP VEr0+KE7l92Wbjs0SZjtYxmOQ9sOm9yErqjZruI600ybKOpD8nNFkBNMvdDCDZeFEqeV+IC4nFV Fsrl9FFgMZux67DCdv943Bxm7yrXrcC57vL6S4FEqe/2NRhUR9Wyzww26T8+JsEHKoRmk6K1i/B D7fIh8gaOEnurXg3e3oA0bM8ZhHQb8VgBDfqWH28tTOLGxyAosle5+6rFIi1VWEG29eb6Zyi7GX QuQaw6Iei6p2INm7Wopo2RPiiYSh6q6oIRTBWOEafYv7iUXFR5L1JcEJ8Q/jcFQrGpVeiViI6rO c9df/Ie5iknG2Ffpof53TkbY/hJGNSJnobZ86BsmIp24GTssim7QMVIYByrHTCKRU33vmuYzDbz qu3UilrQeT2UoPQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in CDSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x1400000 was copied from older DTS, but it does not look accurate at all. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 95ec82bce3162bce4a3da6122a41fee37118740e..1d935bcdcb2eee7b56e0a1f71c303a54d870e672 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -5481,7 +5481,7 @@ nsp_noc: interconnect@320c0000 { remoteproc_cdsp: remoteproc@32300000 { compatible = "qcom,sm8650-cdsp-pas"; - reg = <0 0x32300000 0 0x1400000>; + reg = <0x0 0x32300000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899300 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8C4821E0A9 for ; Mon, 9 Dec 2024 11:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742174; cv=none; b=sS1P4HSuJ/R5jklmfGP2QrIzsP3OJLMC9uuG7ywhhCL/DaAUa6NjVfaO8JQjrVmNTDfCDLj8e5zD10XOwvQ/7ZSrNSZuRRrnSWZubMVEiONXXQomtMI+YkSprJg7m+ytOObmxSNzWvEBtQ8h8kzw4hga3N7SX3WzDXmnMDCEFQ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742174; c=relaxed/simple; bh=6XZxsV9HGdMYh6b6lt6opUPGyGrjrZgJYmdsfiTOo0k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oDdWDatGtNKZs+zKNaTVDqTmgcxlCsSpb2Qxq6vNkrFzKbU5zhwW5KgRn12nI+IJZ2ZNu9bORuwXdiAmpbLl5RXSEWsKlj+rHQ9ilp89wv9aVoL5x3wV1/ugy2G7DjykgXTdQ2TNEV6glTfa03hFKoA8CRdEJc44poZni0QzaN8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=rgnOiYsA; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rgnOiYsA" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5d3ce64e7e5so296017a12.0 for ; Mon, 09 Dec 2024 03:02:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742170; x=1734346970; darn=vger.kernel.org; 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=1SW9jNbrG++U9HvTjA6UTT+HPesZkjoe3s35+KnesYA=; b=rgnOiYsAHp6EUaqY409danvhzphglM3DgCXKnznggztiwP7/iQ0TMLRjs+NZibQit4 ae3DvfMm/3179ODh0m+niGIECAFi65niLht43SDWe8gwOIZhV+XRXiOKGjpOXynPzepP P44F/zjXVeeUeGluFeCN31RGfo5Twp993DDdHSFpPI/qWOgEHt6PQ/JC1mVv5pJRJl4U UF4KSvlIom8HhgcCTp1pDmYYp7zHbQ4e7RokYlS/z5A3kSfS+Uoz1MMx5+BaDuCl1EHS KVkMZ7kKxbLvDwKfMGWyMeCo1pscqFb9YlZ2q3CIaGmA06AE2UGedB3zk6UeCdXuctMy 30HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742170; x=1734346970; 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=1SW9jNbrG++U9HvTjA6UTT+HPesZkjoe3s35+KnesYA=; b=KsrmHOgpW9e50JVt7hkh6wggF6qJa461vPSGqeXa39ndGut4dU4M4CKlOA5n4QAx3Z LXs1Fjzy/iNKZY//2o3p/TPEp/QgKQ0XQL0055ee1MpdrV3wZBUZ5WN0+5CLRT3OHPR6 kXfYs6rsh6vhKQZZJJovcdjDUHwi0xaDVetbBqHvBsDmjIta5D9z7ZnH9qoq1FftKBn9 dRi+cnc5KvSxc7gAVB01vjY3P6tHPExiBZMsZYc0y1k+NlmB1eazhqhWNz8sjioVr1dp 4TGm1jhYuzB/R0I7qqhb7gtX26MExTjeKY4hzvuduTE/5NSYjL2JOPMrLlqqzqqlIwRP fTQA== X-Gm-Message-State: AOJu0Yw3ycfg+Az5OjV7Xkt+DvUjusr88yR3gVUV8DJKHcRnstWQKxO2 eVhwvbZw0JmLVcHeu7VAc7FhoDhRXJVsfYn2cfWm1jw/fEMwLS9tVSnZz8UBs4g= X-Gm-Gg: ASbGncuvWkHnDTjqmI2+VgB7QUczhnCWn99IIZ9EkBlETFVeurElEsqrefAx79sYzI8 kEsOQ4zfz2ph36lswmAD8IkiH8UVQRngwO9YdpLrIGWun6f79CIvxXvHNgRqgKmUFLiNhXiIKBH SlvvfGyygL5B8PuOJO8MPSlZI4SPlArKDDFi3gQiH+MqxKtfQyM6uDOzxG5cw6L7+z0gHIiGAC6 1KNa14ooZeH0XVxyofz4IlukoLm1mkOrNS1aHuaTeOop7+7lhZD7wn26qu0EpaeeQ== X-Google-Smtp-Source: AGHT+IEM9iOWFs7aVrRxAZOGJxHSeU+PPDL4E966vTV6eI0BLw1hRNuM/zt+Np7Pt0YGnu2rup92kw== X-Received: by 2002:a05:6402:2681:b0:5d0:8111:e946 with SMTP id 4fb4d7f45d1cf-5d3be6fc185mr4231557a12.5.1733742170001; Mon, 09 Dec 2024 03:02:50 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:49 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:17 +0100 Subject: [PATCH RFT v2 12/19] arm64: dts: qcom: sm8650: Fix MPSS memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-12-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1339; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=6XZxsV9HGdMYh6b6lt6opUPGyGrjrZgJYmdsfiTOo0k=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs472ahONzx6hR1aFG7ldca7/lNclULH42iOU 2VmQD8c1cuJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOOwAKCRDBN2bmhouD 16AmD/9D5iStZffp5knlrji4lqqNnNsO08yoA+5W7Xij8mFKkqpxSkl/5qSmk6RkhLl/acBoiCQ 8VXrelRW0VMCk0i0CA4NQNbK0v5LhH6mWcVztvjOF/ucCV0lvm1XJg5Buvz9oFwwy8LNCv+SIa9 SlwxTs/FjABILLffD+4lofBhmdYZ7W7mlWKVfKw9kfYphRtVAZK6NM4sQrUE6PXg9+CN3UoMJJl HcS2v71gxiAw8Hz5Cf9wnsLO1i+YMfQ2gpCbRll7xWzY7g4UKiNYHfASBUV2GvXpAbd/Drtq+Bt 8MA8y6nwAhXG/ca0SwqrFppdI9w35Hm/tKz6g9Q3nvNnKy+ZDBZY68YQNfUGpY2ncPnh5xLHQB3 6WJ9TadNfpvPNhfKqdViFdpuPWpG8Y0N0dIo+MKcv6nGhTNa9lHq8hO/xVGI70JkH87OtK4mdAI nKarpwJmcMtPNbnHvi4muQCcwwpXohC0dw3WJfXvB1GLkbx/l/RmF6MU8eDlEFI3fpaIo0GXR+a YWjF0bxhm4NsFQhERdqm+x3h0nRLualwQzSND8T2pV4v2I5GCBioGW1gqRaf+6xsMdfYgoiTVKv DDlszPwCZqXVJPJEWdmuA+RLxpmr0tyWOPYtuMU9NzS5gGVrKlc6CsbkTKSjjOrb0LBun7GacmL NygHJeSCqjKo7AA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in MPSS/Modem PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x4040 was copied from older DTS, but it grew since then. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 10e024671295 ("arm64: dts: qcom: sm8650: add interconnect dependent device nodes") Cc: stable@vger.kernel.org Reviewed-by: Neil Armstrong Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index 1d935bcdcb2eee7b56e0a1f71c303a54d870e672..6ae81c191fae8f1788adb399a364886d3fc2dfdb 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2853,7 +2853,7 @@ ipa: ipa@3f40000 { remoteproc_mpss: remoteproc@4080000 { compatible = "qcom,sm8650-mpss-pas"; - reg = <0 0x04080000 0 0x4040>; + reg = <0x0 0x04080000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 264 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899301 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A926C221D88 for ; Mon, 9 Dec 2024 11:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742178; cv=none; b=OAqhJIwTUc4nRV6OmtOfKngEVR3mq5muxNOj1H/HgiCv2WeWioJYEhtmHqb2GygmnzU2ZkE/VBPBy/U6Ku8sOwRdFPAF16x9RU7YPpTF/x+gVJdh9hXuNSpciZH+UqKFikvu1dVxvWHUlBndEUL3oRmGYneqjkalvnK4SB6uBIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742178; c=relaxed/simple; bh=GlS5WDoRtGHpA8QTt3x6IvZf6O0GiSsbv4oxLcXsdhE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qgH+FETHRGlvYRGDnBqSXkvXM0AD7ijTOuOgwnfQQFq1C1qRB4x0JCCNGVMFaHeFic44iZcfrs4dUhL5oc2lw5Az2VQv9nwJyUgJkO+StEoth1l6pOpMoZ+ySDqPisf2A4DEvtp2EDWahYY5wcm20dmu7SFdesfn7l+4ABcShaQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gte904k3; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gte904k3" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5d3cfa1da14so205516a12.1 for ; Mon, 09 Dec 2024 03:02:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742173; x=1734346973; darn=vger.kernel.org; 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=jdsBiUzpJ/4d1OMZs144Fw5edGLmJ/IGg9JYvy7elyY=; b=gte904k3fdboT2E0NTw2nVDoHivKNxmAUuPy8Eje3s8EBUOKLXICSX/iuIyiK/LrVu DHKpo0RSCDzMxUk9N3nXDg/hiXAYjSPz7onUQLwQrTzpShnFd2PvBNN9Aluz7SQy5OTr 2Cq3LiSXKXpAgPDFF8diM7u48U1zgLdRsmhy6WhjP+57nYl7cYK14ufsNMHFEGhqhbmw K0ebNpeSu7BbBCuQqim2wRJ/qu/gmSYBrUxGmguuZIArU0NDHhj4NcquHHjqrScXEJKe bLbbQHEpd7anaubT87cw5m1HiKSYrNRbIkrlHVbeAvZmFyK8mzTMm0n6SH5SHwku1Umf JNcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742173; x=1734346973; 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=jdsBiUzpJ/4d1OMZs144Fw5edGLmJ/IGg9JYvy7elyY=; b=dfb0+7E9aDEQuAZJRRK+dj+1+BR+suPQGTUsHDVH/YagRLenOeKtHvzsnBO86ktim+ S+Xr/GbKSD2q83KsxxvaWFoKy6m59+hB6ERWjHtOzgPZewUMEATKdyXqDQDgb1mJEFdh h/o0je/TIFxgBh/sOVX9ZbEvg1ARtEesINti6gutU3e25jDQon/VARGcceymJRYVHmiv Ufp6LG7lSsq6ih3dVGcs7D8h7+WlU7laM4qtJtRw3yX/EeZVeOxs+ksOMSpoZtGdYyJb VYejiRLuBM9dORu4WAz4cgMnwSA+b49gPBah4BiYEFav8hckoVmnCTHSO7qQqc4J4/pU bomg== X-Gm-Message-State: AOJu0YzXOaurzRYWBr9sJuZcymle8dWNzdO70+5JZvW8ERJFLfTGBb84 cU5H79rdhaRk3Vs5jcsfk+hfPj72I+3qp0Rtrjz86/qu0i+8Ck0LH4Y9E1L4TSE= X-Gm-Gg: ASbGncusVO0EHmeisRDlpGa1FgXt0b/Qx+RoMaTIVVaw3/o1p/h1xlMx84koXUQavIn mGbA5f/3rz2e6wHzssXS0fFXBrmI8GGP0qJvYhWoJWB7XCYtHt8DehCuZxgnQXnk3SkGb+0mEZ7 D76O0uPxSxv3iFI4Q5i9BkS3fJHNjjNMGfqH8ryEffLfFj6BrXbq4tVr1dC9u2bxFj6+1rgxDxs 1Hzuc6KpZP8h242HONlIHx3OiIpCqy/YqiqmwECKKAxJ94Ai8vy7IeuHNkt0IAJnw== X-Google-Smtp-Source: AGHT+IGh2upUsVCxMp6v23ePbPz+L3uqU9/kQjqdceMgnW02Y20/7QTOoLVj8E4FEcbt3QiJvcWzHw== X-Received: by 2002:a05:6402:2349:b0:5d0:d786:b87b with SMTP id 4fb4d7f45d1cf-5d3be7a104fmr4732590a12.9.1733742172928; Mon, 09 Dec 2024 03:02:52 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:52 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:18 +0100 Subject: [PATCH v2 13/19] arm64: dts: qcom: x1e80100: Fix ADSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-13-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=9093; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=GlS5WDoRtGHpA8QTt3x6IvZf6O0GiSsbv4oxLcXsdhE=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs48kuv1FTqyJxBsD4RBsweM0qOXD+E9W1srl XZiHua7IT6JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOPAAKCRDBN2bmhouD 1xxuD/9pnzUwOZcuH67hOerkYOVRlIGA0GjFNN2MAO4SUAuIxauzYRmCsg1yuw+ORdMy4ng4XS1 ZxxBy6NXc0RXPYsmtWwk70YYxWVyDxE7vCLZJ7C1064aNump+ZyXPw8tYLGXXa/8lsBkhYgciZ1 HyD28IrHQDoPvk/lVdInMsUamBd92AKOoYTNQblNIxlZc6XMVf0zXu8TZ/Z0u0yKar4mK4gH9v9 +Vc/ITyY488whp+ICT9WRMfNyKa5wVT3t9Yysh7AYn7iNIVKX38XOo/0DhF0BdINefyWK5SZK7B pFyu8Ww/LH55rR4Z0yefjogQm4UhqNAkWTx0+qei9l3hPY05KaOFiMdXZulARA77EK2lNqcu7fX IYxzQeOowCy6bZSAl3JM6JyjbagwXdZ1glX5e5tqhBBD70bnOuLbKbcUqWp0hKFfF2pNTMkn5oP dGk5pK5VZXHmq7ASn18D/7Z3Yu+VOvf29Z9mauocikNCWNJGj408KCT4cPSnKpM6LEL/QnksK9i YyNTHdo3yJmeI8K6rQcAttm8K3q1w/3DSjRKr6RT6cfB4/bZhaMrooyKEKSzCCNMgoGDCzdVujH UlBfiuPIunbrbZhC6hSg3Eku85N2xe8zbSWlwIJbL1sx4/k4ODT4vqxzlmahmUV+W5vPYxuu/ev 0+Fp1fQz5dBU8xQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0680_0000 with length of 0x10000. 0x3000_0000, value used so far, is the main region of CDSP and was simply copied from other/older DTS. Correct the base address and length, which also moves the node to different place to keep things sorted by unit address. The diff looks big, but only the unit address and "reg" property were changed. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 5f2a9cd4b104 ("arm64: dts: qcom: x1e80100: Add ADSP/CDSP remoteproc nodes") Cc: Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- Changes in v2: 1. Commit msg corrections, second paragraph (Johan) --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 274 ++++++++++++++++----------------- 1 file changed, 137 insertions(+), 137 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi index c18b99765c25c901b3d0a3fbaddc320c0a8c1716..9df6903b5d59aadda26d9e0d4d9f951c5c3add7b 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -3720,6 +3720,143 @@ nsp_noc: interconnect@320c0000 { #interconnect-cells = <2>; }; + remoteproc_adsp: remoteproc@6800000 { + compatible = "qcom,x1e80100-adsp-pas"; + reg = <0x0 0x06800000 0x0 0x10000>; + + interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "xo"; + + power-domains = <&rpmhpd RPMHPD_LCX>, + <&rpmhpd RPMHPD_LMX>; + power-domain-names = "lcx", + "lmx"; + + interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + + memory-region = <&adspslpi_mem>, + <&q6_adsp_dtb_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + fastrpc { + compatible = "qcom,fastrpc"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "adsp"; + qcom,non-secure-domain; + #address-cells = <1>; + #size-cells = <0>; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x1003 0x80>, + <&apps_smmu 0x1063 0x0>; + dma-coherent; + }; + + compute-cb@4 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <4>; + iommus = <&apps_smmu 0x1004 0x80>, + <&apps_smmu 0x1064 0x0>; + dma-coherent; + }; + + compute-cb@5 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <5>; + iommus = <&apps_smmu 0x1005 0x80>, + <&apps_smmu 0x1065 0x0>; + dma-coherent; + }; + + compute-cb@6 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <6>; + iommus = <&apps_smmu 0x1006 0x80>, + <&apps_smmu 0x1066 0x0>; + dma-coherent; + }; + + compute-cb@7 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <7>; + iommus = <&apps_smmu 0x1007 0x80>, + <&apps_smmu 0x1067 0x0>; + dma-coherent; + }; + }; + + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,domain = ; + qcom,intents = <512 20>; + #address-cells = <1>; + #size-cells = <0>; + + q6apm: service@1 { + compatible = "qcom,q6apm"; + reg = ; + #sound-dai-cells = <0>; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6apmbedai: bedais { + compatible = "qcom,q6apm-lpass-dais"; + #sound-dai-cells = <1>; + }; + + q6apmdai: dais { + compatible = "qcom,q6apm-dais"; + iommus = <&apps_smmu 0x1001 0x80>, + <&apps_smmu 0x1061 0x0>; + }; + }; + + q6prm: service@2 { + compatible = "qcom,q6prm"; + reg = ; + qcom,protection-domain = "avs/audio", + "msm/adsp/audio_pd"; + + q6prmcc: clock-controller { + compatible = "qcom,q6prm-lpass-clocks"; + #clock-cells = <2>; + }; + }; + }; + }; + }; + lpass_wsa2macro: codec@6aa0000 { compatible = "qcom,x1e80100-lpass-wsa-macro", "qcom,sm8550-lpass-wsa-macro"; reg = <0 0x06aa0000 0 0x1000>; @@ -6319,143 +6456,6 @@ system-cache-controller@25000000 { interrupts = ; }; - remoteproc_adsp: remoteproc@30000000 { - compatible = "qcom,x1e80100-adsp-pas"; - reg = <0 0x30000000 0 0x100>; - - interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, - <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>; - interrupt-names = "wdog", - "fatal", - "ready", - "handover", - "stop-ack"; - - clocks = <&rpmhcc RPMH_CXO_CLK>; - clock-names = "xo"; - - power-domains = <&rpmhpd RPMHPD_LCX>, - <&rpmhpd RPMHPD_LMX>; - power-domain-names = "lcx", - "lmx"; - - interconnects = <&lpass_lpicx_noc MASTER_LPASS_PROC QCOM_ICC_TAG_ALWAYS - &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; - - memory-region = <&adspslpi_mem>, - <&q6_adsp_dtb_mem>; - - qcom,qmp = <&aoss_qmp>; - - qcom,smem-states = <&smp2p_adsp_out 0>; - qcom,smem-state-names = "stop"; - - status = "disabled"; - - glink-edge { - interrupts-extended = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP - IRQ_TYPE_EDGE_RISING>; - mboxes = <&ipcc IPCC_CLIENT_LPASS - IPCC_MPROC_SIGNAL_GLINK_QMP>; - - label = "lpass"; - qcom,remote-pid = <2>; - - fastrpc { - compatible = "qcom,fastrpc"; - qcom,glink-channels = "fastrpcglink-apps-dsp"; - label = "adsp"; - qcom,non-secure-domain; - #address-cells = <1>; - #size-cells = <0>; - - compute-cb@3 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <3>; - iommus = <&apps_smmu 0x1003 0x80>, - <&apps_smmu 0x1063 0x0>; - dma-coherent; - }; - - compute-cb@4 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <4>; - iommus = <&apps_smmu 0x1004 0x80>, - <&apps_smmu 0x1064 0x0>; - dma-coherent; - }; - - compute-cb@5 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <5>; - iommus = <&apps_smmu 0x1005 0x80>, - <&apps_smmu 0x1065 0x0>; - dma-coherent; - }; - - compute-cb@6 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <6>; - iommus = <&apps_smmu 0x1006 0x80>, - <&apps_smmu 0x1066 0x0>; - dma-coherent; - }; - - compute-cb@7 { - compatible = "qcom,fastrpc-compute-cb"; - reg = <7>; - iommus = <&apps_smmu 0x1007 0x80>, - <&apps_smmu 0x1067 0x0>; - dma-coherent; - }; - }; - - gpr { - compatible = "qcom,gpr"; - qcom,glink-channels = "adsp_apps"; - qcom,domain = ; - qcom,intents = <512 20>; - #address-cells = <1>; - #size-cells = <0>; - - q6apm: service@1 { - compatible = "qcom,q6apm"; - reg = ; - #sound-dai-cells = <0>; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6apmbedai: bedais { - compatible = "qcom,q6apm-lpass-dais"; - #sound-dai-cells = <1>; - }; - - q6apmdai: dais { - compatible = "qcom,q6apm-dais"; - iommus = <&apps_smmu 0x1001 0x80>, - <&apps_smmu 0x1061 0x0>; - }; - }; - - q6prm: service@2 { - compatible = "qcom,q6prm"; - reg = ; - qcom,protection-domain = "avs/audio", - "msm/adsp/audio_pd"; - - q6prmcc: clock-controller { - compatible = "qcom,q6prm-lpass-clocks"; - #clock-cells = <2>; - }; - }; - }; - }; - }; - remoteproc_cdsp: remoteproc@32300000 { compatible = "qcom,x1e80100-cdsp-pas"; reg = <0 0x32300000 0 0x1400000>; From patchwork Mon Dec 9 11:02:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899302 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28F0B221D9E for ; Mon, 9 Dec 2024 11:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742178; cv=none; b=mW5zxat5tjIQp4KU3Ug03mvfwUnDDcF+5WBtmzSRYnxbA3AyaXQqLnpc4KVNk7DyfbzSbeZiJSQ4ym/Ucky4OvSPImm4MkARTEAekR1yjqo8OzKhsLQxLofsI9Q54N4O+Ka4y/4PZK/Sir0aa9LnZ4ocnX/omsUo7lg4zRRD2ak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742178; c=relaxed/simple; bh=NfgQA/XgYVV5OKpmwdBaDSEA9tYYVgnK+RFM1b7SHis=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cRbOGc191IteS9G4Ydn1UeFV4DTvWEPM/0t5ScgoSqnSE2jh7O7l3nHHK01pfvLH6+G+Wkkl8shoKjJeeGDlFcmB2sfZuakxaON8upU+V/g1zivhJqKYtKaEuQyj4c47CKJE77KUXKVxgVfVDj0Em5CPEIwXOJhgK/lwcWxYXE4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MUvVrH4i; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MUvVrH4i" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5d0d6087ca3so625112a12.2 for ; Mon, 09 Dec 2024 03:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742174; x=1734346974; darn=vger.kernel.org; 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=XUPiOrNH1n//ypUMYkuFABYWmDpGewo2IYrQwWO/Hmo=; b=MUvVrH4iiclPhUomfzi6tHBIcAbBuo3/LGmiVdJF27ip2+n3zykKZR7MNWVvvBbwTz /dUGpEea2ioUqmU+A72gZEqdp+AX7rH8iswfPevSvUDLPUnTbh3Wza2wz+cpyE228Hz4 jZEjuTA9jtyUGL5Uw/W6ML6Nqw1LW9D9mf/QfIdyB/U0oKY6o1eG4uzg1W+lKwJMJTTs O7mT4jnNauh/vzri/9uoXRQqUmfk4K2jRJGuVaxCeXz2cl+Q661zZYCgUJ2y918syDNn PqV5926DWS6xu8+2PHNC5uO7FDRg41+IMFHxhnBQuHFzT8kAxQkV8aiAhsp+pIUkXXSC ydQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742174; x=1734346974; 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=XUPiOrNH1n//ypUMYkuFABYWmDpGewo2IYrQwWO/Hmo=; b=tv3W5rnudbWtbi22SmFCW41L4lpVxLG+M9Ddi5cek6kUsvczOO020KE+5Em3pE37M7 14DrFZ3MF4lr6nxSBvtcQdn6KQNn1qFLDWKVNPyS4za+JgPXUSe8EXn/C38HW4mlfqqM 54EAgLDYkqFsU5byC/GXL1+lmeKs2dwmJN2saaO2OInylncUt0MAdP/NKvXVGOeAtOd9 zpSK6AN4XEn05GFhOLm40h4lb+RXq4LWI0qHb6kvND72iOHR1fZegaEtwnYWt+eAQhwt vLJEwyjzOiZ+s30ISweojBR23HWbnqtfZx6nrztAhXeT46SY1+Jyn37DhO+HbtyU9B7g TWKg== X-Gm-Message-State: AOJu0YwLWEd9vu5SRdLZSSxgnDrp0BQVXS517SzMbdnVndwT7Vge3kRY pvaoCP94rvRev6K5Kl/QZn6Xj/f4JOvn8qjm3c2quQtW3iZCgJLSh+IZMNZrFj8= X-Gm-Gg: ASbGncuHKbigvfGh5qggeHr+fg3eA4ai6wJD/ZYcgP0mYFQJEL20NWqHWJ9ZjfAPED7 YEbsGJJ3OD5ARM3X8B3LjBKVYUw2gtjyH16qyzicjRWYAPpSmW5FYbryWjYIK4yQGFoOKTuh97N cR+ysECyVsL/ZiYE75xOFxt0ivF5eIlLXZUgCcZWsNZA4f9BqEjCQI3b1sKrPL3nfU9XiciIcQl /OpFsYBP+6TxAmY69lEWvbbl058zx2LKhfZpwsHSyIeUlSRyJRY5gNE7UHhNIqiU2vydQ== X-Google-Smtp-Source: AGHT+IGzG/+sNYhVLMvQBtnv9Nm/PRVjLNtlsJ2/nBF9d0SHrnmyN30fgse6/SB8+4QRL8/+oWCMpg== X-Received: by 2002:a05:6402:5201:b0:5d0:bf79:e92e with SMTP id 4fb4d7f45d1cf-5d3be78e220mr4410831a12.6.1733742174501; Mon, 09 Dec 2024 03:02:54 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:53 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:19 +0100 Subject: [PATCH v2 14/19] arm64: dts: qcom: x1e80100: Fix CDSP memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-14-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1319; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=NfgQA/XgYVV5OKpmwdBaDSEA9tYYVgnK+RFM1b7SHis=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs486MXCYyd69c4PabXhYd0fnocDIwwxfVpDP 70dA4FhTnaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOPAAKCRDBN2bmhouD 111ID/9IUZmDIOA3Q471nRYAYEwX/prFc2VkFuOtIYRBLnKcEUO+CgVDNP4RId0OFQ6XIurVH+o rbMfNqQRGzM98eK/a2SoSAPqcT947jpY6jiwdbW1iqLLymRKpRHAtEPD9h3Ygsfnx5hPVxmRw+D 2WjY/riQNlJ/uxk3qzlawDRTDToiQktpZEjyPT0ErClJiC3Vl+hLNUk+fia1+EvbUw66OnFoGEw z7G87+MlfIO3BZSmeol5qA7i3orQeRzxBL5aPR5jpKsdUOEs/RHXyDTBEIok/gViUQB/ZHSR4+j /gwd0vuZPx5JtJawKzeLOEscmwme9eyTArBCS1ILc5ZPParKjeDBFQwaltSjA/zIKBQUtSDxXO3 7qOYRdi2FOjpLeqmfk6EZ3IULYQOxOgnEyiAlbuXLI8gJKOgWFa7h9Tl7wgYf5YJRA97hRHWBfE c6IXqTnZrAun4Dgei1vexKazFZlseRnUoDzVCYBoWlBq8riV0y8J+YoX24kTHU2mdiwh20SK66u NEVHjkkXQWTwBFmzpKmXiQ70xBKcWwH8xk7M/4TWzBUFUiNEfS1QKbypO3aoiRBYakSI8nv7iKr ABXGfzZPwe8aGmQhGaL573Z1DGghMbpdVGjjOLvWQO6DqF9wYnlZQwkPg7vEcogetbrI/sDeEZC ela3APLGxLd+c0A== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in CDSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x1400000 was copied from older DTS, but it does not look accurate at all. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 5f2a9cd4b104 ("arm64: dts: qcom: x1e80100: Add ADSP/CDSP remoteproc nodes") Cc: Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi index 9df6903b5d59aadda26d9e0d4d9f951c5c3add7b..bc2187700ead2f368172040b23e1343cf0895012 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -6458,7 +6458,7 @@ system-cache-controller@25000000 { remoteproc_cdsp: remoteproc@32300000 { compatible = "qcom,x1e80100-cdsp-pas"; - reg = <0 0x32300000 0 0x1400000>; + reg = <0x0 0x32300000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 578 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899303 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5F89221DB1 for ; Mon, 9 Dec 2024 11:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742179; cv=none; b=uQBvknD88haZJ+QBzcQWB29owYkdCaSAo2tnDLMawWZSV0ElXxPATMY3EywCoZ8JMpNJhX2uwuFds5wlIOtHzmq2UriSHfF1mpk+PSVAeCw+y69FUprhZ6L+E4Ts1Vb2FIceF0D/pXQpKO/OaCx679nHB4VlY+rXqcdxkmNaBg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742179; c=relaxed/simple; bh=r5/ThlmtFN/moKPu+XvaE/Ex2NY1JITsfnyJtM0ddII=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V/pjQZX88PmSjdhgW/KH3Kbrxyuesnxt0ptHDL6QUwPAW6d8hdiRr6Xi2LIyqG4nA3+siPXwa6Y93X04FjUM5FNhtzpwW2hCMDyQgb3SA7VLp/zue7o4hoy/w5OXHl6lKSs1nrMG+qaH5tyNrg3q81s1oh9C8MGKSBM+CpnDIe0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Vi8BMF6R; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vi8BMF6R" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5d3be7f663cso345742a12.2 for ; Mon, 09 Dec 2024 03:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742176; x=1734346976; darn=vger.kernel.org; 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=IP8yQKR1WhUpxKJPnM87mHITvQbbTzc6JOmzP4W8lII=; b=Vi8BMF6ReTSxh1IdBtlqJUYtaA1ps4tHURazPHhydueID5UTM4UNQgcSufuizga4gE dAtWXi7Wds+lC2rjdcH4VoeG8ImdVrnEgf7hBELauq+P8mBLAK7j7rogWtPqHy7w+kHx VFA79WYtBVfnRWg+luDkAFzR4FCUke+v0nTt3sF4anj1+gF7xB2jP5S+y3vYOBCmfOmj LuHedHskHjKBYN6yjJYhgV4L4Wd9F/CTUzbly4zAv/dRIfRW9TsPHHyHohE+/uDatESC sSGld098BKdFpDl2ukIcVAwmiynNQM+0PHx6efb09qUzYJKQfQa3SL/ZGbNmOlI/eGDU WDRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742176; x=1734346976; 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=IP8yQKR1WhUpxKJPnM87mHITvQbbTzc6JOmzP4W8lII=; b=Hjpw7AejiF9kRWt9fGOzZRw+rrx07EdCYqi8CQ/6XPTLe4vvWiEIrELllTW3m5CbF0 QYNpLu8BTuUPagJ80e4GhmVh1hy14q2tUyVviVbnYioMrvdOIs4F/X8RLefWKmNhZuXY CylquczLq3m7SyjJgo3/ylMWmfSfBbiqv27pAA+u6O7fGX4JjFhQm5t6Dciue/kuKJ0S mxGrkz9L7XXCSD2SPXH7pVZrB+YOCgxkzmquwQ/0DEWEu+oz+XFDJNrFFkvwhwFSxL2d bauc+1nsqaDTv5ygTRQSKAFX/hggolG6ByN3A/jNTjKRNq3bPEIIyhBis9AqbpcFijQ9 go6w== X-Gm-Message-State: AOJu0YxITInxMJe5RRYlOB8UUYKu6/byIoMqUAsLNkfQ/cPTbu8UEWsM 22UbmZm9EiDp5plF3qO2/r0ae2s97Dv5V0hOx9cL0/MxpAncJMMIE28Fe1rtHws= X-Gm-Gg: ASbGnctDtmJ8eezGBLXPuzFpMEo5ZbARVvpSwIPlcTHBDz9rrDRbPocgKbX+q+KvS5X FoxXUCuXOTSHuI+7vaHe9VIB2StK2fzoBVnOsQ4R1vsB5XzQtlguqCdCCS3hd1Hua7KgqMgxdeZ JXr5WfTa/YWhSyBIqmOuEPWuf2qyco7pOrxB1o95vy6LcYWU8BiXuabauKlwetoB6YoyrnC2Uth KYj7TRqswbrUckeh5ObPGYdPws6v7IartZXdBxVVzDFgioBeU77eM8R0AZ/sJ1Rxw== X-Google-Smtp-Source: AGHT+IGP8iom8b2OxTi+0VyD5ACVJhObC8JwCvkhyDuCR3gfyLVoHdCsGicvgS9K0YXCAjjegLztQQ== X-Received: by 2002:a05:6402:2812:b0:5d0:bcdd:ff9b with SMTP id 4fb4d7f45d1cf-5d3be76acb5mr3414088a12.9.1733742176022; Mon, 09 Dec 2024 03:02:56 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:55 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:20 +0100 Subject: [PATCH v2 15/19] arm64: dts: qcom: sm6350: Fix ADSP memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-15-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1214; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=r5/ThlmtFN/moKPu+XvaE/Ex2NY1JITsfnyJtM0ddII=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs49lFX9xfy08AOs5f8lY73l9YA/j9k2TRBf9 7hb2CsBDB+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOPQAKCRDBN2bmhouD 10L/D/oCQfeFgnQS7eTuQBhmCGRjKVEjSIfV6xxOiz2XN/gK6fmtrhPyhOA8JyyTD2h9475iwgJ 025RBneq4dBZfbZQQsFaD9G4PMkW7NhWLF/TAObwQ+czWMoFgszZzEvJgEwaVfDaTYZ9jBYiHBX mbLNFGoTY8CBOTtJLtwO0uHbGSK7erDv2wqNyDaxSuHj2bD/iyT8PqQOIV+McF1Xmgd73/1VKYE wV8a2VcB5T8TcXC+WyonhPb3l3cVREcJhzS/znkffZ3w4LV6zLr0RABvnmOeNmIuw0x1CopXc5H nbHE1M/V04mqgobr+8ImKXRQrDbbGPJA128hMsriK7x5Pfr43j0APBco0/y4Q8tkUpcXPnk99Cr 4sIHGh/T2kVFGzHUekpOxQJF3OrL1XNORY8bDXR/1dy3h05/bZbHS2DUXuwY5U4ZzoLqN9ZZpD3 p1uCafetuEffmdxNVdHan0DtmEyl9ASwy3Q/x6GXpQPLrGkRxIP/xc8pbOZ63a5PuTlIvXzlRn4 tvNyFAGU2y+l0eX9Kl1Pii6kzoYrFFGwgFfJyjzwgeXbwzEGQRJUPSad4e/W5Er7IKNVxnf5luM 4OtHY1HwnhaAz03CM7usFlB4ZTY4zx0m1GTprRxlGMeXEPuxI4U/0/Jb0dTbG4N61KDSS2zAYtD F4g1+CXEh7ToKZg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: efc33c969f23 ("arm64: dts: qcom: sm6350: Add ADSP nodes") Cc: stable@vger.kernel.org Tested-by: Luca Weiss Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 8d697280249fefcc62ab0848e949b5509deb32a6..3df506c2745ea27f956ef7d7a4b5fbaf6285c428 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1283,7 +1283,7 @@ tcsr_mutex: hwlock@1f40000 { adsp: remoteproc@3000000 { compatible = "qcom,sm6350-adsp-pas"; - reg = <0 0x03000000 0 0x100>; + reg = <0x0 0x03000000 0x0 0x10000>; interrupts-extended = <&pdc 6 IRQ_TYPE_EDGE_RISING>, <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899304 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50C3F2236F6 for ; Mon, 9 Dec 2024 11:02:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742182; cv=none; b=Ane3bTQcRsGGJyajcecUCbk52s/ha8RsB57RQFG9RMWTHWgq84nLsEWiRqc7NdPzPRzGAj5hoxOg5hZryqVzs4ai2R0XJkxq2BFtZ27vVuhY98SLXa5/WgxloyJCgE+czdqVuUNsTlO8lY/hZZIbEbSiy0mAYKBZ6AolcmCznG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742182; c=relaxed/simple; bh=KNZAbjmVONlwWaLzG4pKciOZsI12f8QX5famGIgKN4s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pE2kXctdFOqngXYybQMqB8bBgJbXQhYroDU+xwYb7lgj4pQODrr06zW9VEgVR8/eZ59QVaFqLBL8h/CY8YhUqrrbsTI4GncV2di+FmghFLFWaexfq9sie1GB/anRXe1qKmItHrGtheFDOP+vMJVVkZ/a8HICFkRfooZ9gNNpQEQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=D69ceDVl; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="D69ceDVl" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-aa551d5dd72so76836966b.3 for ; Mon, 09 Dec 2024 03:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742177; x=1734346977; darn=vger.kernel.org; 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=QAaVRwVOSTNlQl4wGWGQTJ+u4VaoEY9iNcXW/N9EBYU=; b=D69ceDVlrj0Hb2usuqW+BgelxANFJZBKe26UFx8jxdrcy4dJ/j7OhxU9t/S0iU5jz7 v1cYM95ex96WsrrZiYKTRFO9J4rlZFkz6UbcA6kV9ic0hYmCtUmTBweKIcicX1VMZwdK qNerzb5ocRI12H2Inr4QK0KaLwbow0k8X8yQ0OeO0U0vD62/PBEH/2kFTd6JyfGepNml iHKpIfQPycTjGmIK6doKM/VFcYB6NgnCVXrV8794l+IAN889XeJtcDzrCFM1RQuv3b8X VQPdxJL2Dvbax4yZRZjDpH/iBR+jacA0S6jpoeFHenBd7yFrvBYbCNqoEgtDYO3Wputz y2iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742177; x=1734346977; 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=QAaVRwVOSTNlQl4wGWGQTJ+u4VaoEY9iNcXW/N9EBYU=; b=rwFf6WgrnAxAEWfaZQ1+4rSVQThE1AIRPwB5xChZSkH8FQh2KdefndhRWLsTgdI0dZ vcvklnm3NUyTlA61A1f74YlUqJNe/WCYFqZ0U5ZD9JqREqk1Eqi/Hjh3URvMl51jDBIk o833/vGs+84by9ZIGsH1SIvzK89DcvfXn04XLjeKmagwn/kFSJvvVO7sB1k/IBStxIXb l12wtersQlFqIvcdP7kW9j93RNvATQY0tFvcnViDIRCpz2kbOkEjxtoRxqdA+KGbr6gc ncednUD+jWo1Mi8AEUqB9TWG/NmHOXt8vYJOf/War/zY094sXsMHGYcZ39WGdDIiWwyT b+mQ== X-Gm-Message-State: AOJu0YwnLI75uq/iftXadycrpCnpgBKRJnTEqYi8GFCS+bghZY6eloq2 BmTByUX2O31kz7mbwhvgwmuHZqvUcZqYT44wOJNLspjnoDjuinVCc9oTNuFJGkg= X-Gm-Gg: ASbGncvh7iOYIqXi8H+wWPGfWoyU7y5mJ0xfJuWCnCHMiEKwN/UisL1i/pyxslOrNtm dbx4CVrLzDF9EGhc2DHOvO8srcdRMSXzqW1Q9BhY/5YYH4HHKdF/8XJ2vDp+Gdvs/qe+b+zHrik JKMnCTmFuGMzxNcZqYe0rSBrhDSSpXuWa/542+hbHwv1DkE9bNw1NcSLq7UTxFbgBHra0wdfAme p7P5flj9sdL0aAoORPLh13UgSQ5n4uuPOGZfgBovtbPKoRZG8Pz4gykmtWtNoCg6YoMxw== X-Google-Smtp-Source: AGHT+IFsh0IW4nVrVem66RNZuyFbrM3YfAFlvCILgj28pLdq3AkrGuyNbqWT9+sMesCAjx85bwbB+w== X-Received: by 2002:a05:6402:849:b0:5cf:ca6e:400d with SMTP id 4fb4d7f45d1cf-5d3be69a983mr4023479a12.3.1733742177555; Mon, 09 Dec 2024 03:02:57 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:57 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:21 +0100 Subject: [PATCH v2 16/19] arm64: dts: qcom: sm6350: Fix MPSS memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-16-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1249; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=KNZAbjmVONlwWaLzG4pKciOZsI12f8QX5famGIgKN4s=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs4+BohC3aei1nVmhWl5xl8DDIChkIexXA1wx sWvfaQ4HB2JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOPgAKCRDBN2bmhouD 1/50D/4ribLsjmgHdAPHMj+++vUUCZGI385wfyv6nbt13SqwY0Kwp+WqcC6R/1H7Ez/LCdhLN/9 aAASrCx3ezkzMG68dTDi+b4MDW7XeWa8H5v7U07TO2li6xWLAUUVopfIGIVIlBn72Eaz+eeogzP nRgzRVzGt04OLDOYyE3orpGpr5/r+0Cl1YeHPhDC/el6Y8wBp1ETXXu+z5uVS4CsFnXcNkFNH81 XsW7+XEXo1pC10klyML9bmawd5xz3PNNH2GqVeVIGzIUbRDbpA7XwzI9Ro8+GMWv2DKyLQUjE88 uS+VrNFbcAHLIOMqM7K61Ix7Xvnq0ob5dcTYM+aqz06os8QhIumGPdd3Ajegz3cGO/tHCpcnzqy IKSh/40NA68pgB6XC/pxzMlRcNaFWawkktkVX8hbW3TnsMpWnQ+yYAHg6V9FXRcBChPCj0FQxCU qSMOwzgUfal+qQqIUxTCERNDg2OUW1rF4NWInaqEmTCd8m+awhuz+lpLmf2RVSMaDU9K8ArA6MX 0S5dgH6Bs8K+R4pQzd7NjT9e30DM/wBa69EOAulQEXoggBEfTTDIYH4lcPxWj9yyqDvmEgvJOax 278y/YbypFscvzP04/Mq/YGu7/huS8cKh0KmQ77Aadollgwse1mryLpotlEFJjbuLZ3W3R+y5kG b0NIR+FfDg+KIXg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in MPSS/Modem PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. Value of 0x4040 was copied from older DTS, but it grew since then. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Cc: stable@vger.kernel.org Tested-by: Luca Weiss Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 3df506c2745ea27f956ef7d7a4b5fbaf6285c428..64b9602c912c970b49f57e7f2b3d557c44717d38 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1503,7 +1503,7 @@ gpucc: clock-controller@3d90000 { mpss: remoteproc@4080000 { compatible = "qcom,sm6350-mpss-pas"; - reg = <0x0 0x04080000 0x0 0x4040>; + reg = <0x0 0x04080000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 136 IRQ_TYPE_EDGE_RISING>, <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899305 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF138221461 for ; Mon, 9 Dec 2024 11:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742182; cv=none; b=ZZ24kNSTocaSaY3qZZUoKk+1GldPn70uJd8w7jvmPvn+Q15ER9LSH9C5sKcdB23s9geOsgcFbOHoXOA4dLE55ghhiEO98upQQBQkGjcI68sk+xNT4LGqJFkP2Fg04ZCBFibq3BXudRwHOxVBX2SzVkBzKWu6t3weKB0cyFfAO3w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742182; c=relaxed/simple; bh=kkscAfqjZ1iO8Mt1cf8ePp07BRkZZiJewMrsa6+GGrY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=icqODKG39bpH9dlbK7x+YvXMsBDXD2/E3jH912BbzFdzJiII8I0W0rap0KsTnq9j2AvH7AfkZbBlPKko+usV8PO52zE+zRYgmQd9YMvaz2Wj0qKeQeLoMISOgo55fModkcq9Ov9o53sSQaJTnIlCBSEdfvI1SqRNMybrlO22iZI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iotEnwaz; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iotEnwaz" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5d3e5c225aaso246970a12.3 for ; Mon, 09 Dec 2024 03:03:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742179; x=1734346979; darn=vger.kernel.org; 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=6BnGnc4auB4BfoL4yYa22p83zP4f8oOwWvOviDPs2/c=; b=iotEnwazDox6w2q+/mBEWG53COFiKt5MYREZK/LRtvThJX3ma/5xg/jUh+S7wv0/u6 et0x9LJ4Ni1PymxX21HyC/55RXo1WwCg5/p9NMZzGFGPlGy2N/MWYS8esvky/LOpLOw+ w9Qy8rign3LFfApqNbKplY4fbKWakfvS/a1990haFhAFGQKps2SMftBoGvwvbCYlKuwO ZbRScHKWGJoqpDbCI7a6A8kIJPSD2J07oEL96A1z/yuOFdyWCoC59C3gC44HER3PV6mo XYosGF9oFvL4zNFSg5EgSZrodqeCoGTb7TdQfbnVelDaxglZtf92WCb4CE9JU//ZM3mK wwwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742179; x=1734346979; 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=6BnGnc4auB4BfoL4yYa22p83zP4f8oOwWvOviDPs2/c=; b=qqWM8iembmtE4QRNEWz+gD1hiBBUJIf+TciPecvolDVCGac7/38dKyg8bCfolFguJG QNvNibmAK52x2JJTHwV/Fm+egF7NwwZGfO1lZxOuR49y1cyFq1Z7ZMDZsE9tBx4QILgw fEu/5Zfu2hNRYhW26pA7UH42qwZrAvAZjT8EQ7IQIMq5S5Je2QTSct/JvW6Y1JDkUXGr KapjYM6e1SbubKDZ4aVKI8PNy694uYi9EBuKI1TGwy4dxgakyDST388wZXz25ntAh1JQ rlaCH6YOKpiXi52ViKimzVF8cc0ZDb+WCW9osXNIpiPaymI7nyEpwkmyxWvY11LIZqK1 C/ew== X-Gm-Message-State: AOJu0YwIoKWVKw/snbbGQtlG5SAByKMKnl3wzqgSsL3A5tIfcEbhhH56 BKO3OSpNEqsLmbzivjmT6pH8g6EQ+6MCUplJImwF0WYWu2D0xtGGqdIBqlZner8= X-Gm-Gg: ASbGnctnlys1mynszLZ7Cz1Yqav8F6SMc6PBE6ePjlNmQqCV4nIi7oSoOgP+asfI1eU cV+NV9bYcmkZW+pTrW7LUWzC+EAVtIQpEyb77m+WefKhcBWLGKNmaAW60x+Q2Hoxd3+6b8O3tX/ umvwt6W8vQ3w4ioEErDNRAO3jq5ZBx2tq2T2vhBIOi31BJcvkWs11WdU8AfRRQ3f7nZ2cxLe8bF otSuzg/tT7iMBzcpSetzGg3g4xYAbRQ1EGc1ocjKu+iIZRHrNtq4mzsWQFesSTlZ723Cg== X-Google-Smtp-Source: AGHT+IH7EELxQs80QyCSuZaavUzpWJcBmhXoqeXIuQsmrPemkzCku7T+TORlq3iIC82ob4ryxScjnQ== X-Received: by 2002:a05:6402:1ed2:b0:5d0:bb73:4947 with SMTP id 4fb4d7f45d1cf-5d3be4617d1mr4584309a12.0.1733742179153; Mon, 09 Dec 2024 03:02:59 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:02:58 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:22 +0100 Subject: [PATCH RFT v2 17/19] arm64: dts: qcom: sm6375: Fix ADSP memory length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-17-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1182; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=kkscAfqjZ1iO8Mt1cf8ePp07BRkZZiJewMrsa6+GGrY=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs4/2Aghy4pKChxm/UqJrFPMv3acSQKLaaiCM QjRhALTJOiJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOPwAKCRDBN2bmhouD 1+wUD/0aBKf9pV9+46CJ+CPEUH0MqSz+4dJK3ZLuYaXKUcYmNJQ08hBsC8TPagO+wdK6rNSptnh PNYMso0GEmS1gSvqsBOkzI21xz0TZUHlzo6JDEaXMx3IYrVWHzzHJOU1xX1qm6YS2AOMX7FFqhm AXyKBVv/SWtZFbJum2MDPTGlYYmB1ST/P6IVQnSdWsZCuP+EwhvkJp3ij3f312kszVccgTbaSOK F7zvI7QaARG2DafRJne5f2wZd/H75IWQ0s7bRgO+j3eg1bT3UiKAJR7SmJubYh++utmm5ofjSTM 7Y9/UR//dW4zWwH/4X+bDuq7+Cod1qt5BVEUwwqCuyGu3rKmGFbf1dVQ7UevR4/VcrNM/6oSoeL Ce7CxwlsNcDnkEVM7EQdfx4zJC+ZiofULuMWyUdC06mcu6wuuLAV6Pp+oP5qUcpbKpdrbhxmwKL A0TxdqFR9cxP7QtUvOxKEU+6i/pJpxbKRZwgdpxlbFd3vl/bTGjGV3W+M/Vz+NIGSbSva+gq35n MFopqkCcLNcaMKLKYBVqYtQsAvnlSk7qlx4iCvbqSKArgv6AH83+zdo2nY75t6eZ1QDlcPivv0k e17U0Ds/Mj5ZFqLNYhNikSbD9FKK8vwiOfGby436Vo/nzvOIKcESrYeQJzDPSTiuv+lhXkcsEfY UnP/1+l/R5p606A== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in ADSP (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB) which has a length of 0x10000. This should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: fe6fd26aeddf ("arm64: dts: qcom: sm6375: Add ADSP&CDSP") Cc: Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index e0b1c54e98c0e8d244b5f658eaee2af5001c3855..613319021238a1fec44660cd9740a980edeb3f10 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1559,7 +1559,7 @@ IPCC_MPROC_SIGNAL_GLINK_QMP remoteproc_adsp: remoteproc@a400000 { compatible = "qcom,sm6375-adsp-pas"; - reg = <0 0x0a400000 0 0x100>; + reg = <0 0x0a400000 0 0x10000>; interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_EDGE_RISING>, <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899306 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8381C224889 for ; Mon, 9 Dec 2024 11:03:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742184; cv=none; b=bm62n4+3AY4297y9jfRyoSThs/GGKVPygmsVfmtfCWN/tYKiSJ2i/9Ryk31kpqRIBRoBf/xTGFAJkp6QiIUk8iswM5X0sVVvp/xDd9tVxqEutn9KX/yoy7EHOTFJy7B6JVsSVI0gou7MDt9xBpTvehDqUP2JbI+Dr5BxJYCcsB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742184; c=relaxed/simple; bh=4XlWKfnmTuQGxdgudvxQgYEWyzNKQNtSzL8TC+5d//c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QzOuUDPHvVIIqnZ3F+75c79Dqqx1P+2jruNHw2AK1F4rhFKnE8r8+WNN56C4j5vHrU2I36Thx0lbgWBgIKyFCYWJzOpPqFm9bfzGhiaVhQbU5DtvrXK+mdM5W6EZdkLCJCJjMkV0CFgsBPDhcO2P9tgqUvSb/Qw17qMsbo44DmE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=lkkjC5Ag; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lkkjC5Ag" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5d3d69e5b63so237656a12.1 for ; Mon, 09 Dec 2024 03:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742181; x=1734346981; darn=vger.kernel.org; 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=iO10RQLOSphsKOuYcR9GWLEZ5zCmIXSgPjuSN5APqZ4=; b=lkkjC5Ag0jbUhSERZZmqcC6SWoKL+6PHipm88qHVSAaFLqHsvcWPJ3M2sVsS0sKCCy fjpS4fpfx7jUQddduj7lSshrJdJANYLFFbextnyusjZbofihNyFH7cJ65vf1XsW4YTpb 0oFhM0KdaNCongvn8sJH8C1M7yozQ5AT9QIVWReCAXeOLgBxYGeoqXJQ3Us/HxCbF7tB s7exTVhzkw1mtBVWCE2NttU5x0bYhj8FYTbwmY+zwD7QlCTha0jPKhXk4RRPmfPPsj8y CAAYIL8bNg7eoKwUFStSgU2mapgPpN0g8ES+9VJkPhk7Ta435FrUDr8JXwvBOb1JZOw7 PBuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742181; x=1734346981; 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=iO10RQLOSphsKOuYcR9GWLEZ5zCmIXSgPjuSN5APqZ4=; b=ZuwmQGHKVO65ezIHFc+RchpOeFpDs9MuzB6nuMil6q8jLNeZs9EYb03ZkTIYSi9IfW 6OV9FS1A/9MMwDgQNNGYA3BGs3FWCUSvYq/7WZ5MG/608MnupJR86lCj23TY+1VZy+Dd b2kowsFXbpYuIisq+QhkiQK9Q7nl935Bt5+xTzRgiTH0gvtCrTB02t5yzuL9SeZTkJRc kDKO2yDgJ3FLA2WBfEOPtKL6ls+1gLvQx7kiTmCRu2F8av4upt5821qyn906+TGS6uAN YVtPLq6JXRD/k+F0AH5+exBEaiRBF1gokeaiRsoNWT6pUAVRX3DE24+J+xVajpyPlkKV li6g== X-Gm-Message-State: AOJu0YzzlMRp9aiPHOq2DGBhx8VulL9w0lQ74HVHjTorE4gBBRlDD5Nt fmmiRs6GBv4GLzOW//oisDBNAq5c+RhdR5KqUjkxvmpXnyenvCe8AdXvAg/tk+Y= X-Gm-Gg: ASbGnctNzOzVmbYA40n1Dgiz/vIkazqwkwMeb0L4LJ38zIlMdnbLQD5Ybe9jtRwh6I0 Q+9stx+QDFY04T4sU0VgTMlDhrptC4tanzvSddmnq9waVC6DKcda+R3IbV1T46FNjC3kcEYtzHg 7593r2T8ifmNGOz9VzRc0+nf+FFwee2Vh3OqRH+K7iTVFKANWjGezlZeb1lxru26mRin2nQuSFZ coMIRhUtHWSypZ+7H3v6HClCW0UsarV0PBG55UTI5A8cFAaaGQUwA1ILDc0sPbplh9geA== X-Google-Smtp-Source: AGHT+IGTKUyVMkZZQjm0ZGOlK69kN2hUTOh5jSmXUGkwEm7ZVU+d77oHHis3027HKrrb7SAar2BPUA== X-Received: by 2002:a05:6402:3582:b0:5d0:ccec:8518 with SMTP id 4fb4d7f45d1cf-5d3be7e0602mr3804349a12.8.1733742180996; Mon, 09 Dec 2024 03:03:00 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:03:00 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:23 +0100 Subject: [PATCH RFT v2 18/19] arm64: dts: qcom: sm6375: Fix CDSP memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-18-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1366; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=4XlWKfnmTuQGxdgudvxQgYEWyzNKQNtSzL8TC+5d//c=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs5AH4n+BcnC5uSC4tp5h4tTcw6PTtNt2DFg8 xY8XPun31mJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOQAAKCRDBN2bmhouD 14JZD/9j/zwkn0KuAfwaXlC59qX9Q/IGsAyn1FEfTh7iv68YR2FICp0Is0WL6Q7cFo+LdfxcSy7 lr+IibYVGUr1NTc7utk+7Aie7byNZkE/2TRNoeNEzv8BojV4WMoGedtBZ9qDX5XWzTS2gt5dtux jnitLKQZej0W33l636WyfkleIneFFNwLKNZFloWFk1nADB+BLd8wgrm02leFfO3zV+t60e5htz9 38TtYKCwNPKc+N4n8vyCrGILG82+h/EPjcjc1FlgCXqP3S9DvPHPdcfuspLpO/ar7TckKmSG2e8 8h5IZUSIrpCvLdGsW8gH4qmB9eCDx6npULo4XmqOgJGolJz1wZ3kJqBq0oU1MVvtVd7UvzmXwOJ r6cJdd71dpuGjQltHvgsxDDo4UiroG40UYGQcgn2Ishh24CtKLZ1aU9Px8k6vmMuFPGWWbmWlVi ET+IP8cRc+f2TgU6Bp1lXRsPWymuy9vR8brFwTGjYpW0wOT1gd13abqeyJl9MWBC5Iif7hf0Puk CeiXk3w49M8HonoX50t0rJesXJDE5PmKx3NZD79Y5U/UC3HQLIPPfmJVtOnAK1X+GXOdtMGUYl+ F8XENCaJLDUZpdTAP0/LhxULwfyieRYfId593EyFabDwv+8GkmsZ9FXL+NJAIt4G/uF+eG4grQE ImUqaVNhrUyQEiA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in CDSP PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0b30_0000 with length of 0x10000. 0x0b00_0000, value used so far, is the main region of CDSP. Correct the base address and length, which should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: fe6fd26aeddf ("arm64: dts: qcom: sm6375: Add ADSP&CDSP") Cc: Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 613319021238a1fec44660cd9740a980edeb3f10..bb6511cb451b1c45ed2669f208fe3ed00848b481 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1595,9 +1595,9 @@ IPCC_MPROC_SIGNAL_GLINK_QMP }; }; - remoteproc_cdsp: remoteproc@b000000 { + remoteproc_cdsp: remoteproc@b300000 { compatible = "qcom,sm6375-cdsp-pas"; - reg = <0x0 0x0b000000 0x0 0x100000>; + reg = <0x0 0x0b300000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 265 IRQ_TYPE_EDGE_RISING>, <&smp2p_cdsp_in 0 IRQ_TYPE_EDGE_RISING>, From patchwork Mon Dec 9 11:02:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899307 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B6852248AE for ; Mon, 9 Dec 2024 11:03:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742186; cv=none; b=GbGGal5qXieSYdNG5LQeDlYMRiL7wEFfhnmoWkMfORXK5Qh9wpp6FT0aA8dVL1EbHtbcYfQnSU7Qta6Gc3zb5TgUsCW6xEIQKTX5ae4WHECfy9CAwQKd3ALq/H5JrtGsdMcmjQ95LxXX1oGzxBJv/fnlS7gbmfahaNLWETgpc9A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742186; c=relaxed/simple; bh=TbHlMdWDbh+udm1eEV5kveS9te5ak6OhnhlUSegMb6E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JxvituBbnJXJ3mLn2Bxa+2xPLQg1WKOB8HyzlUBYQO2nkgmbgBgzA2Fs0S0AJuqQcuccMCozb9C7MS7IcOFh94UnRr+tYY9cV+RV+aBthxzOUe2VA8d3X/l90eBbFoeS3FgKnwN5WCIi8CpYudsqOscjWx+DEgI1U+fBfCRfqdQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Wn8wWw4m; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Wn8wWw4m" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5d3c1f68ef1so493024a12.1 for ; Mon, 09 Dec 2024 03:03:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733742182; x=1734346982; darn=vger.kernel.org; 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=1PGh5NFsA/7r2mvIfUSdrK5+hBRX+q+43rwMtzht8l8=; b=Wn8wWw4m2qrFNCRR16mQy1qh44BcTny9iYLd+3z3QNhB+rxNQEZBfcGm2t3rtzxi4P QK1GegbBgb93p6b2SXoi8fygHvuch34d6r3LgRxVvTfdYHtAxnQqgWncsUgM5H2XaIwE 8qIvGl3FXOQFiPS2lNYPRuM9g+K56A39A1U4ktSC2sfljq12bRSE8iM7112iND5aLj5G Ha5Oq9hlt80r/9ymrupe0qorejMpOW4maXJTep5Tdpuz9TrvpswlSLvx6D8dzxDGUc9D LLqK3qa9Dz1Yvvr78dO6z8N5xh8TPJQJvnYxZBtrJM95Oi5uoMh+x6aulGYRyqez9vL8 KvXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733742182; x=1734346982; 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=1PGh5NFsA/7r2mvIfUSdrK5+hBRX+q+43rwMtzht8l8=; b=rcJwJheNAOyq5r8Wz5XXaVlHTvbNpF9xYTBKTbJCJUJmdsvu0SKdBBGr6p3+gZQc09 U4Q22ctfOOMgeUz90t9RFPZAsNnnjjuoqwC53wO8JmXV1+T7V5roUlZca7rhr5NDxkNS aoFDckh6sb+8oV2rpKiTEnocCZD76pLcVqeM+sNwNQOi8nosHNGRRoXFqJ7zyLjLJhU9 Z4ELHjYAAKgrWBC8NXR/NobZr2nS5o+rlQUENYYWyOmm59kuQm+s2HDUuiDf6R0cwJHp n6lgKMGQ573jlVM5PwkmJoC2/Cxod001OfMp2Obf49QuSZlV0bExhpcHz4Q8ub9DK2Wo qwhQ== X-Gm-Message-State: AOJu0YwxsSfts/skqm0UK1Gjnia0sOTCBFhO43vpn6wOMZg2hT3wqTfG +tygoizh1il1V1sHN0+O9IWS1Cbz2/DPhfo6VERYYkef0dVpQ6yBj3ToZFaOngo= X-Gm-Gg: ASbGnctznNuNWyW8gd/BHWx6WbBrSM+heicfN0y5idriTPocDdgg1k74uu8vbX+RVbf jjTNlq7yfAd5pmn+DCYv+AxUraZes+/Y9ZHwiHJ8KOXqfguYnQkWjBi9VrPxFmysuNzS1Nf8tmu EhlDNbsjHgFE9AEi3Gevi8QmmEF1hzmkAh/7obtAtQ3nF3BKoQbraaVxDwVIq4kvj54LKdmH3po TIwQBCB6hOFqP9c4De/XZl744ReZ7VvcZCrSEIQpxcPbNC6lkrhsxTWd1Zm3B2i7oqwBg== X-Google-Smtp-Source: AGHT+IGw0l10v67XPvkXru8OIXevsMlvVUgDms89p6OtDUU2h8ORgTmYOVeKloxOyTlF3+4Cu2aHBQ== X-Received: by 2002:a05:6402:354c:b0:5d0:b7c5:c40b with SMTP id 4fb4d7f45d1cf-5d3be69548fmr4369394a12.1.1733742182618; Mon, 09 Dec 2024 03:03:02 -0800 (PST) Received: from [127.0.1.1] ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d3dd4f641bsm3348818a12.51.2024.12.09.03.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 03:03:02 -0800 (PST) From: Krzysztof Kozlowski Date: Mon, 09 Dec 2024 12:02:24 +0100 Subject: [PATCH RFT v2 19/19] arm64: dts: qcom: sm6375: Fix MPSS memory base and length Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-dts-qcom-cdsp-mpss-base-address-v2-19-d85a3bd5cced@linaro.org> References: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> In-Reply-To: <20241209-dts-qcom-cdsp-mpss-base-address-v2-0-d85a3bd5cced@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , Sibi Sankar , Luca Weiss Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1398; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=TbHlMdWDbh+udm1eEV5kveS9te5ak6OhnhlUSegMb6E=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBnVs5Bb6MMUcJ3WfYJjdjsnRNK8167vZP1hJo9t tvDdqIoRHOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZ1bOQQAKCRDBN2bmhouD 13zfD/9A/D2AzS9QGRSBH4WcIoQyCbtF8SM0XMszV/F9V3RYn2a2EM7lzOnys0rTACGxQs8mflK Oi+egBL/s57oFcyvRI+Pb4OfGn2IhGrP66pWdvmRN1OXpM9EqBtHox4aG1z1kQDqlZHuCXIwdVG OauuBM+hHzn0zkUfsuzVlRIFgF6YL4A21F4SDvEC6oDnbzPV2qsnSDtzHG1TXkNlFAho6HD7IJK ToEJmNfnEfuoqtnJCRUGeCh9Ua60ClRU60GULCD4RqDbFEEsrKWgu5x8RRtQEWskWcQ9gdc7NAk E8TDpzmfDPoxyQ34w8HJ4Ik7f3VpxpxZ8ni+r6jomhpZYG2yf5nM1SY9XCbNEGNJQeardcJdVxo h3fjb2/O9fAVEIpZG+n2wJqqjN0wl2XyKT8tc6M08ASAXE4FqzI51F19pJdMfTFicSYscQ0Or6t B45kf8jn9WLsOniPBkWRo3axewIlliKLvqNnvR36b2tPZEI7L6qkwUmHvepnfiXoDrTckcq6Yb2 SjfEDozyPshkVt22hxP+9aZxJIN29H5nA+l4nZRB0WzWz3Jka5oI9ih2SHjWlrncHEhs8JfzCPs jOG7YWC1ThMpDCfKUDKQv74ryswdssMDv6ZUAlVFRgcBBox1Msm5szqnBFFrpSxI6v+iHLmjUra 9MJYiQ262f/imTg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B The address space in MPSS/Modem PAS (Peripheral Authentication Service) remoteproc node should point to the QDSP PUB address space (QDSP6...SS_PUB): 0x0608_0000 with length of 0x10000. 0x0600_0000, value used so far, is the main region of Modem. Correct the base address and length, which should have no functional impact on Linux users, because PAS loader does not use this address space at all. Fixes: 31cc61104f68 ("arm64: dts: qcom: sm6375: Add modem nodes") Cc: Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm6375.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index bb6511cb451b1c45ed2669f208fe3ed00848b481..4f1d4b233697005aa48dbf80700fb28980d88cc8 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1516,9 +1516,9 @@ gpucc: clock-controller@5990000 { #power-domain-cells = <1>; }; - remoteproc_mss: remoteproc@6000000 { + remoteproc_mss: remoteproc@6080000 { compatible = "qcom,sm6375-mpss-pas"; - reg = <0 0x06000000 0 0x4040>; + reg = <0x0 0x06080000 0x0 0x10000>; interrupts-extended = <&intc GIC_SPI 307 IRQ_TYPE_EDGE_RISING>, <&smp2p_modem_in 0 IRQ_TYPE_EDGE_RISING>,