OSDN Git Service

drm/i915/perf: don't read head/tail pointers outside critical section
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 30 Mar 2020 09:14:11 +0000 (12:14 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 31 Mar 2020 08:47:19 +0000 (11:47 +0300)
commitd16e137e7f4b3ccb2b66081b9bc40bc0cbe5aef8
tree4c07c5936ec2fd6d9373e712a35287951bcc9520
parentb28b34ac85d73ec77c6c442ab72fe0c7769e6475
drm/i915/perf: don't read head/tail pointers outside critical section

Reading or writing those fields should only happen under
stream->oa_buffer.ptr_lock.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: d1df41eb72ef ("drm/i915/perf: rework aging tail workaround")
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200330091411.37357-1-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c