Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1038229rdb; Fri, 1 Dec 2023 05:41:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IExBWj7xkPYGJuL6FYihtXPRKcSj1sqXvedWoBYh3uQQNTQbrbRaTZ042BPfDGxbNueBlcl X-Received: by 2002:a17:902:c944:b0:1cf:a2e7:f843 with SMTP id i4-20020a170902c94400b001cfa2e7f843mr33228692pla.23.1701438084375; Fri, 01 Dec 2023 05:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701438084; cv=none; d=google.com; s=arc-20160816; b=S/kgBbQfJOj2DI2mj+NcxqCQ+FxNeriTyF5I8WuqzVu9UNqFUvR/EmA9ehzQto9GKJ 9559z2+LXpIsN/PP7bTCYklXhaXISSPcewHdEIcEHlsZunI6k50HCX0BhLtGV32cvSKG odanxWeZIjWl7J94pl0IJQjClMTIUOl5n1ngHtfo6w7V8EhayjMudDIsp7dAEPR6t1Lh 3niaD7tjFiw94wotgGnEA4ImfO9zhqguL3XY19lYLPF0tDVgmKUsG0V5VGjKvsdrqemw Ol8GG3jxTTHC8dBi/45yH2Q31eh8PzXbWnMx5DtE73CznThQ90rgMPVS/PP72Jcz6NMo IRjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CkGWBcHneCmd2qfceAP+MTCrLIRQFrXItDvan7l6pD0=; fh=E+lq98wCBOsPExD6aJDRlPw8MIlHTuAG8Pq4cLvRGcc=; b=QNbU3/YL1bpEcoUy/rXEqSkL79Cqt0WsDtiv8gV/Nv0E7Cd/zPIl8kupuYDxXtfMK6 N4qCoesacwkeAsYnnskoZPDS2y2aWXYHVckRHYQrwHL3v0uF1Cv9UhrfYX6RrZBjkL8V iFrpyvbX+ImKMDu7ogDiRErKoYvBeIbhHrGTnl7X2ndLz/uPYKKpWSTKKOclnWnocrV8 lxfo1WM5whbUSZmuRqgPrLbzxDg+cJIMXY2pYjn3vG514pP3iQcEoCAQaNfsPBz6QOWf G5lBRjlU2MyK3Gim0n7dYzboDwYezUnkDnNrLmwirAacVqNg7h3iPrqftwWeAfmF2J5Z BEoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IAmDk8Mh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b8-20020a170902d50800b001cfdd31f20esi3343616plg.267.2023.12.01.05.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 05:41:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IAmDk8Mh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E07CB8087DE7; Fri, 1 Dec 2023 05:40:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379017AbjLANko (ORCPT + 99 others); Fri, 1 Dec 2023 08:40:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378993AbjLANkn (ORCPT ); Fri, 1 Dec 2023 08:40:43 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 482A710F8; Fri, 1 Dec 2023 05:40:49 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B1BHMNS020177; Fri, 1 Dec 2023 13:40:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=CkGWBcHneCmd2qfceAP+MTCrLIRQFrXItDvan7l6pD0=; b=IAmDk8MhLrDXPneX6S98BKEa7zFVYg2QLHNqI5X8Vt99l0zsMOoUVPv1i83bVq2GCtmV U57wihOY3LIBlTX/C/1/5BEnnk0PSHpUzADqCVlb0Aiief3FdL0vFvJTdXQgQm5tZHE2 oLMIV6BnLMHb5ifYoBjnjGkjTEsW8ftxdFP7aegfU1UHemMGT8AHcFB52zu+K0SH2PV9 jXhfAQhjCReLeFk+OELIpm6ol/8JqBa2akis+pss4LPuRKpdYcfzIuIx93YdIH+IYwc7 2oBnvlzHcz14mZopR+GlhNDig1F9wFqfEkNfwVlA8hZAhRA11fMgijbmU4S10Oo7/lPa Fg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uq3r2htu7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 01 Dec 2023 13:40:45 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B1DeiSi016470 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 13:40:44 GMT Received: from [10.216.10.184] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 1 Dec 2023 05:40:41 -0800 Message-ID: <93419ba3-851c-48ab-828d-0d68b2cf45d4@quicinc.com> Date: Fri, 1 Dec 2023 19:10:40 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: ipq5018: add few more reserved memory regions Content-Language: en-US To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , References: <20231025-ipq5018-misc-v1-1-7d14fde97fe7@quicinc.com> From: Kathiravan Thirumoorthy In-Reply-To: <20231025-ipq5018-misc-v1-1-7d14fde97fe7@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: h_MCj--EuQUd_TuhAPJTo5VDvwjdkbA_ X-Proofpoint-ORIG-GUID: h_MCj--EuQUd_TuhAPJTo5VDvwjdkbA_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-01_11,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 mlxlogscore=631 bulkscore=0 spamscore=0 priorityscore=1501 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312010093 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 05:41:00 -0800 (PST) On 10/25/2023 10:12 PM, Kathiravan Thirumoorthy wrote: > Like all other 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, enable the SMEM support along with TCSR mutex. Gentle Reminder... > > Signed-off-by: Kathiravan Thirumoorthy > --- > arch/arm64/boot/dts/qcom/ipq5018.dtsi | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi > index 0b739077ed70..6fbdac7a73f5 100644 > --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi > @@ -82,6 +82,24 @@ reserved-memory { > #size-cells = <2>; > ranges; > > + bootloader@4a800000 { > + reg = <0x0 0x4a800000 0x0 0x200000>; > + no-map; > + }; > + > + sbl@4aa00000 { > + reg = <0x0 0x4aa00000 0x0 0x100000>; > + no-map; > + }; > + > + smem@4ab00000 { > + compatible = "qcom,smem"; > + reg = <0x0 0x4ab00000 0x0 0x100000>; > + no-map; > + > + hwlocks = <&tcsr_mutex 3>; > + }; > + > tz_region: tz@4ac00000 { > reg = <0x0 0x4ac00000 0x0 0x200000>; > no-map; > @@ -142,6 +160,12 @@ gcc: clock-controller@1800000 { > #power-domain-cells = <1>; > }; > > + tcsr_mutex: hwlock@1905000 { > + compatible = "qcom,tcsr-mutex"; > + reg = <0x01905000 0x20000>; > + #hwlock-cells = <1>; > + }; > + > sdhc_1: mmc@7804000 { > compatible = "qcom,ipq5018-sdhci", "qcom,sdhci-msm-v5"; > reg = <0x7804000 0x1000>; > > --- > base-commit: fe1998aa935b44ef873193c0772c43bce74f17dc > change-id: 20231025-ipq5018-misc-414b32eed881 > > Best regards,