Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/guc: Update few GuC CTB ABI definitions

In upcoming new GuC ABI definitions we will want to refer to max
number of dwords that could fit into CTB HXG message. Add explicit
definition named as GUC_CTB_MAX_DWORDS and start using it.

Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://lore.kernel.org/r/20240104222031.277-6-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>

+2 -1
+2 -1
drivers/gpu/drm/xe/abi/guc_communication_ctb_abi.h
··· 81 81 82 82 #define GUC_CTB_HDR_LEN 1u 83 83 #define GUC_CTB_MSG_MIN_LEN GUC_CTB_HDR_LEN 84 - #define GUC_CTB_MSG_MAX_LEN 256u 84 + #define GUC_CTB_MSG_MAX_LEN (GUC_CTB_MSG_MIN_LEN + GUC_CTB_MAX_DWORDS) 85 85 #define GUC_CTB_MSG_0_FENCE (0xffff << 16) 86 86 #define GUC_CTB_MSG_0_FORMAT (0xf << 12) 87 87 #define GUC_CTB_FORMAT_HXG 0u 88 88 #define GUC_CTB_MSG_0_RESERVED (0xf << 8) 89 89 #define GUC_CTB_MSG_0_NUM_DWORDS (0xff << 0) 90 + #define GUC_CTB_MAX_DWORDS 255 90 91 91 92 /** 92 93 * DOC: CTB HXG Message