All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <badal.nilawar@intel.com>
Subject: Re: [PATCH] drm/xe/pcode: Use int instead of u32 for mailbox status
Date: Mon, 24 Aug 2026 15:40:08 -0400	[thread overview]
Message-ID: <aoyeGJThJDYXMlfQ@intel.com> (raw)
In-Reply-To: <20260818231140.729887-2-umesh.nerlige.ramappa@intel.com>

On Tue, Aug 18, 2026 at 04:11:41PM -0700, Umesh Nerlige Ramappa wrote:
> Mailbox status is returned as int, but some callers read it as u32
> (likely a typo). Use int instead.
> 
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> ---
> v2: One more place to convert u32 to int (Sashiko)

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

and pushing right now...

> ---
>  drivers/gpu/drm/xe/xe_pcode.c | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
> index e1b8062541a9..5f7fc61c9b97 100644
> --- a/drivers/gpu/drm/xe/xe_pcode.c
> +++ b/drivers/gpu/drm/xe/xe_pcode.c
> @@ -148,7 +148,7 @@ int xe_pcode_read(struct xe_tile *tile, u32 mbox, u32 *val, u32 *val1)
>  
>  static int pcode_try_request(struct xe_tile *tile, u32 mbox,
>  			     u32 request, u32 reply_mask, u32 reply,
> -			     u32 *status, bool atomic, int timeout_us, bool locked)
> +			     int *status, bool atomic, int timeout_us, bool locked)
>  {
>  	int slept, wait = 10;
>  
> @@ -196,8 +196,7 @@ static int pcode_try_request(struct xe_tile *tile, u32 mbox,
>  int xe_pcode_request(struct xe_tile *tile, u32 mbox, u32 request,
>  		     u32 reply_mask, u32 reply, int timeout_base_ms)
>  {
> -	u32 status;
> -	int ret;
> +	int status, ret;
>  
>  	xe_tile_assert(tile, timeout_base_ms <= 3);
>  
> @@ -295,10 +294,10 @@ int xe_pcode_init_min_freq_table(struct xe_tile *tile, u32 min_gt_freq,
>   */
>  int xe_pcode_ready(struct xe_device *xe, bool locked)
>  {
> -	u32 status, request = DGFX_GET_INIT_STATUS;
>  	struct xe_tile *tile = xe_device_get_root_tile(xe);
>  	long timeout_us = 3 * 60 * USEC_PER_SEC; /* 3 min */
> -	int ret;
> +	u32 request = DGFX_GET_INIT_STATUS;
> +	int status, ret;
>  
>  	if (xe->info.skip_pcode)
>  		return 0;
> -- 
> 2.51.0
> 

      parent reply	other threads:[~2026-08-24 19:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18 23:11 [PATCH] drm/xe/pcode: Use int instead of u32 for mailbox status Umesh Nerlige Ramappa
2026-08-18 23:18 ` ✓ CI.KUnit: success for " Patchwork
2026-08-18 23:21 ` [PATCH] " sashiko-bot
2026-08-18 23:56 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-08-19  2:08 ` ✓ Xe.CI.FULL: " Patchwork
2026-08-24 19:40 ` Rodrigo Vivi [this message]

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=aoyeGJThJDYXMlfQ@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=umesh.nerlige.ramappa@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 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.