drm/xe/guc: Use HXG definitions on HXG messages
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 11 Jan 2024 21:06:32 +0000 (22:06 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 12 Jan 2024 08:50:25 +0000 (09:50 +0100)
commitd4978a67ae97a2b875c8e8b6684866ee1d35fa80
treed1a631d056bf5cae5ed40a6b9d9289f4d1dcff39
parentd898c2e55593fea5da068de48a878c66520a4af8
drm/xe/guc: Use HXG definitions on HXG messages

While parsing and processing CTB G2H messages we should extract
underlying HXG message and use HXG definitions on such message.
Using outer CTB layer message in HXG definitions require use of
shifted dword index, which might be confusing:

FIELD_GET(GUC_HXG_MSG_0_xxx, msg[1])

instead of:

FIELD_GET(GUC_HXG_MSG_0_xxx, hxg[0])

Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20240111210632.717-1-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
drivers/gpu/drm/xe/xe_guc_ct.c