From: "Tauro, Riana" <riana.tauro@intel.com>
To: "Anoop, Vijay" <anoop.c.vijay@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: <umesh.nerlige.ramappa@intel.com>
Subject: Re: [PATCH v2] drm/xe/xe_sysctrl: Fix sparse endian warnings in mailbox header macros
Date: Wed, 8 Apr 2026 11:32:57 +0530 [thread overview]
Message-ID: <d87ce95d-7e72-484e-bb02-7e95bb4bd8aa@intel.com> (raw)
In-Reply-To: <20260407180339.794310-2-anoop.c.vijay@intel.com>
On 4/7/2026 11:33 PM, Anoop, Vijay wrote:
> From: Anoop Vijay <anoop.c.vijay@intel.com>
>
> Remove unnecessary le32_to_cpu() conversions from XE_SYSCTRL_APP_HDR_*
> macros.
>
> Fixes: 37ace5254a2b ("drm/xe/xe_sysctrl: Add ABI and mailbox interface headers")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202604010228.Z20DhK4g-lkp@intel.com/
Looks good to me
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
> Signed-off-by: Anoop Vijay <anoop.c.vijay@intel.com>
> ---
> v2: (Umesh, Riana)
> - Fix macros instead of changing struct field, per review
> ---
> drivers/gpu/drm/xe/xe_sysctrl_mailbox.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_sysctrl_mailbox.h b/drivers/gpu/drm/xe/xe_sysctrl_mailbox.h
> index 91460be9e22c..f67e9234de48 100644
> --- a/drivers/gpu/drm/xe/xe_sysctrl_mailbox.h
> +++ b/drivers/gpu/drm/xe/xe_sysctrl_mailbox.h
> @@ -15,13 +15,13 @@ struct xe_sysctrl;
> struct xe_sysctrl_mailbox_command;
>
> #define XE_SYSCTRL_APP_HDR_GROUP_ID(hdr) \
> - FIELD_GET(APP_HDR_GROUP_ID_MASK, le32_to_cpu((hdr)->data))
> + FIELD_GET(APP_HDR_GROUP_ID_MASK, (hdr)->data)
>
> #define XE_SYSCTRL_APP_HDR_COMMAND(hdr) \
> - FIELD_GET(APP_HDR_COMMAND_MASK, le32_to_cpu((hdr)->data))
> + FIELD_GET(APP_HDR_COMMAND_MASK, (hdr)->data)
>
> #define XE_SYSCTRL_APP_HDR_VERSION(hdr) \
> - FIELD_GET(APP_HDR_VERSION_MASK, le32_to_cpu((hdr)->data))
> + FIELD_GET(APP_HDR_VERSION_MASK, (hdr)->data)
>
> void xe_sysctrl_mailbox_init(struct xe_sysctrl *sc);
> int xe_sysctrl_send_command(struct xe_sysctrl *sc,
prev parent reply other threads:[~2026-04-08 6:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-07 18:03 [PATCH v2] drm/xe/xe_sysctrl: Fix sparse endian warnings in mailbox header macros Anoop, Vijay
2026-04-07 18:16 ` Umesh Nerlige Ramappa
2026-04-07 18:48 ` ✗ CI.checkpatch: warning for " Patchwork
2026-04-07 18:50 ` ✓ CI.KUnit: success " Patchwork
2026-04-07 19:41 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-07 22:15 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-08 6:02 ` Tauro, Riana [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=d87ce95d-7e72-484e-bb02-7e95bb4bd8aa@intel.com \
--to=riana.tauro@intel.com \
--cc=anoop.c.vijay@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox