]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extract i915_cs_timestamp_{ns_to_ticks,tick_to_ns}()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Mar 2020 14:39:42 +0000 (16:39 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 May 2020 17:04:02 +0000 (20:04 +0300)
commit802a5820fc0c0f12b40280db3dbaaf8359b07243
tree2a3cdb0537a79899356f3e34de3e2aa1464dbdfa
parent56f1b31f1dd60db4b02024a13eea45b5bbccc44e
drm/i915: Extract i915_cs_timestamp_{ns_to_ticks,tick_to_ns}()

Pull the code to do the CS timestamp ns<->ticks conversion into
helpers and use them all over.

The check in i915_perf_noa_delay_set() seems a bit dubious,
so we switch it to do what I assume it wanted to do all along
(ie. make sure the resulting delay in CS timestamp ticks
doesn't exceed 32bits)?

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200302143943.32676-5-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_perf.c
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/selftests/i915_perf.c