Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2650395rwp; Fri, 14 Jul 2023 09:09:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlERe10IFPved0RY5mgAu8hO5Em/Lmec+fJ5ljnZLzkmQGEQmiQJsSEyVwcEPNiMKHcsIH0q X-Received: by 2002:a17:902:930c:b0:1b6:771a:3516 with SMTP id bc12-20020a170902930c00b001b6771a3516mr3202248plb.22.1689350984528; Fri, 14 Jul 2023 09:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689350984; cv=none; d=google.com; s=arc-20160816; b=heTwnSZ9wUY2DJ5LrLxGI0MNoggFI3d+KOfhmG/w1gzbe8oAnVcC1X/6mzUbAfL/aZ fLArchuxLXsQ8tAjkVTjGN5gzmMQE7shT/+gbQ9kpUNiGj/Udy4JgzGcU3oTeVzbC9GH aITs4boPKA6FtySvxkY8+M3vhXhGKPrJln+MTX4nSzgWZjKTWM3NdyMevr3vpOedMYC4 e71ljTYpcw5GLDgjaCg1AIRd0rPbfUeb7YNu/XATLnxGgNy66t0b40l13kjp00TowUQa vcr1Vov+zTTLFx6JyjJJx5Q0cb/p/U6VlO73Jo+ZKWryms/wOZztPCImYTuK4rHpvnAc 8UIg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KlTyfug7EZTBZKaQpxZzWcVPGIFRszohTvpxdR5Kc6k=; fh=L9MHkHAjbyqUb96y2Q/tGtQb/I3Sb/MlQCAlJagBL+o=; b=Fak6DFzW3WppOYxTu33Us5ae7xMcneIkg1Yp5BBI3y+JbpQ8JyCkxxKnphgD9/r9iP zWnqwHg6fy/a4mWxI1m6taqLp9rIshs3YfumGulJ0qjWhTLrCTaHQIH9C4WR02FFP9GZ 2kF5xBf6p2tyZfUen8P/ILM3/Qc5CVuSme05qrHgV9h+6WavjZIupd+GfQ6LpTjAgPTC IZ7CTUN0HcWexGR86apcobw6oeEjX5xAB+Ak98HQp2+U1VS0Z77KaeelYaarkZaH/tmH 1//6uDE92qluOkLbHViZ3vS3dONTaN0Jc3snz5Gr+RBfJF6KYIFIQUu0YuL1zUsoxrlC +Zmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ixhfhWtH; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a170902c41200b001b676f312besi7675669plk.2.2023.07.14.09.09.32; Fri, 14 Jul 2023 09:09:44 -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=ixhfhWtH; 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 S235973AbjGNP0h (ORCPT + 99 others); Fri, 14 Jul 2023 11:26:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236019AbjGNP0f (ORCPT ); Fri, 14 Jul 2023 11:26:35 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC42E30C0; Fri, 14 Jul 2023 08:26:34 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36ECbstq019424; Fri, 14 Jul 2023 15:26:12 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=KlTyfug7EZTBZKaQpxZzWcVPGIFRszohTvpxdR5Kc6k=; b=ixhfhWtHAH5MMBtVuvcB7T+CAwWuyvrqrit2WO+RxmSM4gZFUohL3Dt+SYWt6TAJbDsv UqNrJNSDvfOrEPizTj27/tMO1j/KiWGurbjxu4kiCQyewmL0rHY9VQAZFe/riA9QwqJx ZODC1f0JfTBrmnpyoqyh2DrjA45KDwymCTZtpl+TQ5fgLQW11OeXc+CC/l+ozDQJ0Uu6 oAz7PziZ5lt2fqTKTHi6GMJcq08Si80VrKvqWyrMbBOb/ynoZNJdnLpDLQvnnveZfnUv glFvbv2Bf6gokOfQnvxVMNzTKK/ADJJDDfdkzsYpfQQDQWYLook+8liu+lL5Nc0NclSr TQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rtpts23jr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 15:26:12 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36EFQBK1031783 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Jul 2023 15:26:11 GMT Received: from [10.216.56.39] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Fri, 14 Jul 2023 08:25:59 -0700 Message-ID: Date: Fri, 14 Jul 2023 20:55:26 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 00/21] Add Qualcomm Minidump kernel driver related support To: Kathiravan T , , , , , , , , , , , , , , , CC: , , , , , , , References: <1687955688-20809-1-git-send-email-quic_mojha@quicinc.com> Content-Language: en-US From: Mukesh Ojha In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: k6kW04K-HSKuFwXlBT09sQYlyELKk4zM X-Proofpoint-ORIG-GUID: k6kW04K-HSKuFwXlBT09sQYlyELKk4zM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-14_06,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 phishscore=0 spamscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307140140 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 > > Hi Mukesh, > > For IPQ chipsets, for the crashdump to work, we need the below patch > > firmware: scm: Modify only the download bits in TCSR register > > can you post the below patches separately? Looks like minidump will take > some time and also I don't see any dependencies for these to go along > with the minidump. Given that, will it be possible to post the below > patches separately? > >   firmware: qcom_scm: provide a read-modify-write function >   pinctrl: qcom: Use qcom_scm_io_update_field() >   firmware: scm: Modify only the download bits in TCSR register > > Do let us know if we can take these patches and post it separately. Yes, we can post this separately. -Mukesh > >> >>   Documentation/admin-guide/index.rst                |   1 + >>   Documentation/admin-guide/qcom_minidump.rst        | 293 +++++++++++ >>   .../devicetree/bindings/soc/qcom/qcom,ramoops.yaml | 126 +++++ >>   MAINTAINERS                                        |  15 + >>   arch/arm64/boot/dts/qcom/sm8450.dtsi               |  12 + >>   arch/arm64/configs/defconfig                       |   4 + >>   drivers/firmware/Kconfig                           |  11 - >>   drivers/firmware/qcom_scm.c                        |  85 ++- >>   drivers/pinctrl/qcom/pinctrl-msm.c                 |  12 +- >>   drivers/remoteproc/qcom_common.c                   | 142 +---- >>   drivers/soc/qcom/Kconfig                           |  39 ++ >>   drivers/soc/qcom/Makefile                          |   3 + >>   drivers/soc/qcom/qcom_minidump.c                   | 582 >> +++++++++++++++++++++ >>   drivers/soc/qcom/qcom_minidump_internal.h          |  98 ++++ >>   drivers/soc/qcom/qcom_minidump_smem.c              | 387 ++++++++++++++ >>   drivers/soc/qcom/qcom_pstore_minidump.c            | 210 ++++++++ >>   drivers/soc/qcom/smem.c                            |   9 + >>   fs/pstore/ram.c                                    |  26 +- >>   include/linux/firmware/qcom/qcom_scm.h             |   2 + >>   include/linux/pstore_ram.h                         |   2 + >>   include/soc/qcom/qcom_minidump.h                   |  64 +++ >>   kernel/kallsyms.c                                  |   2 +- >>   22 files changed, 1973 insertions(+), 152 deletions(-) >>   create mode 100644 Documentation/admin-guide/qcom_minidump.rst >>   create mode 100644 >> Documentation/devicetree/bindings/soc/qcom/qcom,ramoops.yaml >>   create mode 100644 drivers/soc/qcom/qcom_minidump.c >>   create mode 100644 drivers/soc/qcom/qcom_minidump_internal.h >>   create mode 100644 drivers/soc/qcom/qcom_minidump_smem.c >>   create mode 100644 drivers/soc/qcom/qcom_pstore_minidump.c >>   create mode 100644 include/soc/qcom/qcom_minidump.h >>