]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe/guc_pc: Move gt register to the proper place
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 25 Feb 2023 00:15:44 +0000 (16:15 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:21 +0000 (18:29 -0500)
Move a few defines from xe_guc_pc.c to the right register, now that
there is one: xe_gt_regs.h.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/regs/xe_gt_regs.h
drivers/gpu/drm/xe/xe_guc_pc.c

index 3eb92c97508509b919aeb72282f8b6c93f6de7c3..df2677c9c9f6dfea78aa64d8412a19adf0337f16 100644 (file)
 #define   DFR_DISABLE                          (1 << 9)
 
 #define GEN6_RPNSWREQ                          _MMIO(0xa008)
+#define   REQ_RATIO_MASK                       REG_GENMASK(31, 23)
 #define GEN6_RC_CONTROL                                _MMIO(0xa090)
 #define GEN6_RC_STATE                          _MMIO(0xa094)
 
 #define   FORCEWAKE_KERNEL_FALLBACK            BIT(15)
 
 #define GEN6_GT_CORE_STATUS                    _MMIO(0x138060)
+#define   RCN_MASK                             REG_GENMASK(2, 0)
 #define   GEN6_RC0                             0
 #define   GEN6_RC6                             3
 
index acaba5c375e5ae28bf466f515371ff423444b822..d91dad8638efb656f0d3e60bd26456d0eafcdef8 100644 (file)
 #define GEN10_FREQ_INFO_REC    _MMIO(MCHBAR_MIRROR_BASE_SNB + 0x5ef0)
 #define   RPE_MASK             REG_GENMASK(15, 8)
 
-/* For GEN6_RPNSWREQ.reg to be merged when the definition moves to Xe */
-#define   REQ_RATIO_MASK       REG_GENMASK(31, 23)
-
-/* For GEN6_GT_CORE_STATUS.reg to be merged when the definition moves to Xe */
-#define   RCN_MASK     REG_GENMASK(2, 0)
-
 #define GEN12_RPSTAT1          _MMIO(0x1381b4)
 #define   GEN12_CAGF_MASK      REG_GENMASK(19, 11)