From: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: badal.nilawar@intel.com
Subject: [PATCH] drm/xe/pcode: Use int instead of u32 for mailbox status
Date: Tue, 18 Aug 2026 16:11:41 -0700 [thread overview]
Message-ID: <20260818231140.729887-2-umesh.nerlige.ramappa@intel.com> (raw)
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)
---
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
next reply other threads:[~2026-08-18 23:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 23:11 Umesh Nerlige Ramappa [this message]
2026-08-18 23:18 ` ✓ CI.KUnit: success for drm/xe/pcode: Use int instead of u32 for mailbox status 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 ` [PATCH] " Rodrigo Vivi
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=20260818231140.729887-2-umesh.nerlige.ramappa@intel.com \
--to=umesh.nerlige.ramappa@intel.com \
--cc=badal.nilawar@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/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