Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/guc: Improve GuC doorbell/context ID manager intro message
@ 2024-04-19 15:34 Michal Wajdeczko
  2024-04-19 20:36 ` Piotr Piórkowski
                   ` (30 more replies)
  0 siblings, 31 replies; 32+ messages in thread
From: Michal Wajdeczko @ 2024-04-19 15:34 UTC (permalink / raw)
  To: intel-xe

We can use recently added str_plural() helper.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
 drivers/gpu/drm/xe/xe_guc_db_mgr.c | 3 ++-
 drivers/gpu/drm/xe/xe_guc_id_mgr.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_guc_db_mgr.c b/drivers/gpu/drm/xe/xe_guc_db_mgr.c
index 8d9a0287df6b..6767e8076e6b 100644
--- a/drivers/gpu/drm/xe/xe_guc_db_mgr.c
+++ b/drivers/gpu/drm/xe/xe_guc_db_mgr.c
@@ -106,7 +106,8 @@ int xe_guc_db_mgr_init(struct xe_guc_db_mgr *dbm, unsigned int count)
 	if (ret)
 		return ret;
 done:
-	xe_gt_dbg(dbm_to_gt(dbm), "using %u doorbell(s)\n", dbm->count);
+	xe_gt_dbg(dbm_to_gt(dbm), "using %u doorbell%s\n",
+		  dbm->count, str_plural(dbm->count));
 	return 0;
 }
 
diff --git a/drivers/gpu/drm/xe/xe_guc_id_mgr.c b/drivers/gpu/drm/xe/xe_guc_id_mgr.c
index 0fb7c6b78c31..cd0549d0ef89 100644
--- a/drivers/gpu/drm/xe/xe_guc_id_mgr.c
+++ b/drivers/gpu/drm/xe/xe_guc_id_mgr.c
@@ -97,7 +97,8 @@ int xe_guc_id_mgr_init(struct xe_guc_id_mgr *idm, unsigned int limit)
 	if (ret)
 		return ret;
 
-	xe_gt_info(idm_to_gt(idm), "using %u GUC ID(s)\n", idm->total);
+	xe_gt_info(idm_to_gt(idm), "using %u GUC ID%s\n",
+		   idm->total, str_plural(idm->total));
 	return 0;
 }
 
-- 
2.43.0


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

end of thread, other threads:[~2024-04-25  4:36 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19 15:34 [PATCH] drm/xe/guc: Improve GuC doorbell/context ID manager intro message Michal Wajdeczko
2024-04-19 20:36 ` Piotr Piórkowski
2024-04-20  0:10 ` ✓ CI.Patch_applied: success for " Patchwork
2024-04-20  0:11 ` ✓ CI.checkpatch: " Patchwork
2024-04-20  0:15 ` ✓ CI.KUnit: " Patchwork
2024-04-20  0:33 ` ✓ CI.Build: " Patchwork
2024-04-20  0:39 ` ✓ CI.Hooks: " Patchwork
2024-04-20  0:44 ` ✓ CI.checksparse: " Patchwork
2024-04-24 12:33 ` ✓ CI.Patch_applied: " Patchwork
2024-04-24 12:33 ` ✓ CI.checkpatch: " Patchwork
2024-04-24 12:34 ` ✓ CI.KUnit: " Patchwork
2024-04-24 12:46 ` ✓ CI.Build: " Patchwork
2024-04-24 12:50 ` ✓ CI.Hooks: " Patchwork
2024-04-24 12:51 ` ✓ CI.checksparse: " Patchwork
2024-04-24 13:15 ` ✗ CI.BAT: failure " Patchwork
2024-04-24 13:19 ` ✓ CI.Patch_applied: success for drm/xe/guc: Improve GuC doorbell/context ID manager intro message (rev2) Patchwork
2024-04-24 13:19 ` ✓ CI.checkpatch: " Patchwork
2024-04-24 13:20 ` ✓ CI.KUnit: " Patchwork
2024-04-24 13:32 ` ✓ CI.Build: " Patchwork
2024-04-24 13:37 ` ✓ CI.Hooks: " Patchwork
2024-04-24 13:39 ` ✓ CI.checksparse: " Patchwork
2024-04-24 14:01 ` ✓ CI.BAT: " Patchwork
2024-04-24 14:10 ` ✓ CI.Patch_applied: success for drm/xe/guc: Improve GuC doorbell/context ID manager intro message (rev3) Patchwork
2024-04-24 14:10 ` ✓ CI.checkpatch: " Patchwork
2024-04-24 14:11 ` ✓ CI.KUnit: " Patchwork
2024-04-24 14:23 ` ✓ CI.Build: " Patchwork
2024-04-24 14:25 ` ✓ CI.Hooks: " Patchwork
2024-04-24 14:27 ` ✓ CI.checksparse: " Patchwork
2024-04-24 14:49 ` ✓ CI.BAT: " Patchwork
2024-04-25  2:05 ` ✗ CI.FULL: failure for drm/xe/guc: Improve GuC doorbell/context ID manager intro message Patchwork
2024-04-25  2:53 ` ✗ CI.FULL: failure for drm/xe/guc: Improve GuC doorbell/context ID manager intro message (rev2) Patchwork
2024-04-25  4:36 ` ✓ CI.FULL: success for drm/xe/guc: Improve GuC doorbell/context ID manager intro message (rev3) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox