Mesa (main): intel/ds: don't forget to reset upper dword timestamp read

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 14 20:48:02 UTC 2022


Module: Mesa
Branch: main
Commit: e35a65ae454be96bbf5ce61f05b1c43d1eb0aa28
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e35a65ae454be96bbf5ce61f05b1c43d1eb0aa28

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed Nov 24 08:20:20 2021 +0200

intel/ds: don't forget to reset upper dword timestamp read

This could lead to confusing if the 32bits roll over (every ~6mn or
so).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 4ef6698a265fd9 ("intel/ds: drop timestamp correlation code")
Reviewed-by: Rohan Garg <rohan.garg at intel.com>
Acked-by: Antonio Caggiano <antonio.caggiano at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13996>

---

 src/intel/ds/intel_pps_driver.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/ds/intel_pps_driver.cc b/src/intel/ds/intel_pps_driver.cc
index 56f08dd64fb..5d94f31af81 100644
--- a/src/intel/ds/intel_pps_driver.cc
+++ b/src/intel/ds/intel_pps_driver.cc
@@ -167,6 +167,7 @@ void IntelDriver::enable_perfcnt(uint64_t sampling_period_ns)
 
 void IntelDriver::disable_perfcnt()
 {
+   gpu_timestamp_udw = 0;
    perf = nullptr;
    groups.clear();
    counters.clear();



More information about the mesa-commit mailing list