Skip to content

Commit 4104e63

Browse files
jcescamirodrigovivi
authored andcommitted
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: Juan Escamilla <jcescami@wasd.net> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240116172922.3460695-1-jcescami@wasd.net
1 parent 6d46d09 commit 4104e63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static ssize_t rc6_enable_show(struct kobject *kobj,
182182
{
183183
struct intel_gt *gt = intel_gt_sysfs_get_drvdata(kobj, attr->attr.name);
184184

185-
return sysfs_emit(buff, "%x\n", gt->rc6.supported);
185+
return sysfs_emit(buff, "%x\n", gt->rc6.enabled);
186186
}
187187

188188
static ssize_t rc6_enable_dev_show(struct device *dev,
@@ -191,7 +191,7 @@ static ssize_t rc6_enable_dev_show(struct device *dev,
191191
{
192192
struct intel_gt *gt = intel_gt_sysfs_get_drvdata(&dev->kobj, attr->attr.name);
193193

194-
return sysfs_emit(buff, "%x\n", gt->rc6.supported);
194+
return sysfs_emit(buff, "%x\n", gt->rc6.enabled);
195195
}
196196

197197
static u32 __rc6_residency_ms_show(struct intel_gt *gt)

0 commit comments

Comments
 (0)