]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Limit number of reads to stabilize rc6 counter reads
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Mar 2017 16:54:18 +0000 (16:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Mar 2017 11:48:45 +0000 (12:48 +0100)
commit7b10d8d786a2c639905f361d569a61b84100db22
tree9fa6408d9e9aa1d7c95d01ecd303b26f0819dfc3
parentfa5579c57cee29fd6b4f296beb8eef1e840cbf79
drm/i915: Limit number of reads to stabilize rc6 counter reads

We have only 8bits of precise timestamps in which to complete our
upper/load reads, along with the switch between precision. This is not
always enough time to read the upper counter twice within the same time
slice, leading to hard lockups. Limit the number of times to prevent
an inifite loop (my fault for assuming we would have no trouble doing
the write + reads fast enough).

Fixes: a89dd1365b5d ("drm/i915: Extend vlv/chv residency resolution")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100377
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170324165418.7455-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/intel_pm.c