Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1097987rda; Mon, 23 Oct 2023 02:22:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgU9hNrTPBa24vz5lLAz2iM/pumoF2t6zebIJnllhx0GPeBXhxgrIrnst7swHrI7DzBGZK X-Received: by 2002:a05:6358:261c:b0:134:ea45:53d7 with SMTP id l28-20020a056358261c00b00134ea4553d7mr9959984rwc.26.1698052938099; Mon, 23 Oct 2023 02:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698052938; cv=none; d=google.com; s=arc-20160816; b=C5CBhqwQGdFs/lzEa+Zm1OnqHZggBp4vben6CNJWxviApe9RyTfrB1ufr3hMk1OiJZ nsdrr8QrHe9LpMoMLPwb2tuRkDfbIrm0pmBBhASPSIaf36KN9fAUXWZPsbvPtteWoToA preDhVevW29x70v+o3z9+/6F6PcQgTzeYr9GV5IoYjpzwx8f9o7QcC+ummgixvzVTqHk rC3fB3jexD88JTs5Z6I7u7eZjE+NzCyFvToLFea+i+Uihj+R1B08hgWlY6zxNu1uVFsB av4cSZnXSjsNGVENIjzvsz+hAJDxbEoKAqPs4gR8huySb1LlQneItXhL2RLzGVR39OR4 tsVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4+tRrjJHW/bnHCSG3tKfhqziZi7X03Kxepqnry+DFSc=; fh=oG/nA4ZGdePqJPIlDBHYYjR6Qg9MrYF2KMX31XFx4X4=; b=VtX7GHIbBVcaNm/uzTI6k+91I5RmYv98jFA+5DNDE0MHWxOfS5VOdVk98oSmlllZBG aUcSNzQMpJGeh0dU7OIe//ubNFfoYuo22g3z2S7iAbCXijXW+feEVmI/EAe9DPcNErNg p8+g7LIjXS3LVjnNTKzUZVbzR36NP/djHKKLO/M5sNoSj6WfGBICboZPkHRC8vrXHHBH mxqaytkmOnZBAQnQlIR9aBzQ+7xelBXAsddDdvfke6nqengceeT1az98jFGtuHTkAls5 tFQNMFiH1G0OR/gGn+jvPRRmaUF2mTwQzHnNwNar9m0nT7+sWZDss10VYJ2+NSuTmW/4 pOVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=e7H46TRX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cb12-20020a056a02070c00b00578666614f1si6547792pgb.63.2023.10.23.02.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 02:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=e7H46TRX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 96AE78043AFB; Mon, 23 Oct 2023 02:22:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233068AbjJWJWB (ORCPT + 99 others); Mon, 23 Oct 2023 05:22:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232934AbjJWJVo (ORCPT ); Mon, 23 Oct 2023 05:21:44 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B448810D3; Mon, 23 Oct 2023 02:21:40 -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 39N8Mr5o029770; Mon, 23 Oct 2023 09:21:37 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-type; s=qcppdkim1; bh=4+tRrjJHW/bnHCSG3tKfhqziZi7X03Kxepqnry+DFSc=; b=e7H46TRXMqYfDXMEDU99U/Hs/0InS3KfetgoRNVQ73E2F5WiwgDfwBF/PX0Hk0I3AiT8 lqAHp/oFVej6Pqmf3hRojCyo0Q/AICK87vphBShjdKXp9AKGAatYaaazFKDgt+HEqdSY D0UZbWomDm+H5V5l7Nw7fLpYien3UQnmck7pjC5EK7wgC7jke9g92kbPS0ZhmdenLr4b NyiOsOQala9wpSHakQG0KeypnIhGfFdxPX+jdtrr8mnfd+WKvOOk3CWsZZuuS6HeInlb edxJGNbJvcKQeUSjwapycjk9I7iqfrcYI0YjGmps17bLVBDiW39/fKxCuEUv+ytFzfbJ Lw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tv6873krx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 09:21:37 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39N9LZYg018595 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 09:21:36 GMT Received: from zhenhuah-gv.qualcomm.com (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.39; Mon, 23 Oct 2023 02:21:30 -0700 From: Zhenhua Huang To: , , , , , CC: , , , , , Zhenhua Huang Subject: [PATCH v1 5/5] arm64: dts: qcom: sm8250: Add memory dump node Date: Mon, 23 Oct 2023 17:20:57 +0800 Message-ID: <1698052857-6918-6-git-send-email-quic_zhenhuah@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1698052857-6918-1-git-send-email-quic_zhenhuah@quicinc.com> References: <1698052857-6918-1-git-send-email-quic_zhenhuah@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain 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: KE3nraj1n_KaN-1mmnFlERsTbk5orANf X-Proofpoint-ORIG-GUID: KE3nraj1n_KaN-1mmnFlERsTbk5orANf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-23_06,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=744 impostorscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310230080 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 02:22:15 -0700 (PDT) Add device node for memory dump on sm8250. Usage of memory dump is to populate configuration in reserved memory, allowing firmware to do the dump accordingly. Signed-off-by: Zhenhua Huang --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index a4e58ad..d379524 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -674,6 +674,11 @@ reg = <0x0 0x80000000 0x0 0x0>; }; + mem-dump { + compatible = "qcom,mem-dump"; + memory-region = <&dump_mem>; + }; + pmu { compatible = "arm,armv8-pmuv3"; interrupts = ; @@ -851,6 +856,13 @@ reg = <0x0 0x8bf00000 0x0 0x4600000>; no-map; }; + + dump_mem: mem-dump-region { + compatible = "shared-dma-pool"; + size = <0 0x2800000>; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + }; }; smem { @@ -5424,6 +5436,25 @@ }; }; + sram@146bf000 { + compatible = "qcom,sm8250-imem", "syscon", "simple-mfd"; + reg = <0 0x146bf000 0 0x1000>; + ranges = <0 0 0x146bf000 0x1000>; + + #address-cells = <1>; + #size-cells = <1>; + + mem-dump-table@10 { + compatible = "qcom,qcom-imem-mem-dump-table"; + reg = <0x10 0x8>; + }; + + mem-dump-table-size@724 { + compatible = "qcom,qcom-imem-mem-dump-table-size"; + reg = <0x724 0x8>; + }; + }; + apps_smmu: iommu@15000000 { compatible = "qcom,sm8250-smmu-500", "qcom,smmu-500", "arm,mmu-500"; reg = <0 0x15000000 0 0x100000>; -- 2.7.4