Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: "Cavitt, Jonathan" <jonathan.cavitt@intel.com>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Cc: "Roper, Matthew D" <matthew.d.roper@intel.com>
Subject: Re: [PATCH] drm/xe: Use GT-oriented printer to dump topology on init
Date: Mon, 2 Jun 2025 19:18:37 +0200	[thread overview]
Message-ID: <78247eed-19b6-4552-ba18-ffa158c812f5@intel.com> (raw)
In-Reply-To: <CH0PR11MB54443585B57FC0012042009FE561A@CH0PR11MB5444.namprd11.prod.outlook.com>



On 30.05.2025 23:46, Cavitt, Jonathan wrote:
> -----Original Message-----
> From: Intel-xe <intel-xe-bounces@lists.freedesktop.org> On Behalf Of Michal Wajdeczko
> Sent: Friday, May 30, 2025 2:05 PM
> To: intel-xe@lists.freedesktop.org
> Cc: Wajdeczko, Michal <Michal.Wajdeczko@intel.com>; Roper, Matthew D <matthew.d.roper@intel.com>
> Subject: [PATCH] drm/xe: Use GT-oriented printer to dump topology on init
>>
>> During the probe we dump the discovered GT topology, but instead
>> of a generic printer we can use our own GT-oriented printer which
>> contains information about the source GT.
>>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>> Cc: Matt Roper <matthew.d.roper@intel.com>
>> ---
>>  drivers/gpu/drm/xe/xe_gt_topology.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_gt_topology.c b/drivers/gpu/drm/xe/xe_gt_topology.c
>> index 516c81e3b8dd..acec6559e2f2 100644
>> --- a/drivers/gpu/drm/xe/xe_gt_topology.c
>> +++ b/drivers/gpu/drm/xe/xe_gt_topology.c
>> @@ -12,6 +12,7 @@
>>  #include "regs/xe_gt_regs.h"
>>  #include "xe_assert.h"
>>  #include "xe_gt.h"
>> +#include "xe_gt_printk.h"
>>  #include "xe_mmio.h"
>>  #include "xe_wa.h"
>>  
>> @@ -243,8 +244,7 @@ xe_gt_topology_init(struct xe_gt *gt)
>>  	load_eu_mask(gt, gt->fuse_topo.eu_mask_per_dss, &gt->fuse_topo.eu_type);
>>  	load_l3_bank_mask(gt, gt->fuse_topo.l3_bank_mask);
>>  
>> -	p = drm_dbg_printer(&gt_to_xe(gt)->drm, DRM_UT_DRIVER, "GT topology");
>> -
>> +	p = xe_gt_dbg_printer(gt);
> 
> LGTM, though the lack of a .prefix field might be a bit of a dealbreaker for some.

there is already function name included by drm_dbg()

	[drm:xe_gt_topology_init [xe]]

so this extra "GT topology" prefix was already redundant

> Maybe we can update xe_gt_dbg_printer to include an optional prefix string?
> It shouldn't be too difficult to update the function to have such a field, since
> xe_gt_dbg_printer is currently only used in one other place in the code, as far
> as I can tell.
> Though, if that's not necessary, you can have my
> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>

thanks!

> -Jonathan Cavitt
> 
>>  	xe_gt_topology_dump(gt, &p);
>>  }
>>  
>> -- 
>> 2.47.1
>>
>>


  reply	other threads:[~2025-06-02 17:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-30 21:05 [PATCH] drm/xe: Use GT-oriented printer to dump topology on init Michal Wajdeczko
2025-05-30 21:28 ` ✓ CI.Patch_applied: success for " Patchwork
2025-05-30 21:28 ` ✓ CI.checkpatch: " Patchwork
2025-05-30 21:29 ` ✓ CI.KUnit: " Patchwork
2025-05-30 21:40 ` ✓ CI.Build: " Patchwork
2025-05-30 21:42 ` ✓ CI.Hooks: " Patchwork
2025-05-30 21:44 ` ✓ CI.checksparse: " Patchwork
2025-05-30 21:46 ` [PATCH] " Cavitt, Jonathan
2025-06-02 17:18   ` Michal Wajdeczko [this message]
2025-05-30 21:47 ` Matt Roper
2025-05-30 22:12 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-06-01 15:45 ` ✓ Xe.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78247eed-19b6-4552-ba18-ffa158c812f5@intel.com \
    --to=michal.wajdeczko@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jonathan.cavitt@intel.com \
    --cc=matthew.d.roper@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox