All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: expose multi_lrc_mask in debugfs info
@ 2026-03-24 21:23 Xin Wang
  2026-03-24 21:29 ` ✓ CI.KUnit: success for " Patchwork
                   ` (17 more replies)
  0 siblings, 18 replies; 28+ messages in thread
From: Xin Wang @ 2026-03-24 21:23 UTC (permalink / raw)
  To: intel-xe; +Cc: Xin Wang, Daniel Charles

Add multi_lrc_mask to the per-device info printed via debugfs
(/sys/kernel/debug/dri/<N>/info). This value indicates which engine
classes support multi-LRC submission and varies across platforms.

Exposing it through debugfs allows userspace tools like IGT to query
the actual kernel configuration rather than hardcoding platform-specific
values in test code. This avoids duplicating KMD logic in IGT and makes
tests automatically adapt to platform differences.

Cc: Daniel Charles <daniel.charles@intel.com>
Signed-off-by: Xin Wang <x.wang@intel.com>
---
 drivers/gpu/drm/xe/xe_debugfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 844cfafe1ec7..32f03b2777d5 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -88,6 +88,7 @@ static int info(struct seq_file *m, void *data)
 	drm_printf(&p, "has_flat_ccs %s\n", str_yes_no(xe->info.has_flat_ccs));
 	drm_printf(&p, "has_usm %s\n", str_yes_no(xe->info.has_usm));
 	drm_printf(&p, "skip_guc_pc %s\n", str_yes_no(xe->info.skip_guc_pc));
+	drm_printf(&p, "multi_lrc_mask 0x%x\n", xe->info.multi_lrc_mask);
 	for_each_gt(gt, xe, id) {
 		drm_printf(&p, "gt%d force wake %d\n", id,
 			   xe_force_wake_ref(gt_to_fw(gt), XE_FW_GT));
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 28+ messages in thread
* [PATCH v5 0/2] drm/xe: expose multi_lrc_mask in debugfs info
@ 2026-04-02 18:05 Xin Wang
  0 siblings, 0 replies; 28+ messages in thread
From: Xin Wang @ 2026-04-02 18:05 UTC (permalink / raw)
  To: intel-xe; +Cc: Xin Wang

This series improves the debugfs info output for xe engines and exposes
the multi-LRC engine class capability.

Patch 1 replaces raw numeric engine masks with human-readable engine and
class names in the per-GT debugfs info output, making it easier for a
human to interpret directly and simpler for IGT tests to use when
validating engine capabilities.

Patch 2 adds multi_lrc_engine_classes to the device-level info output
as a useful extra piece of information for debugging.

v5: (Matt Roper)
 - Reword commit messages to avoid "userspace" framing
 - Use early-return pattern in print_engine_class_mask() and
   print_engine_mask() to minimize indentation

Xin Wang (2):
  drm/xe: improve readability of debugfs engine info output
  drm/xe: expose multi-lrc engine classes in debugfs info

 drivers/gpu/drm/xe/xe_debugfs.c | 43 ++++++++++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 4 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2026-04-02 18:06 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24 21:23 [PATCH] drm/xe: expose multi_lrc_mask in debugfs info Xin Wang
2026-03-24 21:29 ` ✓ CI.KUnit: success for " Patchwork
2026-03-24 22:04 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-25 10:40 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-30 17:09 ` [PATCH v2] drm/xe: expose multi_lrc_engine_classes " Xin Wang
2026-04-01 21:08   ` Matt Roper
2026-03-30 17:16 ` ✓ CI.KUnit: success for drm/xe: expose multi_lrc_mask in debugfs info (rev2) Patchwork
2026-03-30 17:53 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-30 20:49 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-31  0:29 ` [PATCH v3] drm/xe: improve readability of debugfs info engine output Xin Wang
2026-03-31  3:29   ` Niranjana Vishwanathapura
2026-03-31  0:43 ` ✓ CI.KUnit: success for drm/xe: expose multi_lrc_mask in debugfs info (rev3) Patchwork
2026-03-31  1:29 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-31  5:56 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-01 21:26 ` [PATCH v4 0/2] drm/xe: expose multi_lrc_mask in debugfs info Xin Wang
2026-04-01 21:26   ` [PATCH v4 1/2] drm/xe: improve readability of debugfs engine info output Xin Wang
2026-04-01 22:29     ` Matt Roper
2026-04-01 21:26   ` [PATCH v4 2/2] drm/xe: expose multi-lrc engine classes in debugfs info Xin Wang
2026-04-01 22:33     ` Matt Roper
2026-04-01 21:33 ` ✓ CI.KUnit: success for drm/xe: expose multi_lrc_mask in debugfs info (rev4) Patchwork
2026-04-01 22:10 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-02  5:16 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-02 16:29 ` [PATCH v5 0/2] drm/xe: expose multi_lrc_mask in debugfs info Xin Wang
2026-04-02 16:29   ` [PATCH v5 1/2] drm/xe: improve readability of debugfs engine info output Xin Wang
2026-04-02 16:29   ` [PATCH v5 2/2] drm/xe: expose multi-lrc engine classes in debugfs info Xin Wang
2026-04-02 16:49 ` ✓ CI.KUnit: success for drm/xe: expose multi_lrc_mask in debugfs info (rev5) Patchwork
2026-04-02 17:45 ` ✓ Xe.CI.BAT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-04-02 18:05 [PATCH v5 0/2] drm/xe: expose multi_lrc_mask in debugfs info Xin Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.