Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30984496rwd; Thu, 6 Jul 2023 13:49:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxdNMQa+qEjBepOUzDGd6AOETTjs5DQk8vPF450NqLn8JqvS4FKT9LD0LktOdZwIVb5hft X-Received: by 2002:a05:6358:e49e:b0:134:d0ca:c528 with SMTP id by30-20020a056358e49e00b00134d0cac528mr3249344rwb.3.1688676554479; Thu, 06 Jul 2023 13:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688676554; cv=none; d=google.com; s=arc-20160816; b=bR1pNVFQaPMM/FfIlotLHFOBb93wfXEZQRSA8vLdwOo38oDaGR3Mj06QvUSsu5F2kr F95247zFUnHF7ANNGDqwFVzOS/BqMspw219sPJPAtUdLzO3G2iBPBFkKXal+UI0JKk3G bNi248LNPRT7x7MyRcGC7YxT8xYe3XJ2EsdlmQjtqj+ZOgwZrguP0GZXuh/HyxJZCeVq 0RL2cBa9qTWJhJSbUweWmqYyegt1AB/+1LK5X1MZQzPy6BPfIWNWpZ96zLE/+28Pwojt DTknq0GL3KntlzEi2VMxWifR/iIxRr3VA13Lltm9CzwR/5+3AOtVwFQ/wnLfjmV8OGU9 Zubw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=r+08VVPqxHZ0K0fHRIpFjtGTIkMZM52ymUId2P9H+MY=; fh=7FDJYXw0kf2YWYrVui8AkyYg9HdMbs30crnruk6g7mU=; b=bFU04GRckcu8zRBBqTPKhPG5mj0POEweBJ59VyzKRmsJUZ+1gW2Sx9wxzzcvgZEp8v 7OeOIENvqkPt10sX2kGFNl8EVcqnoITEoIGChCWAyoFQJ+VPSox4eZSqa4O90pZRQkKV E5Ixjq8NjZXuWwdrhWNZBv/MeRaPRQCo6wAct5NdH4V0vz2E0BOzurLaz6CDWMVAOI9v 2clCWiwIJGudqBzJAZQTZFvqZnOrMEsyxb2xSCceqKfZrzJh7fOMaFdGP6ib5EWgsBzI P75GNzHlsUCW35dCO+RIXsLby+cwaQHuuJ++z2lj9iygz64gFgoI4TfQzJA8LYgwi0V5 0wYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XK1G7jQM; 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 k5-20020a63d845000000b00557807d78e2si2117999pgj.555.2023.07.06.13.49.01; Thu, 06 Jul 2023 13:49:14 -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=XK1G7jQM; 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 S232757AbjGFU2Q (ORCPT + 99 others); Thu, 6 Jul 2023 16:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232684AbjGFU2B (ORCPT ); Thu, 6 Jul 2023 16:28:01 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6CB1BFF; Thu, 6 Jul 2023 13:27:59 -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 366DrvQa008328; Thu, 6 Jul 2023 20:27:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=r+08VVPqxHZ0K0fHRIpFjtGTIkMZM52ymUId2P9H+MY=; b=XK1G7jQMGXIYAGgyo/sedVl5qMv+Rsd11XoIq3p/whaGoqrHY8TYesSDNjzb253TsXi6 efoFqNwP/KcvyS5Ky0ZMgoPNeNlpXFEeH0xzbeh3NCf7qdBJd+NOCMoXdvPre6DWBwuT 7v5c/6zivp2HHo+qwCX3Njo3MOHjHZdsPnKUxrlCrwujFdGQP2OsSwKdV/PT8Sk/TbLL qiMTh1HWbw+v03g1ou47Ix04Ofc4rpQIGh7WaLoTNYu3LTGfrQlhk8LusThchcs4j8X6 lq61F9xEUEsCu5FNQP/ffwn6g2h9ztB0FKypHzUqdN1xPjFu7BqKj2X/zZl3yzQaEjKX NA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rntctscqc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 20:27:47 +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 366KRlmY013296 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Jul 2023 20:27:47 GMT Received: from hu-rmccann-lv.qualcomm.com (10.49.16.6) 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.1118.30; Thu, 6 Jul 2023 13:27:46 -0700 From: Ryan McCann Date: Thu, 6 Jul 2023 13:26:49 -0700 Subject: [PATCH v3 3/6] drm/msm/dpu: Define names for unnamed sblks MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230622-devcoredump_patch-v3-3-83601b72eb67@quicinc.com> References: <20230622-devcoredump_patch-v3-0-83601b72eb67@quicinc.com> In-Reply-To: <20230622-devcoredump_patch-v3-0-83601b72eb67@quicinc.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter CC: Rob Clark , , , , , , Ryan McCann X-Mailer: b4 0.13-dev-8a804 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688675265; l=3066; i=quic_rmccann@quicinc.com; s=20230622; h=from:subject:message-id; bh=2jw3Libl/MN1xA7qFDAN/7NPEqqnSXyF25x7R+51dr8=; b=eTDOBW2XlIu9VOv96gdoS2ZEkstrUalO59XTxMmOeJNxy93HIy7dSkmIVyyays5tBAFW8hIg1 AF8kCCKq0IZAnJnl/UoIn1R4M51yL2ITs4CkGpteh89vKAr6PDsE8U5 X-Developer-Key: i=quic_rmccann@quicinc.com; a=ed25519; pk=d/uP3OwPGpj/bTtiHvV1RBZ2S6q4AL6j1+A5y+dmbTI= X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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: nemFfbWS1PxSMilua0lgTTzLHM2sL9Qb X-Proofpoint-ORIG-GUID: nemFfbWS1PxSMilua0lgTTzLHM2sL9Qb 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-06_15,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=912 priorityscore=1501 adultscore=0 spamscore=0 phishscore=0 malwarescore=0 impostorscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060179 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 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 Some sub-blocks in the hw catalog have not been given a name, so when the registers from that block are dumped, there is no name to reference. Define names for relevant sub-blocks to fix this. Signed-off-by: Ryan McCann --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index 9f9d5ac3992f..79e495dbc11d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -444,12 +444,12 @@ static const struct dpu_lm_sub_blks qcm2290_lm_sblk = { * DSPP sub blocks config *************************************************************/ static const struct dpu_dspp_sub_blks msm8998_dspp_sblk = { - .pcc = {.id = DPU_DSPP_PCC, .base = 0x1700, + .pcc = {.name = "pcc", .id = DPU_DSPP_PCC, .base = 0x1700, .len = 0x90, .version = 0x10007}, }; static const struct dpu_dspp_sub_blks sm8150_dspp_sblk = { - .pcc = {.id = DPU_DSPP_PCC, .base = 0x1700, + .pcc = {.name = "pcc", .id = DPU_DSPP_PCC, .base = 0x1700, .len = 0x90, .version = 0x40000}, }; @@ -465,19 +465,19 @@ static const struct dpu_dspp_sub_blks sm8150_dspp_sblk = { * PINGPONG sub blocks config *************************************************************/ static const struct dpu_pingpong_sub_blks sdm845_pp_sblk_te = { - .te2 = {.id = DPU_PINGPONG_TE2, .base = 0x2000, .len = 0x0, + .te2 = {.name = "te2", .id = DPU_PINGPONG_TE2, .base = 0x2000, .len = 0x0, .version = 0x1}, - .dither = {.id = DPU_PINGPONG_DITHER, .base = 0x30e0, + .dither = {.name = "dither", .id = DPU_PINGPONG_DITHER, .base = 0x30e0, .len = 0x20, .version = 0x10000}, }; static const struct dpu_pingpong_sub_blks sdm845_pp_sblk = { - .dither = {.id = DPU_PINGPONG_DITHER, .base = 0x30e0, + .dither = {.name = "dither", .id = DPU_PINGPONG_DITHER, .base = 0x30e0, .len = 0x20, .version = 0x10000}, }; static const struct dpu_pingpong_sub_blks sc7280_pp_sblk = { - .dither = {.id = DPU_PINGPONG_DITHER, .base = 0xe0, + .dither = {.name = "dither", .id = DPU_PINGPONG_DITHER, .base = 0xe0, .len = 0x20, .version = 0x20000}, }; @@ -517,13 +517,13 @@ static const struct dpu_pingpong_sub_blks sc7280_pp_sblk = { * DSC sub blocks config *************************************************************/ static const struct dpu_dsc_sub_blks dsc_sblk_0 = { - .enc = {.base = 0x100, .len = 0x100}, - .ctl = {.base = 0xF00, .len = 0x10}, + .enc = {.name = "enc", .base = 0x100, .len = 0x100}, + .ctl = {.name = "ctl", .base = 0xF00, .len = 0x10}, }; static const struct dpu_dsc_sub_blks dsc_sblk_1 = { - .enc = {.base = 0x200, .len = 0x100}, - .ctl = {.base = 0xF80, .len = 0x10}, + .enc = {.name = "enc", .base = 0x200, .len = 0x100}, + .ctl = {.name = "ctl", .base = 0xF80, .len = 0x10}, }; #define DSC_BLK(_name, _id, _base, _features) \ -- 2.25.1