drm/i915/selftest: Fix ktime_get() and h/w access order
authorAnshuman Gupta <anshuman.gupta@intel.com>
Thu, 23 Feb 2023 10:05:03 +0000 (15:35 +0530)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Fri, 3 Mar 2023 14:08:08 +0000 (19:38 +0530)
commit4d14d7717f19fb1125496b1fd836ca89f11d540f
tree204183dc1ed36a89d3e24b88081d7fbeaf63f4cd
parent29b41cf707b5ecc55cab12bfa04fbd9811f4fd04
drm/i915/selftest: Fix ktime_get() and h/w access order

Use ktime_get() after accessing the mmio or any driver resource,
while using wall time for various calculation that depends on
the inserted delay in order to account any mmio and resource
access latency.

Cc: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230223100503.3323627-3-anshuman.gupta@intel.com
drivers/gpu/drm/i915/gt/selftest_rps.c