From patchwork Fri May 26 11:06:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 99443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp389597vqr; Fri, 26 May 2023 04:16:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72xybRAPYqhAI2cD4fpll7kGSCeKEHbDevg+eCIg3c9YtFAhwA7CUQhVQIg256X0Fc3p9I X-Received: by 2002:a17:90a:bd88:b0:253:9131:4955 with SMTP id z8-20020a17090abd8800b0025391314955mr1928163pjr.34.1685099819212; Fri, 26 May 2023 04:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685099819; cv=none; d=google.com; s=arc-20160816; b=s/be7VqsJnQFJWGa2VpkGr7Z6vnTQqoiTvk4uII2VRPVUY0U2mMeaQLEAQbP0B5uaH nLu6fPHBYIF0/CJ5DhKNs0NzokllF4hkbVsBf3YKjcY7O+dXAeU7C/gvibolOMjApEvQ J+hRg2ggH+VVL5eTb7RxqLcTihglDHnWCnBypGIXdBUKN2Y3LRkRH8sopfVnv+1UFcM1 acd8HrUUkdxiYgnolt5cGgor0TdS2sDPHcpI03QIPl4cDQwihc/qlDnQpcq9NFIqDHNN 347GsykJKJn1SAKBTtFUnlTpDN04f4r7bUKlHH0puxOme/krNIkuNtkbPagQ+EHRyTKs ReQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DfASQDS4mwNC2vhWlN0qJRc1bBxg9yiLPliVchpFIRs=; b=XVIhkRH/NVb+esf9r9zKLP3lAjeZDsdiUC8jH/8O4KUA2MXR2cPBEp+BdAuwhJ/nQm pjRSGQMU0GDWnyiDC3P7cKB5XgB15SkiptLd7Xq/jxiEs19g3KztFdS25BissFzS/KzJ 6UMD1cjMhqhR5tYbtdH+whdGT5Xr7I8pTd4Tn6O7tjMyStq1h6f6W0GGRaX9+cA1ID4p 74kcuu5D+CA/A5D/qRJugln6iW9pH5DGLAbOi183gb1MK4+Zzpq374UEHeR178CNpdjI Xol142zcZH2vMbe3Kpr03izZqx8aNwNmVNT0TXG5QqFyLyqoaGEgo9hWpO0b9UbosKaO El4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pOvj33Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj12-20020a17090b344c00b0024df8757367si3881945pjb.87.2023.05.26.04.16.43; Fri, 26 May 2023 04:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pOvj33Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242986AbjEZLHf (ORCPT + 99 others); Fri, 26 May 2023 07:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbjEZLHb (ORCPT ); Fri, 26 May 2023 07:07:31 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC87F7; Fri, 26 May 2023 04:07:29 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34Q9mRnI028360; Fri, 26 May 2023 11:07:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=DfASQDS4mwNC2vhWlN0qJRc1bBxg9yiLPliVchpFIRs=; b=pOvj33HpUbr+zsTnNn6oZsTp3ZPmSgXxp2I4ktP2C67oR7sYihBxljz6h0Lb+bzgA3mw KNsfk7bpK1SXGcCpeFb0mBqB3UAfUdqqnytdrH/0HAuFNeFeVJ6o0ZlJqzRKI5uLel07 Y2ckCqJ0AXNgnbtOyFocTn68d9jJso97EgP8iwqDl5Y16UcL+aBmjU47m2diRtg+8qTe fzVtthV/TFPfCXUofRy5u8DvrCymQCEgjnYyWuNCBFlyoWsI5FPTwFGzuzYdUz0Xh+Ic YRJBEtn6NpzXEHnePOBdJSnrhbPv0eizXw8LyThbgybAdmgoLelfqVBpB2HYAewMwWqW ug== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qtncsrs7y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:24 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34QB7MY8032029 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:22 GMT Received: from viswanat-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 26 May 2023 04:07:18 -0700 From: Vignesh Viswanathan To: , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 1/3] dt-bindings: mfd: qcom,tcsr: add the compatible for IPQ8074 Date: Fri, 26 May 2023 16:36:51 +0530 Message-ID: <20230526110653.27777-2-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526110653.27777-1-quic_viswanat@quicinc.com> References: <20230526110653.27777-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: wSAIw0UE-AzyDvF-zVqgmT0VUVRbNHGl X-Proofpoint-ORIG-GUID: wSAIw0UE-AzyDvF-zVqgmT0VUVRbNHGl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-26_01,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 impostorscore=0 phishscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 clxscore=1015 bulkscore=0 adultscore=0 mlxlogscore=790 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305260095 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766955228308917491?= X-GMAIL-MSGID: =?utf-8?q?1766955228308917491?= Document the qcom,tcsr-ipq8074 compatible. Signed-off-by: Vignesh Viswanathan Acked-by: Conor Dooley --- Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml index fe790af7b4fb..5ad9d5deaaf8 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,tcsr.yaml @@ -34,6 +34,7 @@ properties: - qcom,tcsr-ipq5332 - qcom,tcsr-ipq6018 - qcom,tcsr-ipq8064 + - qcom,tcsr-ipq8074 - qcom,tcsr-ipq9574 - qcom,tcsr-mdm9615 - qcom,tcsr-msm8226 From patchwork Fri May 26 11:06:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 99441 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp385583vqr; Fri, 26 May 2023 04:10:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4g3i/+UDRHFQ2qbj+iIpZ4nwmWOQHFXVEM+XjS4kh11t1gigQzxZOnv1XqV6UjQOJVIgkt X-Received: by 2002:a17:902:da82:b0:1ae:4ddd:9961 with SMTP id j2-20020a170902da8200b001ae4ddd9961mr2571357plx.20.1685099423653; Fri, 26 May 2023 04:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685099423; cv=none; d=google.com; s=arc-20160816; b=0NpWICRZmLFRkqLdujSKGZ4N3Jr35XW9Yq8eMHkFH3cdp9EhyLPCQ6XBnPxvnmHbMV cf8W3Lbltu0NlYGB3/VsUX9YGGvJ+HcypRLcFkoUacqPME9YxgPMIGhBJvJE72aYb/3L s8SOc3Gb4ctrb0f81/OZ61CwaRiXqEvSF5nvlx1eavInr58dNKq94g7pC4I/jQi5HIPi DNS5MPCV6F5KZMEHLCVdZ1eE/pUlbKzSbuo7nJnjI3VXpfW6h4FoEXg7DqyH+4y2xtxk B4EzEgsVpPFQH6B/l2CRV1ZTfaDcYq8y0+F8Plin5TgzRest6vnqnMaxA9IBVS/cnKAW /jkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Mw3nbk7BdZVT9IsCVkU+QlkgkIKWzFYXO2s5HPy+Kro=; b=Qn3faEwco9l/LM0esBLTxIggn/KEshyLEBsWzkgQVaxe8pLbA/sdmAxUovID5H7nAq f1OdHfcziZa+Hid4ZCzEXtoBP/fbdMu4wM4npd1OPisXZVsgcNkrPfd8lTQ/NOqS1/4Y IgNkx2udHkekNPvoSU1tqzf4SxFRjTGyIgDPXYRmFKsjMxSxsx306dQIY6qpY3pC/ihB mIzSI4yq+KI2E/LCo6DjWllNwVim4ABJt+iXANTf9NNyMEMKdBsLuTICIxmEIqttflpe qxOwNOWp7aA1PjoqtQNAkFAVI6enAlGLCXMboiszqowS8OohKSUMCpRAt8UBA1DoJB7e +98A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UGe5kmuv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170902d51200b001ae5fe35b6esi4052692plg.261.2023.05.26.04.10.09; Fri, 26 May 2023 04:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=UGe5kmuv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243134AbjEZLHm (ORCPT + 99 others); Fri, 26 May 2023 07:07:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242870AbjEZLHc (ORCPT ); Fri, 26 May 2023 07:07:32 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D9BF7; Fri, 26 May 2023 04:07:32 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34Q9Qrfc004752; Fri, 26 May 2023 11:07:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=Mw3nbk7BdZVT9IsCVkU+QlkgkIKWzFYXO2s5HPy+Kro=; b=UGe5kmuvjQrGldK7Ur8ZUf47L8t3YPX89RLZzFPfaVXtU3tanAEvP8xadyDQACBVFG2Q 2Y8VzusgQjg0BnPaXy8IzRReDlc2/wv1rWcY2kTCKKofoWd2C+46A2Mp7S3IlFLm2kd3 xDgRUlKbxs+lBoGUpY5DRBcMFV99hM3Jv3DUxUB8wVWqYMtN8i6VjNGlrLrILtuc7bZ+ BFlg5Dn0xjNTRSg3ntCR0g6K1egZNcrS+ZqyIcjnlCA19P3A5Y4qhefJPbWSj0ufoikt LP6PJlArYUs3ADNcYMaoO4OeDhtXLtMOw9B9fmXQ9MYZn7jXL/69iuS/7IX2hW4E04P8 NQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qtrd8gdf6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:29 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34QB7Sxj017012 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:28 GMT Received: from viswanat-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 26 May 2023 04:07:23 -0700 From: Vignesh Viswanathan To: , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 2/3] arm64: dts: qcom: enable the download mode support Date: Fri, 26 May 2023 16:36:52 +0530 Message-ID: <20230526110653.27777-3-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526110653.27777-1-quic_viswanat@quicinc.com> References: <20230526110653.27777-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: gJAq4W-KE-K7RtJ2E3fHjwZipzC2Wtwc X-Proofpoint-GUID: gJAq4W-KE-K7RtJ2E3fHjwZipzC2Wtwc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-26_01,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=741 adultscore=0 malwarescore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 phishscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305260096 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766954813180410175?= X-GMAIL-MSGID: =?utf-8?q?1766954813180410175?= Like any other Qualcomm SoCs, IPQ8074 and IPQ6018 also supports the download mode to collect the RAM dumps if system crashes, to perform the post mortem analysis. Add support for the same. Signed-off-by: Vignesh Viswanathan --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 1 + arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index f531797f2619..2d77a8336111 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -91,6 +91,7 @@ L2_0: l2-cache { firmware { scm { compatible = "qcom,scm-ipq6018", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; }; }; diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 5b2c1986c8f4..00e559de00fb 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -103,6 +103,7 @@ memory@4ac00000 { firmware { scm { compatible = "qcom,scm-ipq8074", "qcom,scm"; + qcom,dload-mode = <&tcsr 0x6100>; }; }; @@ -382,6 +383,11 @@ tcsr_mutex: hwlock@1905000 { #hwlock-cells = <1>; }; + tcsr: syscon@1937000 { + compatible = "qcom,tcsr-ipq8074", "syscon"; + reg = <0x01937000 0x21000>; + }; + spmi_bus: spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0200f000 0x001000>, From patchwork Fri May 26 11:06:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Viswanathan X-Patchwork-Id: 99445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp397462vqr; Fri, 26 May 2023 04:31:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hAdpui8bPHtqBPFiCjfyt4uQ4qxxFRxOVffXfxVvlNiAgnTsenAkcKP3Za2lvilLofC1h X-Received: by 2002:a17:903:2346:b0:1a6:7ed0:147e with SMTP id c6-20020a170903234600b001a67ed0147emr2523636plh.33.1685100683461; Fri, 26 May 2023 04:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685100683; cv=none; d=google.com; s=arc-20160816; b=fe5A1O/iMpFb1V6TC7GFlqd74EmAyEVj+zg7NlTF8Xb+lGvLbyohChkc5ka/av5QJf s0i5wnFPCFqoVMkIkQAd4HpDuRUBPTEZBwLOgVCHBw9aFkxiXyDGhR5vJHMyyAvuP+8h CFr+L4n/8BD2B7i3A1lt7sWhjgHfr3wYRglMqIu7K6ennH6DNZ/R3hQV6q3pNhb/t/0p TlScw6pfR8uSuRLk13ghXLOcucGUPfSHkgIXuT2bP1MvxzI06G4jE1GReojp9o4njGLh /WnzlL7x+asaGqvX65XowNn4fFbe0UgIhzhcMhyLHBEUBkgIPq0bByPUZRq8N+QHa6Sp YOgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L+UZMrct2CdggSukP8m/AcuMAdqy/CL+Bb+0b7+crxA=; b=lRLwwHDQpnKR6GjMjI19q+WEx3Cy6NV92X6E/rTjbcOWVK6gSwUdmMDJjUnC3PPsvj WYzvxoG9o5qNDiIK7F8qrhdomaP5vunEiOJktvnFqncGq9/+0bPBFetDXDMt5guD13a5 9yHOzxAvkFT5AGPlJEJTUUd97wt0yg+a1dUJJ55W6Y4572L3qtGfH3p27C9mJWxRwykk oNzy5sWw7oPazWmEvrODS0vEBsoUzdb45QkdivOIh7GH/CsJjeCHdaWZQnnl/oOKDcAZ GuoOr2avyNVn/vTXdNLStCzCNudssblu93a3+FoC0j4S01ooFr+EP3bzc6va3FdGE5VK 4yVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="gqJ/9G04"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170902db0500b001afdfd0b36dsi4019567plx.359.2023.05.26.04.31.11; Fri, 26 May 2023 04:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="gqJ/9G04"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243011AbjEZLHx (ORCPT + 99 others); Fri, 26 May 2023 07:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243128AbjEZLHm (ORCPT ); Fri, 26 May 2023 07:07:42 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A65991A6; Fri, 26 May 2023 04:07:38 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34QAMLdZ004954; Fri, 26 May 2023 11:07:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=L+UZMrct2CdggSukP8m/AcuMAdqy/CL+Bb+0b7+crxA=; b=gqJ/9G04QAEQwo7LOKA9XxnbU/pVHVPPx7UKB9xCOl/mvI+E4oTPwWBdJiPWQGZhYnq8 0H754kpa0vQtG9JGAH+Ekc1J/dlcrUrquzGfEAs/+E1rlJ+/u8vK8seixUzuEGZfAq/k c/XUVglKRLmx84k5bQhAdRg4yDE4zhYpy442QGEpi3ffRMonyD5gdndlofUJQvqAfFUO JmPpdyMXNqv2Oaoau5ylbEzmhczFzThFjv/TlPEnGc2duqfqa3YMrIro3u3PnvU8Jj9p TLSA91N7drid00/DyW7zs6myrlRgPyvB25nkYVFXDHdkdOSncGoWbFQ5LR9qEOUN0qMt tg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qtp4wgq64-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:34 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34QB7X6N018130 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 May 2023 11:07:33 GMT Received: from viswanat-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 26 May 2023 04:07:28 -0700 From: Vignesh Viswanathan To: , , , , , , , , , CC: , , , , , Vignesh Viswanathan Subject: [PATCH 3/3] arm64: dts: qcom: add few more reserved memory region Date: Fri, 26 May 2023 16:36:53 +0530 Message-ID: <20230526110653.27777-4-quic_viswanat@quicinc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230526110653.27777-1-quic_viswanat@quicinc.com> References: <20230526110653.27777-1-quic_viswanat@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 8ZDnz2KCQen1LpyHc9BEhYjD9oNC1A1I X-Proofpoint-ORIG-GUID: 8ZDnz2KCQen1LpyHc9BEhYjD9oNC1A1I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-26_01,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 adultscore=0 clxscore=1015 suspectscore=0 malwarescore=0 bulkscore=0 impostorscore=0 mlxlogscore=580 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305260095 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766956134146940236?= X-GMAIL-MSGID: =?utf-8?q?1766956134146940236?= In IPQ SoCs, bootloader will collect the system RAM contents upon crash for the post morterm analysis. If we don't reserve the memory region used by bootloader, obviously linux will consume it and upon next boot on crash, bootloader will be loaded in the same region, which will lead to loose some of the data, sometimes we may miss out critical information. So lets reserve the region used by the bootloader. Similarly SBL copies some data into the reserved region and it will be used in the crash scenario. So reserve 1MB for SBL as well. While at it, drop the size padding in the reserved memory region, wherever applicable. Signed-off-by: Vignesh Viswanathan --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 16 +++++++++++++--- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 14 ++++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 2d77a8336111..fc64a5efbe2c 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -156,18 +156,28 @@ rpm_msg_ram: memory@60000 { no-map; }; + bootloader@4a100000 { + reg = <0x0 0x4a100000 0x0 0x400000>; + no-map; + }; + + sbl@4a500000 { + reg = <0x0 0x4a500000 0x0 0x100000>; + no-map; + }; + tz: memory@4a600000 { - reg = <0x0 0x4a600000 0x0 0x00400000>; + reg = <0x0 0x4a600000 0x0 0x400000>; no-map; }; smem_region: memory@4aa00000 { - reg = <0x0 0x4aa00000 0x0 0x00100000>; + reg = <0x0 0x4aa00000 0x0 0x100000>; no-map; }; q6_region: memory@4ab00000 { - reg = <0x0 0x4ab00000 0x0 0x05500000>; + reg = <0x0 0x4ab00000 0x0 0x5500000>; no-map; }; }; diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 00e559de00fb..0793b691a095 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -86,17 +86,27 @@ reserved-memory { #size-cells = <2>; ranges; + bootloader@4a600000 { + reg = <0x0 0x4a600000 0x0 0x400000>; + no-map; + }; + + sbl@4aa00000 { + reg = <0x0 0x4aa00000 0x0 0x100000>; + no-map; + }; + smem@4ab00000 { compatible = "qcom,smem"; - reg = <0x0 0x4ab00000 0x0 0x00100000>; + reg = <0x0 0x4ab00000 0x0 0x100000>; no-map; hwlocks = <&tcsr_mutex 0>; }; memory@4ac00000 { + reg = <0x0 0x4ac00000 0x0 0x400000>; no-map; - reg = <0x0 0x4ac00000 0x0 0x00400000>; }; };