Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Piotr Piórkowski" <piotr.piorkowski@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe/guc: Improve GuC doorbell/context ID manager intro message
Date: Fri, 19 Apr 2024 22:36:12 +0200	[thread overview]
Message-ID: <20240419203612.gtwnf3tlei655vza@intel.com> (raw)
In-Reply-To: <20240419153407.402-1-michal.wajdeczko@intel.com>

Michal Wajdeczko <michal.wajdeczko@intel.com> wrote on pią [2024-kwi-19 17:34:07 +0200]:
> 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;
>  }

Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>

>  
> -- 
> 2.43.0
> 

-- 

  reply	other threads:[~2024-04-19 20:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=20240419203612.gtwnf3tlei655vza@intel.com \
    --to=piotr.piorkowski@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=michal.wajdeczko@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