drm/xe: Add helper to capture engine timestamp
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 17 May 2024 20:43:06 +0000 (13:43 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 21 May 2024 13:33:40 +0000 (06:33 -0700)
commitf2f6b667c67daee6fe2c51b5cec3bb0f1b4c1ce0
tree8b413c86dbdc810f08ee90bfd476226f46e3c9e5
parent9b090d57746d965684f53a1aefcb363bab653ad3
drm/xe: Add helper to capture engine timestamp

Just like CTX_TIMESTAMP is used to calculate runtime, add a helper to
get the timestamp for the engine so it can be used to calculate the
"engine time" with the same unit as the runtime is recorded.

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240517204310.88854-5-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_hw_engine.h