From mboxrd@z Thu Jan 1 00:00:00 1970 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 ACCF9260A2F for ; Wed, 12 Feb 2025 17:04:23 +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=1739379865; cv=none; b=pm/gcuQJ+rvpnOzw83qfrEjvNDw/nIsrMw1uR8emreoaBCt4HPdkSbHdmQHdeiwftZW6FaOlaKv2rlQfDvfLV4pQUCUQDXBVLm9Q0qPosteEIc9u0+Kw/ErfTzvRbMg9t0mbQ80PAGMg49dJ9pM+rW5lRaJVx9CnTxgAsDd5Y4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739379865; c=relaxed/simple; bh=4w44mTqF2bkyVc76fDw8rdR5cONqNjm0mBoDtJiF+zk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j6WLX+f+ZdJFhYR5pf0yJ56NmmN0YhIBcyxWV41C3ICiYeQPZfwCJPjETWk4d4SSHfPbjpgNPfRNnYWMrlKiryD7MOCEkI33iutuNB+UO9XDsQC9xxxwlNPZVsXVyU33IZrKXxC+SgPkcczqZPBHpOucu2/IqB0UTpwfg9pgJKE= 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=yoeZePFy; 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="yoeZePFy" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5dccc90a52eso11304042a12.0 for ; Wed, 12 Feb 2025 09:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739379862; x=1739984662; 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=Now2NkxuPWvV2DBMpvY1YciTmYHo1FaB4LpFzdcs/7c=; b=yoeZePFyngUDYFlyXaXcVIXsoebUkK864jzr/WLOgZLCa9T5EgYxBQXi4kTrKMoCv9 ZuL9yasOSRjxWUKm4yMd2d+CAE0x7k629nMtIT0IY0mj3soFhlWZygOJVXrLYuvKY+Gu tNBV3UtYB+0xpGUbRkwd0HiDGSSA31403gvflaRhKEL13GxNxGnM42H9unEVKcX6TG/k +P+d4DiwztfoPJlz+ZCq5SF8vYhWWElOaFi+7UtL62OswWLAueghX0tZ/hixQVaFQNUc zgHtJ3Q/ho54SWRGzLT/NFTQzkTo9mIo8r1Ph7cEyvpiOfLt/jb0oHrM0gkxd5fnP72c zbbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739379862; x=1739984662; 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=Now2NkxuPWvV2DBMpvY1YciTmYHo1FaB4LpFzdcs/7c=; b=vamSk1A30nqHonOjJs8LFmL1pgptnNTi0GpiQEVrYJzM6pd3kV2GXZhe/+iaMxvLuC pLgAVZjlGVqhqutTtjbcaQhaW+1iqC62EVw4w1q4w/MwvMBmmBR9XtEGplK/CZIWtSyC 7zuckhWmsjn/GjBhXhpLX+gNnda1sCKA6BDQZyEaVD+e4DO8AGD9J49WDuGZeDOYTVDl fsuBmiWZ6rJ11CpEfu6BHJ/0k4JGbfy1h1IC9uno9yFTAn4NcCvusD2lENDioxJEZO6U z8CZGs7GryQRe6qwBSEqShK2zJlT1935dUqVqf5t62sdz8sHN5Xwu0h9qZNsiR0rtFZB 0fSQ== X-Forwarded-Encrypted: i=1; AJvYcCVGiaOYxuaAGcK/VhMK/rbB59kyMPbWZDVq7maVjk0qc2f91ZZkaFoT5QQSrznbHGl+wzYeGvunkun5@vger.kernel.org X-Gm-Message-State: AOJu0YwVoHIMzqVRHp4eoSFf0rsUCfw48mnZ93b0AcIDMSrIWcdI/AjK v1sihrEdxE+GsIAEYOAp1foKJr/aB6B1TL1T4lu9ap8UBHw6CxkNlDiHF4T0nzM= X-Gm-Gg: ASbGncuRDS2yid+3GBqiVtyI7HXX0Gd1QoRz1XUirI4KgQUzr5UKX31UaIkuLwTE+0c UCkJ7+2OCMwdPeqVBTFzyLeZ3vNBNfGtM9mvXtDu7dtp5nwnLyS+0oN5KQO4Ur3cwPnd3Ak/5z5 lMBjwfmXtnk4ky/ZyfbRWQ3jCTaGOSxXO20lEapZyVQbHQf1zICgDtTDgSL04Ifd+nrlmm8mkna INtgbp73k1PLssA8sV+DipNMzR0X1yFNAo2o0g4eqoGnIX1v7R8EvnLDzuYJlwAbEGj2EYFyU7g A0xWAfB4rFiOulBdna4Hq70Umdks X-Google-Smtp-Source: AGHT+IF9uLV5BjL7W/hlLhRIgJ5kaxpUOWiXIwYcgEvXKhAZgDqquhFUvl+Ya9kh98It7qH6hh74Xg== X-Received: by 2002:a05:6402:40c1:b0:5dc:1289:7f1c with SMTP id 4fb4d7f45d1cf-5deade0a57fmr4072086a12.29.1739379861924; Wed, 12 Feb 2025 09:04:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2025 09:04:21 -0800 (PST) From: Stephan Gerhold Date: Wed, 12 Feb 2025 18:03:51 +0100 Subject: [PATCH 5/8] arm64: dts: qcom: sa8775p: Add missing properties for cryptobam Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250212-bam-dma-fixes-v1-5-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 , Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Srinivas Kandagatla , Neil Armstrong , Yuvaraj Ranganathan , Anusha Rao , Md Sadre Alam , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 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: 7ff3da43ef44 ("arm64: dts: qcom: sa8775p: add QCrypto nodes") Signed-off-by: Stephan Gerhold --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 3394ae2d13003417a15e64c9e47833725ec779e6..8d7d157ff2f56a31a97121c882e3e0336356eda0 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -2413,6 +2413,8 @@ cryptobam: dma-controller@1dc4000 { interrupts = ; #dma-cells = <1>; qcom,ee = <0>; + qcom,num-ees = <4>; + num-channels = <20>; qcom,controlled-remotely; iommus = <&apps_smmu 0x480 0x00>, <&apps_smmu 0x481 0x00>; -- 2.47.2