]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Kick the rps worker when changing the boost frequency
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Mar 2018 14:26:47 +0000 (14:26 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 12 Mar 2018 18:24:49 +0000 (11:24 -0700)
commit181f638782924a11547890d436c738d05b25a978
treeb0eec973d2690a658fae627a47b15763a9558d4b
parent0f309e52e6d055788737cbb7b88f603ea926f95f
drm/i915: Kick the rps worker when changing the boost frequency

The boost frequency is only applied from the RPS worker while someone is
waiting on a request and requested a boost. As such, when the user
wishes to change the frequency, we have to kick the worker in order to
re-evaluate whether to apply the boost frequency.

v2: Check num_waiters to decide if we should kick the worker to handle
boosting.

Fixes: eadaadb2eaba ("drm/i915: Define a separate variable and control for RPS waitboost frequency")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180308142648.4016-1-chris@chris-wilson.co.uk
(cherry picked from commit 59cd31f177b34deb834a5c97478502741be1cf2e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_sysfs.c