Commit 4104e634 authored by Juan Escamilla's avatar Juan Escamilla Committed by Rodrigo Vivi

drm/i915/gt: Reflect the true and current status of rc6_enable

The sysfs file is named 'enabled', thus users might want to know the
true state of the RC6 instead of only the indication if the RC6
should be enabled.

Let's use rc6.enable directly instead of rc6.supported.
Signed-off-by: default avatarJuan Escamilla <jcescami@wasd.net>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240116172922.3460695-1-jcescami@wasd.net
parent 6d46d09a
...@@ -182,7 +182,7 @@ static ssize_t rc6_enable_show(struct kobject *kobj, ...@@ -182,7 +182,7 @@ static ssize_t rc6_enable_show(struct kobject *kobj,
{ {
struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name); struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name);
return sysfs_emit(buff, "%x\n", gt->rc6.supported); return sysfs_emit(buff, "%x\n", gt->rc6.enabled);
} }
static ssize_t rc6_enable_dev_show(struct device *dev, static ssize_t rc6_enable_dev_show(struct device *dev,
...@@ -191,7 +191,7 @@ static ssize_t rc6_enable_dev_show(struct device *dev, ...@@ -191,7 +191,7 @@ static ssize_t rc6_enable_dev_show(struct device *dev,
{ {
struct intel_gt *gt = intel_gt_sysfs_get_drvdata(&dev->kobj, attr->attr.name); struct intel_gt *gt = intel_gt_sysfs_get_drvdata(&dev->kobj, attr->attr.name);
return sysfs_emit(buff, "%x\n", gt->rc6.supported); return sysfs_emit(buff, "%x\n", gt->rc6.enabled);
} }
static u32 __rc6_residency_ms_show(struct intel_gt *gt) static u32 __rc6_residency_ms_show(struct intel_gt *gt)
......
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