Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12064564rwd; Fri, 23 Jun 2023 00:28:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Y7VTQO6u2wnakDZ1ysgdvYOvhYoualp0XG0N88P5w9SPA2V15fRe354VPS0s0WlOZ2DHX X-Received: by 2002:a17:903:22c4:b0:1b2:1d98:2511 with SMTP id y4-20020a17090322c400b001b21d982511mr16244296plg.50.1687505310302; Fri, 23 Jun 2023 00:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687505310; cv=none; d=google.com; s=arc-20160816; b=cHIss9YTWQrO25GZAvBlJ395lpm7n3qwhlMCkCMH4qeurQRJMyhnx/POEJYpqGHKnc CqIJ0gCWmjsMk+ri9MDkEan0w7J3xncqfuIgCN4w2zkzTzav30oa7CQLwxqJ568gWoFx +Or2i/SbthLfbBKxTCoRmy1Ln/K2jIvAU5tKYXWLbHQsrZsAAnMzb9MP5CSH2bt8VN7t VR5AwQA5f3S3gghcs8amKkBdFH/XSIPYscBEdvz4y7vOVbFWCznyTHJ8Dp8fXeabxIfm xkeOOPrMVGXcAovaen46JL9oUQ2/gw+PEywDRtOwUAm11rloUduwtwNQjBJpdoRJB4dX g9xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qhUFb4bb+6uqc3S0F+dxzNMdWbQ6sWoARCJw9yFrfL0=; b=RaAb5pZp2EaA60EWErnLy0n1hiSu0BNgfym/6vyv079CLvXdbx7TlV4il/dVjYQitc zJL6ixpvYxOF1LiBTrzbal7Ol1KaL2I03dx7uVLOStun13rIoJxibm3ZuOVxWhz9i82W htbzffv5QxS5ZuAy/HOBYBB+TTLTGng2pY/xsOM4RmiM6BrNvDTgfHCOiEC69dlDaAET tJdOhqv9NS6ERQqghTWczBbF3SXznlJDYpLXMIq2l+CcV8M8JoBw9nrXB8lmIB8TCoAE 9f0a4jZlaqj/BGmNfD6PCJ4s+iqs9NNdLk79xoQq4vQmp9ww/B+PahMz+sy1M3R2swQb yxzA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902e54800b001b3ca91e3c6si1787202plf.14.2023.06.23.00.28.17; Fri, 23 Jun 2023 00:28:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229449AbjFWHKS (ORCPT + 99 others); Fri, 23 Jun 2023 03:10:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbjFWHKG (ORCPT ); Fri, 23 Jun 2023 03:10:06 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [5.144.164.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87C622133 for ; Fri, 23 Jun 2023 00:10:03 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 68D083F64E; Fri, 23 Jun 2023 09:10:01 +0200 (CEST) Date: Fri, 23 Jun 2023 09:10:00 +0200 From: Marijn Suijten To: Ryan McCann Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, quic_jesszhan@quicinc.com Subject: Re: [PATCH 0/6] Add support to print sub block registers in dpu hw catalog Message-ID: References: <20230622-devcoredump_patch-v1-0-3b2cdcc6a576@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230622-devcoredump_patch-v1-0-3b2cdcc6a576@quicinc.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 It is nice if cover letters also include the subsystem: drm/msm: Add support to print DPU sub-block registers On 2023-06-22 16:48:52, Ryan McCann wrote: > 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 Global nit: I think we previously settled on "sblk" or "sub-block(s)", not "sub blocks". And capitalize DPU. > 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. Dmitry has been doing that in one of his DPU catalog reworks. > 5. Defining names for sub blocks that have not yet been defined. Let's see what this means, because the code logic should already be able to figure this out (and in some places we can perhaps delete the name entirely). > 6. Implementing wrapper function that prints the registers of sub blocks > when there is a need. Thought this could be rather automated, but let me see what it means in the patches. > Sample Output of the sspp_0 block and its sub blocks for devcore dump: > ======sspp_0====== > ...registers > ... > ====sspp_0_scaler==== My suggestion would be to put less emphasis on this header with: ----sspp_0_scaler---- So that it becomes obvious that this is a sblk of the ====sspp_0==== above. > ... > ... > ====sspp_0_csc==== > ... > ... > ====next_block==== > ... > > Signed-off-by: Ryan McCann No need for sign-off in cover letters. - Marijn > --- > 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 >