From d46ed9a2177a2e69a87d2cb319f180c68ddae150 Mon Sep 17 00:00:00 2001 From: Mayank Raghuwanshi Date: Tue, 24 May 2022 16:38:36 +0530 Subject: [PATCH] Fix bitwise operation of timestamp for sysman memory module Related-To: LOCI-3147 Signed-off-by: Mayank Raghuwanshi --- .../tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp b/level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp index 2572f935db..9ade7e6b4c 100644 --- a/level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp +++ b/level_zero/tools/source/sysman/memory/linux/os_memory_imp_prelim.cpp @@ -232,8 +232,8 @@ ze_result_t LinuxMemoryImp::getHbmBandwidth(uint32_t numHbmModules, zes_mem_band if (result != ZE_RESULT_SUCCESS) { return result; } - pBandwidth->timestamp |= timeStampH; - pBandwidth->timestamp = (pBandwidth->timestamp << 32) | timeStampL; + pBandwidth->timestamp = timeStampH; + pBandwidth->timestamp = (pBandwidth->timestamp << 32) | static_cast(timeStampL); uint64_t hbmFrequency = 0; getHbmFrequency(productFamily, stepping, hbmFrequency);