public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
* [drm-xe:drm-xe-next 1071/1074] drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
@ 2026-03-31 18:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-31 18:49 UTC (permalink / raw)
  To: Anoop Vijay; +Cc: oe-kbuild-all, intel-xe, Umesh Nerlige Ramappa

tree:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
head:   72d918472886b6e1b998b756303816737929ef0a
commit: 1f95f618182b5c99d46378141e0fb84f09bf914b [1071/1074] drm/xe/xe_sysctrl: Add System Controller mailbox communication support
config: sparc64-randconfig-r134-20260331 (https://download.01.org/0day-ci/archive/20260401/202604010228.Z20DhK4g-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 2cd67b8b69f78e3f95918204320c3075a74ba16c)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260401/202604010228.Z20DhK4g-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604010228.Z20DhK4g-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32
   drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:348:24: sparse: sparse: cast to restricted __le32

vim +347 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c

   309	
   310	/**
   311	 * xe_sysctrl_send_command() - Send mailbox command to System Controller
   312	 * @sc: System Controller instance
   313	 * @cmd: Command descriptor containing request header and payload buffers
   314	 * @rdata_len: Pointer to store actual response data length
   315	 *
   316	 * Sends a mailbox command to System Controller firmware using
   317	 * System Controller mailbox and waits for a response.
   318	 *
   319	 * Request payload is provided via @cmd->data_in and @cmd->data_in_len.
   320	 * If a response is expected, @cmd->data_out must point to a buffer of
   321	 * size @cmd->data_out_len supplied by caller.
   322	 *
   323	 * On success, @rdata_len is updated with number of valid response bytes
   324	 * returned by firmware, bounded by @cmd->data_out_len.
   325	 *
   326	 * Return: 0 on success, or negative errno on failure.
   327	 */
   328	int xe_sysctrl_send_command(struct xe_sysctrl *sc,
   329				    struct xe_sysctrl_mailbox_command *cmd,
   330				    size_t *rdata_len)
   331	{
   332		struct xe_device *xe = sc_to_xe(sc);
   333		u8 group_id, command_code;
   334		u8 *mbox_cmd = NULL;
   335		size_t cmd_size = 0;
   336		int ret;
   337	
   338		guard(xe_pm_runtime_noresume)(xe);
   339	
   340		if (!xe->info.has_sysctrl)
   341			return -ENODEV;
   342	
   343		xe_assert(xe, cmd->data_in || cmd->data_out);
   344		xe_assert(xe, !cmd->data_in || cmd->data_in_len);
   345		xe_assert(xe, !cmd->data_out || cmd->data_out_len);
   346	
 > 347		group_id = XE_SYSCTRL_APP_HDR_GROUP_ID(&cmd->header);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-31 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 18:49 [drm-xe:drm-xe-next 1071/1074] drivers/gpu/drm/xe/xe_sysctrl_mailbox.c:347:20: sparse: sparse: cast to restricted __le32 kernel test robot

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