drm/xe/guc: Return CTB HXG response DATA0 if no buffer provided
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 12 Jan 2024 10:25:53 +0000 (11:25 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 18 Jan 2024 18:28:41 +0000 (19:28 +0100)
commita54e016ace26304505dfd1bd2fb0278a91dae310
tree3bfdfe78cbf7ade89bbc3e149df78b059ddb9254
parent34e9d836f9d0362a45009d61e211e0d5fbdcc28a
drm/xe/guc: Return CTB HXG response DATA0 if no buffer provided

Most of the synchronous GuC HXG action responses are defined in
such a way that only mandatory DATA0 from the HXG header is used
and only in few cases it is more than MBZ (must be zero).

For those cases where HXG action returns just DATA0, return that
value if caller didn't provide buffer for the full response.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240112102554.761-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c