Message ID | 20250212-bam-dma-fixes-v1-3-f560889e65d8@linaro.org (mailing list archive) |
---|---|
State | New |
Headers | show
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 AB15E25D52B for <dmaengine@vger.kernel.org>; Wed, 12 Feb 2025 17:04:19 +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=1739379861; cv=none; b=qke1A6t1C3y4rUimUaQY6K+lqFApioEtfC9D5064RaI4LtZDHdR5kpliKZ/NaAh5XQnw1s5GbBloPPvFmNLQZawTcZWD4IBILtVVxG74rk2yxvlxzFGCx41SYXUVOM4uMgzbCUpZCSuBLrKMw5NYDeM3hjINVmDi2Veff9EpwAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739379861; c=relaxed/simple; bh=0qyK2u3z/NjnPLJ+3zpCNms4pKQWuPqdWHn9aOhe7T8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QGRCInqZXpubW557BRDoyDoKtjlQcpxUkAbtGxqBhb6vpDRfsE/A6+yHzkDU2AVEOjA/5LGVe4iai29HkFpShpjFn5aI2d/Qq7d3giqptie79sxeLLhHutFrXi5aQ88SiipUxcfFxN/PeqpmJWwwdTF4rqPRwhuqnCQuk+ui4N0= 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=flHOZUoS; 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="flHOZUoS" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-ab7c6fc35b3so595741066b.2 for <dmaengine@vger.kernel.org>; Wed, 12 Feb 2025 09:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739379858; x=1739984658; 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=UyOxpDSL06VJYzsC7GVy/mIHwyNXFSDSkM/lCd+8REc=; b=flHOZUoSvyBajKJqvP+UiHgxPZziw91JOMSZ50wsveGAHG4eVZeYtB/rGOhA3x3725 ymQQL5plbzhXw/VtTsF+8a9ooqvK99kGMJDjFO/lkk3ptP4elqUTu7WmeWor8l3pioW8 fiWMOuHZRGwHMR2ucE5zHn+S3Qd7q4ayaGZRz7fj4bFzm7iwHaMVUCYC0VQ2UPrJHobo 8E9loQ3b8X6ODL5l2XdSAq+fZmJc0XCPUqwz+hLrTZtHF7CFtNBq0WMHD4XNHVBwEbE6 BknFTuZn/K/KFLzZu2sEcf1HzMrpML1QcN1PQY2O2T8kXTtY0h1PtspRO+71JgjeiEPI X/Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739379858; x=1739984658; 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=UyOxpDSL06VJYzsC7GVy/mIHwyNXFSDSkM/lCd+8REc=; b=d1/M0bQsL6KtkUv4pMss3aSX1MmD/9iEmcXbMLYa2F9fkEpEVRnPktewldgJ4ShTbF rFEquJiZqSXPWoq418sCZx+GCRksJGIgudmoXv0Wj8RwhqXiSWlz1ylYXF+H9KWxxGOK MmFR8ymT5gmBB+P1Y2c7IJG/7YCvH9rA5FDeccGmrpsGzBrGhH01Ge6tD3EtWe76MjMl ODp7U0Krep1f7RpNWcLCqzrxYB9KuUUUM86flABo0WLBkdXBaOxDYuSN49jSKHAUfSLs VTU21Oq9tUAxfYjUHKCbBJyyDrJo6XyLTI8sKNJFNHU76KUm30YQH3lrk1og/9nBM+WU Pieg== X-Forwarded-Encrypted: i=1; AJvYcCUGpXX2WUlLX9jwsGIdkbx5A3UnTbK799Bx0zr2jZbWt8lt91WHxPJ0+JCKyWzjg0ezyXUaQ3cHihw=@vger.kernel.org X-Gm-Message-State: AOJu0YyPTDprYU+Ei9mTT1Mj6jjaJkXzBelF7kLhyGPi8fxJQtQTdifa Fd0/eZGa4M63puA6PCTR0AJc3JOfonKCuys3nbUcIUVmxjXdU+GHcgwZ1IAs7TU= X-Gm-Gg: ASbGncvNPdkFNMxsJfp37PbPYT91XVePEHp4Ssrqy/B/fi0zeLkP9cCge8ZKHQX0ibm an5IKFqfanu1B8EN2WvnbQSytvhu02i4wHGVrib5vdLW+DcH8hucUkWrcw1husCsSXcV9CztLsU TnyTgQLAlY/Hu3hO/GEGAMsNgBpeDVq5pASWqT6VcjtyQCzuLiXADp0VwkkBzhVRJb3JRxWvLPM rUMBw3abl+vh4kGWkKiSDoHmtsMlL4iMAJsfYhLF2GPjkftKkpXqSVH6sOiVJR17P9nfyB7gIOb evrMtPxdQsSOjpVmYXlhbsKAHcJv X-Google-Smtp-Source: AGHT+IEfiTWbMpQQLn1RJXdfkKpVVIRE4eJH1Ib8zZn4l3QF/V96r1o6kde9pJJhsidNjbz7Sos45Q== X-Received: by 2002:a17:907:7249:b0:ab6:d0b9:8fd1 with SMTP id a640c23a62f3a-ab7f3787affmr361088666b.34.1739379857852; Wed, 12 Feb 2025 09:04:17 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef41:52e8:f77:3aca:520e]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5deb9f6e46bsm819230a12.71.2025.02.12.09.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2025 09:04:16 -0800 (PST) From: Stephan Gerhold <stephan.gerhold@linaro.org> Date: Wed, 12 Feb 2025 18:03:49 +0100 Subject: [PATCH 3/8] arm64: dts: qcom: sm8550: Add missing properties for cryptobam Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: <dmaengine.vger.kernel.org> List-Subscribe: <mailto:dmaengine+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:dmaengine+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250212-bam-dma-fixes-v1-3-f560889e65d8@linaro.org> References: <20250212-bam-dma-fixes-v1-0-f560889e65d8@linaro.org> In-Reply-To: <20250212-bam-dma-fixes-v1-0-f560889e65d8@linaro.org> To: Vinod Koul <vkoul@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konradybcio@kernel.org> Cc: Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Andy Gross <agross@kernel.org>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, Yuvaraj Ranganathan <quic_yrangana@quicinc.com>, Anusha Rao <quic_anusha@quicinc.com>, Md Sadre Alam <quic_mdalam@quicinc.com>, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss <luca.weiss@fairphone.com> X-Mailer: b4 0.14.2 |
Series |
dmaengine: qcom: bam_dma: Fix DT error handling for num-channels/ees
|
expand
|
diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index eac8de4005d82f246bc50f64f09515631d895c99..ac3e00ad417719be2885d76d3197f96137848337 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1957,6 +1957,8 @@ cryptobam: dma-controller@1dc4000 { interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>; #dma-cells = <1>; qcom,ee = <0>; + qcom,num-ees = <4>; + num-channels = <20>; qcom,controlled-remotely; iommus = <&apps_smmu 0x480 0x0>, <&apps_smmu 0x481 0x0>;
num-channels and qcom,num-ees are required for BAM nodes without clock, because the driver cannot ensure the hardware is powered on when trying to obtain the information from the hardware registers. Specifying the node without these properties is unsafe and has caused early boot crashes for other SoCs before [1, 2]. Add the missing information from the hardware registers to ensure the driver can probe successfully without causing crashes. [1]: https://lore.kernel.org/r/CY01EKQVWE36.B9X5TDXAREPF@fairphone.com/ [2]: https://lore.kernel.org/r/20230626145959.646747-1-krzysztof.kozlowski@linaro.org/ Cc: stable@vger.kernel.org Fixes: 433477c3bf0b ("arm64: dts: qcom: sm8550: add QCrypto nodes") Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org> --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 ++ 1 file changed, 2 insertions(+)