From patchwork Sun Jun 15 20:35:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= X-Patchwork-Id: 896643 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4BD426AA91; Sun, 15 Jun 2025 20:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750019750; cv=none; b=SH5wP/vvxSKEomSFzdHRSxi0k/k/YD+zWhDWlkTSO6z4wJHhnaLnbwEMi5HQ5UNnUsd2IGxN9RVrUcf33lTgLqSiaUHKDJtZewYwlVQ/oP14OZJN7WQOSmMBXUEwc7u2tXpaC7lLbHu+vCthCv99A27/2iG9VjkLhQvD8s7cpCY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750019750; c=relaxed/simple; bh=egU0n+65roSHxWhTVtVk29C1nXnroRGzUZWjFXyLw1s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uwAnUvG+vpb9UtM4qf+4aXNXmgXtxWRehHsANTj4+8FNYk15xwGC4t2hJCw7ewI3Cosz9+hklqpQFGomRWQRXK8dCwgrre3DqQnI40h40NuNFuXQGGj5KMdfh1YN69/23CxNkj6EHOJmc4N5922W53I5yW6ATBxa2dUlYrG/1QA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=O/NUABMp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="O/NUABMp" Received: by smtp.kernel.org (Postfix) with ESMTPS id 681ECC4CEEE; Sun, 15 Jun 2025 20:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750019749; bh=egU0n+65roSHxWhTVtVk29C1nXnroRGzUZWjFXyLw1s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=O/NUABMpeNrOXSBVVP0pcrWe+9NTGnuiKsvmb+NgdkGl1CTXBCoNA4OQGOk4YDPW6 jAmjJeihcVeYFIFHY/ES+whREJPmXKiYXNeOcUTZkzJA8+ASY1LIWkaQD6n+xXNC4A Nfru2TcMaPTtR8Ziix/RfQwjdtp7S8YvgPLSKxp1tQbsUJ69tsQ5C7EpBteIC75a+h vhsAU3b0TJWPsAp6qFLrHIKCSkQWB2c4QCtMdEVVuAntwB+ueI0RYvT4qXwXxjy1xq YSqtagETZ0j0oJOTuN6lFzFQfuhj9lfOMl4KaZPkHyM9mfvXLz5aabMGZk/hhfOmTK l9v6r8sl3wMqw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4986AC71150; Sun, 15 Jun 2025 20:35:49 +0000 (UTC) From: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= Date: Sun, 15 Jun 2025 22:35:03 +0200 Subject: [PATCH v2 1/4] arm64: dts: qcom: msm8976: Make blsp_dma controlled-remotely Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250615-bqx5plus-v2-1-72b45c84237d@apitzsch.eu> References: <20250615-bqx5plus-v2-0-72b45c84237d@apitzsch.eu> In-Reply-To: <20250615-bqx5plus-v2-0-72b45c84237d@apitzsch.eu> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?Andr=C3=A9?= =?utf-8?q?_Apitzsch?= , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1750019747; l=1769; i=git@apitzsch.eu; s=20240325; h=from:subject:message-id; bh=tou8+NFaKkVAfh9dyXrj9kZqM4iUPndfWaC+WwSYyHc=; b=4Xmoe6/myYB3cYhDeLzNJWgowocjQ8LtNC6kZwXhFxmvB1UuR2G5bjZxqiy+Z3DEC2Xbfb00A TAvF9S8o3inBADxfUyOLYNniIVRlim3HbM2AMDILVpiMAmZuCTFZnLF X-Developer-Key: i=git@apitzsch.eu; a=ed25519; pk=wxovcZRfvNYBMcTw4QFFtNEP4qv39gnBfnfyImXZxiU= X-Endpoint-Received: by B4 Relay for git@apitzsch.eu/20240325 with auth_id=142 X-Original-From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Reply-To: git@apitzsch.eu From: André Apitzsch The blsp_dma controller is shared between the different subsystems, which is why it is already initialized by the firmware. We should not reinitialize it from Linux to avoid potential other users of the DMA engine to misbehave. In mainline this can be described using the "qcom,controlled-remotely" property. In the downstream/vendor kernel from Qualcomm there is an opposite "qcom,managed-locally" property. This property is *not* set for the qcom,sps-dma@7884000 and qcom,sps-dma@7ac4000 [1] so adding "qcom,controlled-remotely" upstream matches the behavior of the downstream/vendor kernel. Adding this fixes booting Longcheer L9360. [1]: https://git.codelinaro.org/clo/la/kernel/msm-3.10/-/blob/LA.BR.1.3.7.c26/arch/arm/boot/dts/qcom/msm8976.dtsi#L1149-1163 Fixes: 0484d3ce0902 ("arm64: dts: qcom: Add DTS for MSM8976 and MSM8956 SoCs") Reviewed-by: Konrad Dybcio Signed-off-by: André Apitzsch --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index e2ac2fd6882fcf47e846a92d45e0fcb9beba633a..2a30246384700dac2ec868c6f371248cfcc643fc 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -1331,6 +1331,7 @@ blsp1_dma: dma-controller@7884000 { clock-names = "bam_clk"; #dma-cells = <1>; qcom,ee = <0>; + qcom,controlled-remotely; }; blsp1_uart1: serial@78af000 { @@ -1451,6 +1452,7 @@ blsp2_dma: dma-controller@7ac4000 { clock-names = "bam_clk"; #dma-cells = <1>; qcom,ee = <0>; + qcom,controlled-remotely; }; blsp2_uart2: serial@7af0000 {