]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Clear whole g2h_fence during initialization
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 23 Jul 2025 17:56:39 +0000 (19:56 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 24 Jul 2025 12:48:42 +0000 (14:48 +0200)
commit159afd92bae8153bdd8d8b34aea0d463fe19c978
tree12b2c6925a649c7951bcc63734c6b3c11dacc4be
parent538b27a09af974f2c5e7d358a24af7a722fa4bfc
drm/xe/guc: Clear whole g2h_fence during initialization

The struct g2h_fence must be explicitly initializated using the
g2h_fence_init() function to avoid trash values in its members,
but we missed to update this helper function with the new member.

To fix that and avoid any future mistakes, memset the whole struct
first, then update remaining non-zero members.

Fixes: 94de94d24ea8 ("drm/xe/guc: Cancel ongoing H2G requests when stopping CT")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250723175639.206875-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c