diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-02-24 16:15:40 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:29:21 -0500 |
commit | 226bfec858c93797dbd3d47d1418ed68684fa752 (patch) | |
tree | cad0ad65d418ebee5abeb546560394ddc810faf7 /drivers/gpu/drm/xe/xe_tuning.c | |
parent | b79e8fd954c48fba74b2c3807f6093ce40e9ab7f (diff) |
drm/xe: Remove dependency on intel_gt_regs.h
Create regs/xe_gt_regs.h file with all the registers and bit
definitions used by the xe driver. Eventually the registers may be
defined in a different way and since xe doesn't supported below gen12,
the number of registers touched is much smaller, so create a new header.
The definitions themselves are direct copy from the
gt/intel_gt_regs.h file, just sorting the registers by address.
Cleaning those up and adhering to a common coding style is left for
later.
v2: Make the change to MCR_REG location in a separate patch to go
through the i915 branch (Matt Roper / Rodrigo)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_tuning.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_tuning.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_tuning.c b/drivers/gpu/drm/xe/xe_tuning.c index a3872f0330cb..624b257ecfbc 100644 --- a/drivers/gpu/drm/xe/xe_tuning.c +++ b/drivers/gpu/drm/xe/xe_tuning.c @@ -5,12 +5,11 @@ #include "xe_tuning.h" +#include "regs/xe_gt_regs.h" #include "xe_gt_types.h" #include "xe_platform_types.h" #include "xe_rtp.h" -#include "gt/intel_gt_regs.h" - #undef _MMIO #undef MCR_REG #define _MMIO(x) _XE_RTP_REG(x) |