]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Introduce GUC_FIRMWARE_VER_AT_LEAST helper
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 16 Dec 2025 21:48:57 +0000 (22:48 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 17 Dec 2025 22:42:43 +0000 (23:42 +0100)
commit09af64eba63ece2d928295e61ab1d56ae264447c
treefac473f396f8ba0d276e4407dbb77d3d62b7f9ff
parentce5971773651ad5c7e26aea29d72ea8887428774
drm/xe/guc: Introduce GUC_FIRMWARE_VER_AT_LEAST helper

There are already few places in the code where we need to check GuC
firmware version. Wrap existing raw conditions into a named helper
macro to make it clear and avoid explicit call of the MAKE_GUC_VER.

Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Acked-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251216214902.1429-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
drivers/gpu/drm/xe/xe_guc.h
drivers/gpu/drm/xe/xe_guc_ads.c