From ce517adff59c50a54a33ae90e2947eff9698dc86 Mon Sep 17 00:00:00 2001 From: Gustavo Sousa Date: Mon, 9 Mar 2026 21:42:07 -0300 Subject: [PATCH] drm/xe: Drop unused IS_PLATFORM_STEP() and IS_SUBPLATFORM_STEP() The macros IS_PLATFORM_STEP() and IS_SUBPLATFORM_STEP() are unused since commit 87c299fa3a97 ("drm/xe/guc: Port Wa_14014475959 to xe_wa and fix it") and commit 63bbd800ff01 ("drm/xe/guc: Port Wa_22012727170/Wa_22012727685 to xe_wa"), respectively, and we can drop them now. Furthermore, in upcoming changes we will add logic to read platform-level step information from PCI RevID and keeping those macros around would potentially cause confusion. v2: - Cite commits that made the macros unused. (Matt) Reviewed-by: Matt Roper Link: https://patch.msgid.link/20260309-extra-nvl-p-enabling-patches-v5-2-be9c902ee34e@intel.com Signed-off-by: Gustavo Sousa --- drivers/gpu/drm/xe/xe_device_types.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index 3e04e80e0815..615218d775b1 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -82,16 +82,6 @@ enum xe_wedged_mode { #define XE_MAX_ASID (BIT(20)) -#define IS_PLATFORM_STEP(_xe, _platform, min_step, max_step) \ - ((_xe)->info.platform == (_platform) && \ - (_xe)->info.step.graphics >= (min_step) && \ - (_xe)->info.step.graphics < (max_step)) -#define IS_SUBPLATFORM_STEP(_xe, _platform, sub, min_step, max_step) \ - ((_xe)->info.platform == (_platform) && \ - (_xe)->info.subplatform == (sub) && \ - (_xe)->info.step.graphics >= (min_step) && \ - (_xe)->info.step.graphics < (max_step)) - /** * struct xe_device - Top level struct of Xe device */