]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftest: Synchronise with the GPU timestamp
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Feb 2021 11:29:12 +0000 (11:29 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 18:31:59 +0000 (19:31 +0100)
commitc3a369a4ae0d8db41e0770c747b032127e3f7e23
treeb095c54bde097623af1643b765acf3d18c338100
parentaca2d449b88f35edb51dda9699fd7915b9f7582e
drm/i915/selftest: Synchronise with the GPU timestamp

Wait for the GPU to wake up from the semaphore before measuring the
time, so that we coordinate the sampling on both the CPU and GPU for
more accurate comparisons.

v2: Switch to local_irq_disable() as once suggested by Mika.

Reported-by: Bruce Chang <yu.bruce.chang@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: CQ Tang <cq.tang@intel.com>
Reviewed-by: Bruce Chang <yu.bruce.chang@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205112912.22978-1-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/gt/selftest_engine_pm.c