Commit bb36f4b4 authored by Lucas De Marchi's avatar Lucas De Marchi Committed by Rodrigo Vivi

drm/xe: Rename RC0/RC6 macros

Follow up commits will mass-remove the gen prefix/suffix. For GEN6_RC0
and GEN6_RC6 that would make the variable too short and easy to
conflict. So, add "GT_" prefix that is also part of the register name.
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 58e19acf
...@@ -345,8 +345,8 @@ ...@@ -345,8 +345,8 @@
#define GEN6_GT_CORE_STATUS _MMIO(0x138060) #define GEN6_GT_CORE_STATUS _MMIO(0x138060)
#define RCN_MASK REG_GENMASK(2, 0) #define RCN_MASK REG_GENMASK(2, 0)
#define GEN6_RC0 0 #define GT_RC0 0
#define GEN6_RC6 3 #define GT_RC6 3
#define GEN6_GT_GFX_RC6_LOCKED _MMIO(0x138104) #define GEN6_GT_GFX_RC6_LOCKED _MMIO(0x138104)
#define GEN6_GT_GFX_RC6 _MMIO(0x138108) #define GEN6_GT_GFX_RC6 _MMIO(0x138108)
......
...@@ -592,9 +592,9 @@ static ssize_t rc_status_show(struct device *dev, ...@@ -592,9 +592,9 @@ static ssize_t rc_status_show(struct device *dev,
xe_device_mem_access_put(gt_to_xe(gt)); xe_device_mem_access_put(gt_to_xe(gt));
switch (REG_FIELD_GET(RCN_MASK, reg)) { switch (REG_FIELD_GET(RCN_MASK, reg)) {
case GEN6_RC6: case GT_RC6:
return sysfs_emit(buff, "rc6\n"); return sysfs_emit(buff, "rc6\n");
case GEN6_RC0: case GT_RC0:
return sysfs_emit(buff, "rc0\n"); return sysfs_emit(buff, "rc0\n");
default: default:
return -ENOENT; return -ENOENT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment