Skip to contentSkip to conversation

drm/i915: Return stored value from max freq sysfs entry

PATCH Applied Mika Kuoppala 2 participants 2 messages Apr 11, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Return stored value from max freq sysfs entry

commit 4f9b2fe0441d4bdf5666a306156b5d6755de2584

Author: Ben Widawsky <[email protected]>
Date:   Fri Apr 5 14:29:22 2013 -0700

drm/i915: Better overclock support

changed the sysfs read semantics for 'gt_max_freq_mhz'. By always returning overclock max instead of stored value.

Fix this by returning the stored value. Separate sysfs entry should be considered for overclocking max freq.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63415

---
 drivers/gpu/drm/i915/i915_sysfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_sysfs.c +1 -1
index fa4b4e8..d5e1890 100644
@@ -226,7 +226,7 @@ static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute
 	int ret;
 
 	mutex_lock(&dev_priv->rps.hw_lock);
-	ret = dev_priv->rps.hw_max * GT_FREQUENCY_MULTIPLIER;
+	ret = dev_priv->rps.max_delay * GT_FREQUENCY_MULTIPLIER;
 	mutex_unlock(&dev_priv->rps.hw_lock);
 
 	return snprintf(buf, PAGE_SIZE, "%d\n", ret);
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 9 lines · Mika Kuoppala

commit 4f9b2fe0441d4bdf5666a306156b5d6755de2584

Author: Ben Widawsky <[email protected]>
Date:   Fri Apr 5 14:29:22 2013 -0700

drm/i915: Better overclock support

changed the sysfs read semantics for 'gt_max_freq_mhz'. By always returning overclock max instead of stored value.

Quoted 6 lines

Fix this by returning the stored value. Separate sysfs entry should be considered for overclocking max freq.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63415

Queued for -next, thanks for the patch.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch