From patchwork Wed Aug 16 16:45:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 714121 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25B34C07E8C for ; Wed, 16 Aug 2023 16:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344872AbjHPQrA (ORCPT ); Wed, 16 Aug 2023 12:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344929AbjHPQqr (ORCPT ); Wed, 16 Aug 2023 12:46:47 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1307419A4; Wed, 16 Aug 2023 09:46:46 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso899718566b.1; Wed, 16 Aug 2023 09:46:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692204404; x=1692809204; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KsImODL9pP4EzwrsGgeSbtpXRSmRGbHYZ1K1zyJDRyA=; b=IzcWZi+6F6b9au2dKhJNgHKlK/Gc7//hOHeEZjVPqEDiHQsOVsGS76v2oyWTTgN7El SnHGVMzwXO1hCadVUg/iAC1RZLOmcMvXEaPm1QvY2Jams1T2F9r7N0iSAjkiCYKoU2XV xzS3k07M5ucAqiiF30mQ9kCqMwmCxj53JPFbaXGpYhW6BsngdYhfw+J64MYiWMfQcIR9 2HPvE+taEAxdva+nYqOGAcOacubPqbJVeKBsOGcgMGQGpKg98g1+iBfd9CLR7XI3aqpq Ok3iRCYvyX5hLk1C3MBb8PUKG2ospBbeqDkeyD7X00V3LMQWf/GkQHd/Nb6VVK6csmXx CucQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692204404; x=1692809204; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KsImODL9pP4EzwrsGgeSbtpXRSmRGbHYZ1K1zyJDRyA=; b=beFYBGNuMvlKUfrN2Rh2g59SOltRefuyaAA6bxf3nzJiStzuO+yLEVg6uHRiliYaTJ V0g0kBaY2W+d+pYrKxc+00+ED0aYkaFBQwF18/Wle+D3qJuiNey8xk1cF2BLeJ2bjGs5 TIa/lrJpvkfINMr9gbRlItG6kpZUXpAVMuhWfbhxR//KQ8cve0LKfpJV0kHukrQkG4H8 u3US64TYo0KFE31EfUnmyZAX0Xjmf/GV/Rh+3Vd1tx9VIBLYB879ntqdpepI0BjXGvrf CzRHdE3ir3/Hc4GdoERCXCtngDnxwKG/ArTnJuvBGbn3ea+ZN0kExqLBZnxeFxXWe3jw OuYw== X-Gm-Message-State: AOJu0Yw9QAnazjczBcjFXBgHbt7+quBV3FpjfFqkTtqmp5D2Uq5xmg8Q W2g4lmM8GdWCpI3/dCh6jHB0UJmtE77QZw== X-Google-Smtp-Source: AGHT+IGO7wHJkMFXsID9CwRLlP67HJ5fTJaEUaK7Jv7nqr8m7qSVp2IcLzOVkqB90VESxmsOq7AsXA== X-Received: by 2002:a17:907:6d21:b0:99c:85af:7aa6 with SMTP id sa33-20020a1709076d2100b0099c85af7aa6mr2587146ejc.28.1692204404405; Wed, 16 Aug 2023 09:46:44 -0700 (PDT) Received: from fedora.. (dh207-98-254.xnet.hr. [88.207.98.254]) by smtp.googlemail.com with ESMTPSA id b15-20020a170906490f00b0099c971ba285sm8697400ejq.5.2023.08.16.09.46.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 09:46:43 -0700 (PDT) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_gurus@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mojha@quicinc.com Cc: computersforpeace@gmail.com, Robert Marko Subject: [PATCH v3 1/4] dt-bindings: firmware: qcom,scm: support indicating SDI default state Date: Wed, 16 Aug 2023 18:45:38 +0200 Message-ID: <20230816164641.3371878-1-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ5018 has SDI (Secure Debug Image) enabled by TZ by default, and that means that WDT being asserted or just trying to reboot will hang the board in the debug mode and only pulling the power and repowering will help. Some IPQ4019 boards like Google WiFI have it enabled as well. So, lets add a boolean property to indicate that SDI is enabled by default and thus needs to be disabled by the kernel. Signed-off-by: Robert Marko Reviewed-by: Guru Das Srinagesh Reviewed-by: Brian Norris Reviewed-by: Krzysztof Kozlowski Acked-by: Mukesh Ojha --- Changes in v3: * Change the property so it indicates that SDI has been enabled by default --- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index 4233ea839bfc..590bbbd61de5 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -89,6 +89,14 @@ properties: protocol to handle sleeping SCM calls. maxItems: 1 + qcom,sdi-enabled: + description: + Indicates that the SDI (Secure Debug Image) has been enabled by TZ + by default and it needs to be disabled. + If not disabled WDT assertion or reboot will cause the board to hang + in the debug mode. + type: boolean + qcom,dload-mode: $ref: /schemas/types.yaml#/definitions/phandle-array items: From patchwork Wed Aug 16 16:45:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 715480 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0505CC07E8A for ; Wed, 16 Aug 2023 16:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344888AbjHPQrB (ORCPT ); Wed, 16 Aug 2023 12:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344932AbjHPQqv (ORCPT ); Wed, 16 Aug 2023 12:46:51 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A86919A4; Wed, 16 Aug 2023 09:46:47 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51a52a7d859so104415a12.0; Wed, 16 Aug 2023 09:46:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692204406; x=1692809206; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AsNvzP/rPks5RFe9XRQSnNtgu/uQYFDsxrAd/lRxGIA=; b=NrlqaEDoilO7TPeCetBx2PYTyTGcIFHOs/txZJklTk3Jp5VNQzGjAGRTihH1ZJAgsf QMlsFrXHFmP82oejZlzEBxbhwQwVXPqaWmG+2zolpZL9hAHuet69BK2ceDfZbMXdaaVm KsjETjFZYsbBmKrJldr88UX52hXHoZm0LDTeyppwz6gcSWo0VqA0WHKifjkTp1zLc/oY b4s0gukpRFIaEZoPFvxmIeKDKOuLwiLCOKxKFO8Ew9dCZVep1Qx09iq/3vmoDuNAsbml y6zukIInR1qqPp00uOQvQe/VqomAVq24Va99hl3IiuN9VK1AVwtgmJwXpvYO/Yi5dLBl DkyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692204406; x=1692809206; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AsNvzP/rPks5RFe9XRQSnNtgu/uQYFDsxrAd/lRxGIA=; b=iJEJhuDN8lNjHHF2AT22r9pNWfkrzaSP/rdvAYSC/zHKi0zsupFLVslPevsTB82FLq tX922M1JU5iYHtvGBgglfe624Yc6mxc5p/l/srHx/Nx5p451mqNGivYJtD16u22/Msqy Wza5UKOTmiBra48CmcrbAgnI0je4QdEBb1kwtgJa/5UhLBZGXC5jOmu0V4RmZ2MGlLHr 7w3xCYqr7gxOhgvbg9aVC4K/U1OqoeEHsjDgYs6N+Qe5nOTwPJ47QllBIWWBG9Gd3b5h w2AojRmdIF5Wrd33wEIaohhY+7wqLC+QbgVXRg5qpEpxuSs5HocNI9VOtt8vVUmrq+0T hlEA== X-Gm-Message-State: AOJu0Yy72mpuVJcElE5tXyPcf/BdN/PSmFB4bom8PUC48p1OX/EffGVO TqZuI//sIv8FA4Ie5q8KBd0= X-Google-Smtp-Source: AGHT+IEH7zXGt7eWEFq53OZOE+60kEKYj3rKEFPalBTmqErzLmyGvfCsw69FXtuYWo3a7d7cTZNg/A== X-Received: by 2002:a17:907:6d18:b0:982:a022:a540 with SMTP id sa24-20020a1709076d1800b00982a022a540mr219609ejc.11.1692204405671; Wed, 16 Aug 2023 09:46:45 -0700 (PDT) Received: from fedora.. (dh207-98-254.xnet.hr. [88.207.98.254]) by smtp.googlemail.com with ESMTPSA id b15-20020a170906490f00b0099c971ba285sm8697400ejq.5.2023.08.16.09.46.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 09:46:45 -0700 (PDT) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_gurus@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mojha@quicinc.com Cc: computersforpeace@gmail.com, Robert Marko Subject: [PATCH v3 2/4] firmware: qcom_scm: disable SDI if required Date: Wed, 16 Aug 2023 18:45:39 +0200 Message-ID: <20230816164641.3371878-2-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816164641.3371878-1-robimarko@gmail.com> References: <20230816164641.3371878-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ5018 has SDI (Secure Debug Image) enabled by TZ by default, and that means that WDT being asserted or just trying to reboot will hang the board in the debug mode and only pulling the power and repowering will help. Some IPQ4019 boards like Google WiFI have it enabled as well. Luckily, SDI can be disabled via an SCM call. So, lets use the boolean DT property to identify boards that have SDI enabled by default and use the SCM call to disable SDI during SCM probe. It is important to disable it as soon as possible as we might have a WDT assertion at any time which would then leave the board in debug mode, thus disabling it during SCM removal is not enough. Signed-off-by: Robert Marko --- Changes in v3: * Squashed ("firmware: qcom: scm: Add SDI disable support") and ("firmware: qcom_scm: disable SDI if required") --- drivers/firmware/qcom_scm.c | 29 +++++++++++++++++++++++++++++ drivers/firmware/qcom_scm.h | 1 + 2 files changed, 30 insertions(+) diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 06fe8aca870d..de9d1a11d097 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -403,6 +403,29 @@ int qcom_scm_set_remote_state(u32 state, u32 id) } EXPORT_SYMBOL_GPL(qcom_scm_set_remote_state); +static int qcom_scm_disable_sdi(void) +{ + int ret; + struct qcom_scm_desc desc = { + .svc = QCOM_SCM_SVC_BOOT, + .cmd = QCOM_SCM_BOOT_SDI_CONFIG, + .args[0] = 1, /* Disable watchdog debug */ + .args[1] = 0, /* Disable SDI */ + .arginfo = QCOM_SCM_ARGS(2), + .owner = ARM_SMCCC_OWNER_SIP, + }; + struct qcom_scm_res res; + + ret = qcom_scm_clk_enable(); + if (ret) + return ret; + ret = qcom_scm_call(__scm->dev, &desc, &res); + + qcom_scm_clk_disable(); + + return ret ? : res.result[0]; +} + static int __qcom_scm_set_dload_mode(struct device *dev, bool enable) { struct qcom_scm_desc desc = { @@ -1468,6 +1491,12 @@ static int qcom_scm_probe(struct platform_device *pdev) if (download_mode) qcom_scm_set_download_mode(true); + /* + * Disable SDI if indicated by DT that it is enabled by default. + */ + if (of_property_read_bool(pdev->dev.of_node, "qcom,sdi-enabled")) + qcom_scm_disable_sdi(); + return 0; } diff --git a/drivers/firmware/qcom_scm.h b/drivers/firmware/qcom_scm.h index e6e512bd57d1..7b68fa820495 100644 --- a/drivers/firmware/qcom_scm.h +++ b/drivers/firmware/qcom_scm.h @@ -80,6 +80,7 @@ extern int scm_legacy_call(struct device *dev, const struct qcom_scm_desc *desc, #define QCOM_SCM_SVC_BOOT 0x01 #define QCOM_SCM_BOOT_SET_ADDR 0x01 #define QCOM_SCM_BOOT_TERMINATE_PC 0x02 +#define QCOM_SCM_BOOT_SDI_CONFIG 0x09 #define QCOM_SCM_BOOT_SET_DLOAD_MODE 0x10 #define QCOM_SCM_BOOT_SET_ADDR_MC 0x11 #define QCOM_SCM_BOOT_SET_REMOTE_STATE 0x0a From patchwork Wed Aug 16 16:45:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 714122 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90C54C04FDF for ; Wed, 16 Aug 2023 16:47:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344898AbjHPQrB (ORCPT ); Wed, 16 Aug 2023 12:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344933AbjHPQqv (ORCPT ); Wed, 16 Aug 2023 12:46:51 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4CD519A7; Wed, 16 Aug 2023 09:46:48 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9936b3d0286so947172166b.0; Wed, 16 Aug 2023 09:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692204407; x=1692809207; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OBNyxDK8Fyq1pXAd6MZ+yIoAL1WjznR7vyZJHcF2Lr0=; b=QOHY19PJ+01XY2ZiJsMfyq2e+VlW0VG9H3Fuejh6iobnBBH0dzrWQaFb9mJhsOYkDT iHhss3EZPFOunybYtp5MIixF9aqzcLaCcghlYYqf4F3wxVHXfzGZB/qXk/FtEZVt2PFV 0pR5NF1bN0YHSLRAkI593Rn9i2tIZH0H6VCl45I+IOAi4s/0KiaGGaQQZCtmkWbEtvmz 5NFIRFVl3VqnmwIX55t4NnF9cIIBSXDhqJo0MKJxqx5raGXAnbxIDNHbRw+YgxOC2PoS OBh+3e36tBiM+YUcFvOpw6WbsY2DXMM1W4C53s0gfhOiggPymqnbuOULtfP/CInPFBxY 9aDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692204407; x=1692809207; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OBNyxDK8Fyq1pXAd6MZ+yIoAL1WjznR7vyZJHcF2Lr0=; b=PQHbBCz3vPM8QR5NcyfwFho53ZJPqfWMYglXcPaAuvdvfu45VQzLKgFVpjqvREEFdX 7taG06SKhpfpS+xIKigWBKk3MgvthTtrUXcLVqltVery3zfE53a2WMO6isLUabNQ5tsx t8uzEDQza70Xps99W8ldNkO2C6gcQr498J/AuGSbRVgORLSDxvMCWix53gDEBloQSkyC kK3JW+OmaxT0wkVQuhcj50NERg6Y5KJELNYpOw5VTGkXbyeT5nsBMbc3JH01LhKwNsSx vpcJ05h/KxfXTO5EHu1Pb46c2pLDYVGu6KBA7t6pyul2soPyrCgbVDV6sqmEFIt/f7IB nh4g== X-Gm-Message-State: AOJu0YzETYbDSRxHYbAl1NU/XPbrV+B5YENGe02gu5rHWM4FdGwKQjOV k2BLKbEJaXT+O6r82ieQgwML2iT32Itmvw== X-Google-Smtp-Source: AGHT+IF1NKpyyc9qa0giS94QpZ5FYC9JU0Qu1HTtKanVq70NK0GpN78en+tF1whRK7dsWKqhrEy55Q== X-Received: by 2002:a17:906:154d:b0:99b:d0dc:7e68 with SMTP id c13-20020a170906154d00b0099bd0dc7e68mr1904332ejd.72.1692204407109; Wed, 16 Aug 2023 09:46:47 -0700 (PDT) Received: from fedora.. (dh207-98-254.xnet.hr. [88.207.98.254]) by smtp.googlemail.com with ESMTPSA id b15-20020a170906490f00b0099c971ba285sm8697400ejq.5.2023.08.16.09.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 09:46:46 -0700 (PDT) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_gurus@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mojha@quicinc.com Cc: computersforpeace@gmail.com, Robert Marko , Krzysztof Kozlowski Subject: [PATCH v3 3/4] dt-bindings: firmware: qcom,scm: document IPQ5018 compatible Date: Wed, 16 Aug 2023 18:45:40 +0200 Message-ID: <20230816164641.3371878-3-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816164641.3371878-1-robimarko@gmail.com> References: <20230816164641.3371878-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org It seems that IPQ5018 compatible was never documented in the bindings. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/firmware/qcom,scm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml index 590bbbd61de5..60c66cbcfd7b 100644 --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml @@ -24,6 +24,7 @@ properties: - qcom,scm-apq8064 - qcom,scm-apq8084 - qcom,scm-ipq4019 + - qcom,scm-ipq5018 - qcom,scm-ipq5332 - qcom,scm-ipq6018 - qcom,scm-ipq806x From patchwork Wed Aug 16 16:45:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 715481 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 129FEC001B0 for ; Wed, 16 Aug 2023 16:47:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344832AbjHPQrA (ORCPT ); Wed, 16 Aug 2023 12:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344934AbjHPQqv (ORCPT ); Wed, 16 Aug 2023 12:46:51 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FF861BE6; Wed, 16 Aug 2023 09:46:50 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-99bf91956cdso837277866b.3; Wed, 16 Aug 2023 09:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692204408; x=1692809208; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TVCphXM+aqgRDu6AzkHcmqdWrGaOaXUga/GtYv+auXA=; b=lY1nvlUgvYrQ0tfgd5z6BVb71BBbOHkP5+zfzSG4NqgqwHa8gEyZdAPJb6lmLYXIaP 9pI1btBFl6SeIqKXQD+0gzJ4oNcHa4Uvb2CS+QbOhrwKPd6TwK9bFrKXcW2JJbBWo338 kThA+n/R3OuQUrnzVSS52OCKrscJJ1DuTgFj9zYTNJ4bDdgaq4c6LkzyXks/9g52TE4u lhdBLnWOeiR9iWwctwozigOBaUit9+5Z6hSZLH+OfTka27FB3JOe9h9yWgl7xJDD7haC Nctr2c2DKmptulhBmXqJFdu1LsOLkKVf124E428R75ghXCPhAWaJSF2KzS+dzZfzmX41 RL7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692204408; x=1692809208; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TVCphXM+aqgRDu6AzkHcmqdWrGaOaXUga/GtYv+auXA=; b=aJqbkPbsUt003t+DoDVSbrdCF0srGiA29K/EMTNNYl6TgNTLsry566cqDTRPWyxGBJ 6SrJ7tnZ9/cQoxw4Vc05BOvAFLY00cmTLVqERZ8Aca2dAjZ94vb6ajm7JFlg8oJ2vJZa GiWGLRYeoks/UdWhDmhDFCGH928zj21LSUDah4SSCSJEnX6RQC4h6FIr7d7ZFOAG9tHw A6xq7sIwJV+Zhn4GsPECJu0jdPG+ld44Jh5Tgkgaf3bVzhE/XPZL2mYLniJuXfTbJbUH 1RwHVAlugJW5tEB3o7DarjJtR5NQbUROexQ3fJGVn4x3w9InvKvNF+j+1TaYiihmOaLe z5nQ== X-Gm-Message-State: AOJu0Yx4cHotucIhNo1LSK9pSNZVFbuvr5DRbD7uyKFfFbZvLL3DWwS3 z/+EHQE/Lz7tdwiUVzUkUBE= X-Google-Smtp-Source: AGHT+IGqFMcH5HWtb5f73Bz235q1eo5hf/NR9vkc7sQ2UdHZh6Lai1Lng/dMztATx7E1N4FohSQ10Q== X-Received: by 2002:a17:907:3e9a:b0:99b:d075:18ba with SMTP id hs26-20020a1709073e9a00b0099bd07518bamr2271107ejc.56.1692204408389; Wed, 16 Aug 2023 09:46:48 -0700 (PDT) Received: from fedora.. (dh207-98-254.xnet.hr. [88.207.98.254]) by smtp.googlemail.com with ESMTPSA id b15-20020a170906490f00b0099c971ba285sm8697400ejq.5.2023.08.16.09.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 09:46:47 -0700 (PDT) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_gurus@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_mojha@quicinc.com Cc: computersforpeace@gmail.com, Robert Marko Subject: [PATCH v3 4/4] arm64: dts: qcom: ipq5018: indicate that SDI should be disabled Date: Wed, 16 Aug 2023 18:45:41 +0200 Message-ID: <20230816164641.3371878-4-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816164641.3371878-1-robimarko@gmail.com> References: <20230816164641.3371878-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Now that SCM has support for indicating that SDI has been enabled by default, lets set the property so SCM disables it during probing. Signed-off-by: Robert Marko --- Changes in v3: * Use the new boolean property --- arch/arm64/boot/dts/qcom/ipq5018.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi index 9f13d2dcdfd5..bd0198aaf8d0 100644 --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi @@ -57,6 +57,7 @@ L2_0: l2-cache { firmware { scm { compatible = "qcom,scm-ipq5018", "qcom,scm"; + qcom,sdi-enabled; }; };