]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/guc: Introduce GuC KLV thresholds set
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 14 May 2024 19:00:09 +0000 (21:00 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 16 May 2024 16:04:39 +0000 (18:04 +0200)
commitb1ce52fbf6ebfc3815773045856c695ce86ca679
tree143319d72ba44041caad05e12e428431fc8f7009
parente6946ea8fcb5625c46754435fef5523f12659c11
drm/xe/guc: Introduce GuC KLV thresholds set

The GuC firmware monitors VF's activity and notifies the PF driver
once any configured threshold related to such activity is exceeded.

The available thresholds are defined in the GuC ABI as part of the
GuC VF Configuration KLVs.  Threshold configurations performed by
the PF driver and notifications sent by the GuC rely on the KLV keys,
which are not zero-based and might not guarantee continuity.

To simplify the driver code and eliminate the need to repeat very
similar code for each threshold, introduce the threshold set macro
that allows to generate required code based on unique threshold tag.

Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240514190015.2172-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_klv_thresholds_set.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_klv_thresholds_set_types.h [new file with mode: 0644]