drm/xe/guc: Add more KLV helper macros
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 14 May 2024 19:00:08 +0000 (21:00 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 16 May 2024 16:04:38 +0000 (18:04 +0200)
commite6946ea8fcb5625c46754435fef5523f12659c11
tree707f83a879fc283b7d62887cf8c955a5c690ea44
parent9aa8586063a465da986a39ef55e3e5c12140cde5
drm/xe/guc: Add more KLV helper macros

In upcoming patches we will want to generate some of the KLV keys
from other macros. Add MAKE_GUC_KLV_{KEY|LEN} macros for that and
make sure they will correctly expand provided TAG parameter. Also
fix PREP_GUC_KLV_TAG to also work correctly within other macros.

Reviewed-by: Piotr PiĆ³rkowski <piotr.piorkowski@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240514190015.2172-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_klv_helpers.h