* [PATCH 1/1] drm/i915: Return stored value from max freq sysfs entry
@ 2013-04-11 12:07 Mika Kuoppala
2013-04-11 15:26 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Mika Kuoppala @ 2013-04-11 12:07 UTC (permalink / raw)
To: intel-gfx; +Cc: Ben Widawsky
commit 4f9b2fe0441d4bdf5666a306156b5d6755de2584
Author: Ben Widawsky <ben@bwidawsk.net>
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
Cc: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
drivers/gpu/drm/i915/i915_sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c
index fa4b4e8..d5e1890 100644
--- a/drivers/gpu/drm/i915/i915_sysfs.c
+++ b/drivers/gpu/drm/i915/i915_sysfs.c
@@ -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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] drm/i915: Return stored value from max freq sysfs entry
2013-04-11 12:07 [PATCH 1/1] drm/i915: Return stored value from max freq sysfs entry Mika Kuoppala
@ 2013-04-11 15:26 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2013-04-11 15:26 UTC (permalink / raw)
To: Mika Kuoppala; +Cc: intel-gfx, Ben Widawsky
On Thu, Apr 11, 2013 at 03:07:59PM +0300, Mika Kuoppala wrote:
> commit 4f9b2fe0441d4bdf5666a306156b5d6755de2584
> Author: Ben Widawsky <ben@bwidawsk.net>
> 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
> Cc: Ben Widawsky <ben@bwidawsk.net>
> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-11 15:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 12:07 [PATCH 1/1] drm/i915: Return stored value from max freq sysfs entry Mika Kuoppala
2013-04-11 15:26 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox