diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-04-28 01:32:48 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:32:15 +0300 |
commit | d9b79ad275e7a98c566b3ac4b32950142d6bf9ad (patch) | |
tree | 787a2885b7b78c60c71bb33345d61f09a7c3926b /drivers/gpu/drm/xe/xe_force_wake.c | |
parent | 7b829f6dd638c2cb45c7710bc7cd1d0395ea9bc1 (diff) | |
download | linux-d9b79ad275e7a98c566b3ac4b32950142d6bf9ad.tar.xz |
drm/xe: Drop gen afixes from registers
The defines for the registers were brought over from i915 while
bootstrapping the driver. As xe supports TGL and later only, it doesn't
make sense to keep the GEN* prefixes and suffixes in the registers: TGL
is graphics version 12, previously called "GEN12". So drop the prefix
everywhere.
v2:
- Also drop _TGL suffix and reword commit message as suggested
by Matt Roper. While at it, rename VSUNIT_CLKGATE_DIS_TGL to
VSUNIT_CLKGATE2_DIS with the additional "2", so it doesn't clash
with the define for the other register
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230427223256.1432787-3-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_force_wake.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_force_wake.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/xe/xe_force_wake.c b/drivers/gpu/drm/xe/xe_force_wake.c index 77a210acfac3..53d73f36a121 100644 --- a/drivers/gpu/drm/xe/xe_force_wake.c +++ b/drivers/gpu/drm/xe/xe_force_wake.c @@ -49,14 +49,14 @@ void xe_force_wake_init_gt(struct xe_gt *gt, struct xe_force_wake *fw) if (xe->info.graphics_verx100 >= 1270) { domain_init(&fw->domains[XE_FW_DOMAIN_ID_GT], XE_FW_DOMAIN_ID_GT, - FORCEWAKE_GT_GEN9.reg, + FORCEWAKE_GT.reg, FORCEWAKE_ACK_GT_MTL.reg, BIT(0), BIT(16)); } else { domain_init(&fw->domains[XE_FW_DOMAIN_ID_GT], XE_FW_DOMAIN_ID_GT, - FORCEWAKE_GT_GEN9.reg, - FORCEWAKE_ACK_GT_GEN9.reg, + FORCEWAKE_GT.reg, + FORCEWAKE_ACK_GT.reg, BIT(0), BIT(16)); } } @@ -71,8 +71,8 @@ void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw) if (!xe_gt_is_media_type(gt)) domain_init(&fw->domains[XE_FW_DOMAIN_ID_RENDER], XE_FW_DOMAIN_ID_RENDER, - FORCEWAKE_RENDER_GEN9.reg, - FORCEWAKE_ACK_RENDER_GEN9.reg, + FORCEWAKE_RENDER.reg, + FORCEWAKE_ACK_RENDER.reg, BIT(0), BIT(16)); for (i = XE_HW_ENGINE_VCS0, j = 0; i <= XE_HW_ENGINE_VCS7; ++i, ++j) { @@ -81,8 +81,8 @@ void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw) domain_init(&fw->domains[XE_FW_DOMAIN_ID_MEDIA_VDBOX0 + j], XE_FW_DOMAIN_ID_MEDIA_VDBOX0 + j, - FORCEWAKE_MEDIA_VDBOX_GEN11(j).reg, - FORCEWAKE_ACK_MEDIA_VDBOX_GEN11(j).reg, + FORCEWAKE_MEDIA_VDBOX(j).reg, + FORCEWAKE_ACK_MEDIA_VDBOX(j).reg, BIT(0), BIT(16)); } @@ -92,8 +92,8 @@ void xe_force_wake_init_engines(struct xe_gt *gt, struct xe_force_wake *fw) domain_init(&fw->domains[XE_FW_DOMAIN_ID_MEDIA_VEBOX0 + j], XE_FW_DOMAIN_ID_MEDIA_VEBOX0 + j, - FORCEWAKE_MEDIA_VEBOX_GEN11(j).reg, - FORCEWAKE_ACK_MEDIA_VEBOX_GEN11(j).reg, + FORCEWAKE_MEDIA_VEBOX(j).reg, + FORCEWAKE_ACK_MEDIA_VEBOX(j).reg, BIT(0), BIT(16)); } } |