]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Fix setting of boost freq tunable
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 14 Dec 2016 12:26:20 +0000 (14:26 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 20 Dec 2016 14:29:48 +0000 (16:29 +0200)
commitb1b7ec985805e005055d1d471ca586a715ffc10a
tree78f1689c76078f8f29294479a1b3be118b3e927c
parent2c57b18adb93fc070039538f1ce375d3d3e99bbb
drm/i915: Fix setting of boost freq tunable

For limiting the max frequency of gpu, the max freq tunable
is not enough to hard limit the max gap. We now have also per
client boost max freq. When this tunable was introduced,
it was mistakenly made read only. Allow user to gain control by
setting it writable.

Fixes: 29ecd78d3b79 ("drm/i915: Define a separate variable and control for RPS waitboost frequency")
Cc: <stable@vger.kernel.org> # v4.9+
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1481718380-9170-1-git-send-email-mika.kuoppala@intel.com
(cherry picked from commit 73a798711314b54cbd4fe224e24db92c306a8d8c)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_sysfs.c