Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11676033rwd; Thu, 22 Jun 2023 17:17:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4u3/6RqJyyBmC3683WVtwrX5K5jGsX6PT1C15sHnOyLiMb5/bNIQA3UjLnyu6LWfhomSCU X-Received: by 2002:a17:90a:d081:b0:25d:d224:9fb9 with SMTP id k1-20020a17090ad08100b0025dd2249fb9mr30975941pju.24.1687479435038; Thu, 22 Jun 2023 17:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687479435; cv=none; d=google.com; s=arc-20160816; b=eifmyTPJZaht6kTBipYzuV/x1lpALuS/0zLJEzrG8jeWX43OlK0RzvLyhM9tMm2AkV 2M+BA0XVX72WcodMcQOj8HW7zS+OrxP+cQnrbF/aCBsDfvhDPl3AEiMxL6GdzMh1iYZm ShNuyWGf0hj0qnDBq85xFyrjntoQrtfUv1NurYZesLM5BaEJ9i+CgQgqAjbsp5meChWW ZEbtheEC/w5LCxDM9dOLYCcUnCQmbyv+tQ0WxCKN5lIM/Pv2cMbC0lxwx6rklcjAPN8B fsqGOFO4RrMRC9PPdSPGqsS3vmrz8+1u0QlJLcOVyWEtEv3RbjB3DE2hKy+TmtL0GIBd j43Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=S7tSUJnPn1dEzpKf2XgWOApz3pVTip7ZL3T8bKa5CHc=; b=mDOEDI112w+UbKH3vAgKAPjPYVeoy4Usd7W7DZC7N7g6Dh8x05McHYYtjN9Gn+bnne zzIsLErZHPa+zO1SPB5VqLgM2t4TG9qVNV/4tNLeahSxJOzx8gSAD1JPz86W8IY+qqA2 t3sy+MhEU7C2D5SBSdt4ZUQRghZfcGUCiA5Srrik3mylcD0nXXpdAbNMxS8oOOM3gVra dvaXs3WDo1bOs2MEAwGKxDpTVjYzx5zeAhXOcdyYbBc53AW6Za8HwOMjx97d0LOpK73F DciOJwuZRRatkg6uVJrv0j3BdSvM+ggXhe9emFYfd8obA0Y7BvYIhLjIaIPowRzOndBY AdLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PcCgbVul; 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 gx5-20020a17090b124500b00259b5211a16si635726pjb.103.2023.06.22.17.16.49; Thu, 22 Jun 2023 17:17:15 -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=PcCgbVul; 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 S231829AbjFVXum (ORCPT + 99 others); Thu, 22 Jun 2023 19:50:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjFVXui (ORCPT ); Thu, 22 Jun 2023 19:50:38 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55BC22133; Thu, 22 Jun 2023 16:50:33 -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 35MNb9rq015791; Thu, 22 Jun 2023 23:50:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : subject : date : message-id : mime-version : content-type : content-transfer-encoding : to : cc; s=qcppdkim1; bh=S7tSUJnPn1dEzpKf2XgWOApz3pVTip7ZL3T8bKa5CHc=; b=PcCgbVulhQSvpozQk8I2Ezf0L1saeGAp0zjU7uRGGsuX3QCm3068WZADpbwE0muKBP4r jje/mubZYeqg26OYzpQz2aZ8f0vIyhKU6UzkcBw6Wv7bm2NupejJJVmnAGxkHloHh3bv 63fg+qMyaO1+FDkMGxsmehgHd0NyqqT9jCgLSQOSQ+gumwEAdUl4zuecI92Gpl5EkjaM e70CA4sCPQ8vV+TFJYKj6IKHuIBbfV9mrzcQefHUJFvCJoEFxVaqiUWD6wGaBQogFvWc cVcA895otqhANDct2/52DcZShSG1ru57IxvpOKq0Y+cPxAumgkm3UAwHnEqV9KpUtH3D Ow== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rc6b2bfv5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 23:50:26 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35MNoP11024816 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 23:50:25 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.986.42; Thu, 22 Jun 2023 16:50:24 -0700 From: Ryan McCann Subject: [PATCH 0/6] Add support to print sub block registers in dpu hw catalog Date: Thu, 22 Jun 2023 16:48:52 -0700 Message-ID: <20230622-devcoredump_patch-v1-0-3b2cdcc6a576@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOTdlGQC/x2NQQqDMBAAvyJ77oKNkJY+oU9okRKTjQk0MeyqC OLfG3scmGF2EOJIAo9mB6Y1SpxyheulARtMHgmjqwyqVV2rlUJHq52Y3JLKp5jZBnT+RnevvdO dgtoNRggHNtmGs3y+MEnCTNuM3yWZ8XQKk4/b//vuj+MHSGGB34cAAAA= 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=1687477824; l=1750; i=quic_rmccann@quicinc.com; s=20230622; h=from:subject:message-id; bh=E88LvHnVfsIwBxX5au8105/4Zv5bvv3I2h+zxYlOCBY=; b=L+m23s/ufPuFXEJGhMF8B51F3f3aKv8nuRs5+XNQhv9eeIofW86ro9RCqDLvU5ZUaWtbOV84m Wra59R6lvMBCNqOu+VR98r6RDRaLxKIM56gs9fdC71cI/+Qce1aQHYR 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: nalasex01a.na.qualcomm.com (10.47.209.196) 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-ORIG-GUID: 3WXUgvl2XMAJTcaNye_gkodPDx-dNWRB X-Proofpoint-GUID: 3WXUgvl2XMAJTcaNye_gkodPDx-dNWRB 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-06-22_17,2023-06-22_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 bulkscore=0 malwarescore=0 spamscore=0 phishscore=0 suspectscore=0 priorityscore=1501 mlxlogscore=785 lowpriorityscore=0 impostorscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306220205 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The purpose of this patch series is to add support to print the registers of sub blocks in the dpu hardware catalog and fix the order in which all hardware blocks are dumped for a device core dump. This involves: 1. Changing data structure from stack to queue to fix the printing order of the device core dump. 2. Removing redundant suffix of sub block names. 3. Removing redundant prefix of sub block names. 4. Eliminating unused variable from relevant macros. 5. Defining names for sub blocks that have not yet been defined. 6. Implementing wrapper function that prints the registers of sub blocks when there is a need. Sample Output of the sspp_0 block and its sub blocks for devcore dump: ======sspp_0====== ...registers ... ====sspp_0_scaler==== ... ... ====sspp_0_csc==== ... ... ====next_block==== ... Signed-off-by: Ryan McCann --- Ryan McCann (6): drm/msm: Update dev core dump to not print backwards drm/msm/dpu: Drop unused num argument from relevant macros drm/msm/dpu: Define names for unnamed sblks drm/msm/dpu: Remove redundant suffix in name of sub blocks drm/msm/disp: Remove redundant prefix in name of sub blocks drm/msm/dpu: Update dev core dump to dump registers of sub blocks drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 90 +++++----- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 194 +++++++++++++++++++--- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- 3 files changed, 214 insertions(+), 72 deletions(-) --- base-commit: 710025fdedb3767655823c3a12d27d404d209f75 change-id: 20230622-devcoredump_patch-df7e8f6fd632 Best regards, -- Ryan McCann