]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/oa: Check that OA is disabled before unpinning
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 May 2018 13:52:07 +0000 (14:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 11 May 2018 16:17:46 +0000 (17:17 +0100)
commita9858bf2521d9f9b39ec48de456b58cb5b5f03e1
tree010f34f1b4a7c421da576eb6d0caa450e5b9dd87
parent6138b72603c39ab14529f6733259c5a3af45a859
drm/i915/oa: Check that OA is disabled before unpinning

Before we unpin the buffer used for OA reports and return it to the
system, we need to be sure that the HW has finished writing into it.
For lack of a better idea, poll OACONTROL to check it is switched off.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106379
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180511135207.12880-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c