From patchwork Wed Mar 22 13:30:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mukesh Ojha X-Patchwork-Id: 73428 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2348297wrt; Wed, 22 Mar 2023 06:42:57 -0700 (PDT) X-Google-Smtp-Source: AK7set+szTOKuu9GUAnawqy1sZjSqHpqTxgyTYLXp95/6yrh/l4VbUcPPu9YBeVcUvtl2wkN5Q/S X-Received: by 2002:a17:90a:1b69:b0:23d:335:938 with SMTP id q96-20020a17090a1b6900b0023d03350938mr3924968pjq.3.1679492576795; Wed, 22 Mar 2023 06:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679492576; cv=none; d=google.com; s=arc-20160816; b=u4FBlsia+X+wgDdnpSqPKY92wHV/dKrlppkfWS3bZ0xJ7JKUIlBvv2tdrGy84MgAM/ nIvP0TOIlWR14Cm5IGJrbS44rrU9VXnv/59CAgT0jQ7+9FfH1u+AM1pEgb5xFV15276D ydeF7MoIW7n0Zepi2rH3WvMxTY/zweKCH6+5+N360IdVCaxO3400nrsmeHAazp2kCnKw BegqFbP87R9ubF6FvZAXT1IjQaMGmYy2mhNtRQ8L+MZkp4pnDDasMH5+loagNEee1y8D 9wlw+tHi1t6m6nsBtPPXQYvgmjXpqpB2TLgmiAcY0roaxeyc7VclGPs8XfkSk5ByuJCv XMRg== 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=CM8U+KKZDKpPpHd9sqO/MW+af/nOdotFtkjh1jMegl4=; b=0uaOoya4OtcOb3FrZU5jaWhxTss8KSvG6QTS+STy97liBYEUI6qmTBrt0rynYLPiBa 6D/K7Kq7lBvflQNQdok/5n4BZHbw1HKNA/hj2SPPSk7yuapzVTnV9pgaZKgdi1tYAGJg hei6djl9RUptxAB/54XJ8rfTwriI8fRC5HhWr7I9bPiGq0uhanf268yIFsa10eiMJLRD s2wqcd7b6zWOfHWRp+xNAMn7PdUwboE0NeLj1hBugD8m9J+uZwvMEIWtVl1CvdBljZyB EqniHgyIVT/9yzs2AKm6udrAa7vC0U1+vVMJ4TQXDGrXzHRiiLQK8CqGZb9+HDzSB+Mf 0v+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WXYQfGsn; 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 b5-20020a17090a8c8500b0023f7ec9ddaasi11768835pjo.36.2023.03.22.06.42.43; Wed, 22 Mar 2023 06:42:56 -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=WXYQfGsn; 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 S229906AbjCVNb2 (ORCPT + 99 others); Wed, 22 Mar 2023 09:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjCVNbX (ORCPT ); Wed, 22 Mar 2023 09:31:23 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63126231C; Wed, 22 Mar 2023 06:31:20 -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 32M42eHt012811; Wed, 22 Mar 2023 13:30:46 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=CM8U+KKZDKpPpHd9sqO/MW+af/nOdotFtkjh1jMegl4=; b=WXYQfGsnxqZeCD8eZSLVRUVnlVrI/nu0WrdwFr/gqVp1g64M8w4CzV6qWY18aVHP+voD JVGpcB1baJQ74sGhgf97EeMP2r5Xr0j93UN2hitCO6mIjZoz/vOJ+X+yrJmC67JjITHN hMY7fFxjSoJEgHoJDIx46qqHFsFDOadPRSNzQkF/ql6WeXNg5ugVj90io71ohP9Iwz/U NxJi7yWPcnqqEhzeJKTVF8L+6b094VKCUO1JQBilPet80rlBdgew0gwHNbL9m7vErFk8 VD6nhNANfixfNFurfO+docADe5ewcnlWTU9h6XeCxYA2WoFPhrs6HIBC4pw5G95b1nGb 4A== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pfrk0seaj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2023 13:30:45 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32MDUi9H022127 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Mar 2023 13:30:44 GMT Received: from hu-mojha-hyd.qualcomm.com (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.986.41; Wed, 22 Mar 2023 06:30:40 -0700 From: Mukesh Ojha To: , , , , , , , , CC: , , , , , , "Mukesh Ojha" Subject: [PATCH v2 1/6] remoteproc: qcom: Expand MD_* as MINIDUMP_* Date: Wed, 22 Mar 2023 19:00:12 +0530 Message-ID: <1679491817-2498-2-git-send-email-quic_mojha@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1679491817-2498-1-git-send-email-quic_mojha@quicinc.com> References: <1679491817-2498-1-git-send-email-quic_mojha@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: 2cJGPxIxWjCHAWzRTm5karGgzoKuCRC2 X-Proofpoint-ORIG-GUID: 2cJGPxIxWjCHAWzRTm5karGgzoKuCRC2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-22_11,2023-03-22_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303220098 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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?1761075608203401341?= X-GMAIL-MSGID: =?utf-8?q?1761075608203401341?= Expand MD_* as MINIDUMP_* which makes more sense than the abbreviation. Signed-off-by: Mukesh Ojha --- drivers/remoteproc/qcom_common.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/remoteproc/qcom_common.c b/drivers/remoteproc/qcom_common.c index a0d4238..805e525 100644 --- a/drivers/remoteproc/qcom_common.c +++ b/drivers/remoteproc/qcom_common.c @@ -29,9 +29,9 @@ #define MAX_NUM_OF_SS 10 #define MAX_REGION_NAME_LENGTH 16 #define SBL_MINIDUMP_SMEM_ID 602 -#define MD_REGION_VALID ('V' << 24 | 'A' << 16 | 'L' << 8 | 'I' << 0) -#define MD_SS_ENCR_DONE ('D' << 24 | 'O' << 16 | 'N' << 8 | 'E' << 0) -#define MD_SS_ENABLED ('E' << 24 | 'N' << 16 | 'B' << 8 | 'L' << 0) +#define MINIDUMP_REGION_VALID ('V' << 24 | 'A' << 16 | 'L' << 8 | 'I' << 0) +#define MINIDUMP_SS_ENCR_DONE ('D' << 24 | 'O' << 16 | 'N' << 8 | 'E' << 0) +#define MINIDUMP_SS_ENABLED ('E' << 24 | 'N' << 16 | 'B' << 8 | 'L' << 0) /** * struct minidump_region - Minidump region @@ -125,7 +125,7 @@ static int qcom_add_minidump_segments(struct rproc *rproc, struct minidump_subsy for (i = 0; i < seg_cnt; i++) { memcpy_fromio(®ion, ptr + i, sizeof(region)); - if (le32_to_cpu(region.valid) == MD_REGION_VALID) { + if (le32_to_cpu(region.valid) == MINIDUMP_REGION_VALID) { name = kstrndup(region.name, MAX_REGION_NAME_LENGTH - 1, GFP_KERNEL); if (!name) { iounmap(ptr); @@ -168,8 +168,8 @@ void qcom_minidump(struct rproc *rproc, unsigned int minidump_id, */ if (subsystem->regions_baseptr == 0 || le32_to_cpu(subsystem->status) != 1 || - le32_to_cpu(subsystem->enabled) != MD_SS_ENABLED || - le32_to_cpu(subsystem->encryption_status) != MD_SS_ENCR_DONE) { + le32_to_cpu(subsystem->enabled) != MINIDUMP_SS_ENABLED || + le32_to_cpu(subsystem->encryption_status) != MINIDUMP_SS_ENCR_DONE) { dev_err(&rproc->dev, "Minidump not ready, skipping\n"); return; }