fix(sysman): Correct the Timestamp PMT offsets for BMG Rev 15 guid

Related-To: NEO-15091

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
This commit is contained in:
Anvesh Bakwad
2025-06-03 17:16:51 +00:00
committed by Compute-Runtime-Automation
parent ccf7a113be
commit dd6ee5bd7a
5 changed files with 18 additions and 18 deletions

View File

@@ -58,8 +58,8 @@ static std::map<std::string, std::map<std::string, uint64_t>> guidToKeyOffsetMap
{"reg_PCIESS_tx_pktcount_lsb", 304},
{"reg_PCIESS_tx_pktcount_msb", 300},
{"MSU_BITMASK", 3688},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_UPPER", 368},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_LOWER", 372},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_UPPER", 372},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_LOWER", 368},
{"GDDR0_CH0_GT_32B_RD_REQ_UPPER", 376},
{"GDDR0_CH0_GT_32B_RD_REQ_LOWER", 380},
{"GDDR1_CH0_GT_32B_RD_REQ_UPPER", 536},

View File

@@ -59,8 +59,8 @@ static std::map<unsigned long, std::map<std::string, uint32_t>> guidToKeyOffsetM
{"rx_pkt_count_msb", 73},
{"tx_pkt_count_lsb", 76},
{"tx_pkt_count_msb", 75},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_UPPER", 92},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_LOWER", 93},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_UPPER", 93},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_LOWER", 92},
{"GDDR0_CH0_GT_32B_RD_REQ_UPPER", 94},
{"GDDR0_CH0_GT_32B_RD_REQ_LOWER", 95},
{"GDDR1_CH0_GT_32B_RD_REQ_UPPER", 134},

View File

@@ -1120,10 +1120,10 @@ HWTEST2_F(SysmanProductHelperMemoryTest, GivenSysmanProductHelperInstanceWhenCal
} else if (fd == 6) {
switch (offset) {
case 368:
memcpy(buf, &timeStampUpper, count);
memcpy(buf, &timeStampLower, count);
break;
case 372:
memcpy(buf, &timeStampLower, count);
memcpy(buf, &timeStampUpper, count);
break;
case 376:
memcpy(buf, &readCounterUpper32Bit, count);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2024 Intel Corporation
* Copyright (C) 2024-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -36,8 +36,8 @@ constexpr uint64_t mockRxPacketCounterLsbOffset = telem3OffsetValue + 296;
constexpr uint64_t mockRxPacketCounterMsbOffset = telem3OffsetValue + 292;
constexpr uint64_t mockTxPacketCounterLsbOffset = telem3OffsetValue + 304;
constexpr uint64_t mockTxPacketCounterMsbOffset = telem3OffsetValue + 300;
constexpr uint64_t mockTimestampLsbOffset = telem3OffsetValue + 372;
constexpr uint64_t mockTimestampMsbOffset = telem3OffsetValue + 368;
constexpr uint64_t mockTimestampLsbOffset = telem3OffsetValue + 368;
constexpr uint64_t mockTimestampMsbOffset = telem3OffsetValue + 372;
constexpr uint32_t mockRxCounterLsb = 0xA2u;
constexpr uint32_t mockRxCounterMsb = 0xF5u;

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2024 Intel Corporation
* Copyright (C) 2024-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -36,8 +36,8 @@ const std::map<std::string, std::pair<uint32_t, uint32_t>> dummyKeyOffsetMap = {
{"GDDR0_CH0_SOC_32B_WR_REQ_LOWER", {111, 1}},
{"GDDR0_CH1_SOC_32B_WR_REQ_UPPER", {130, 1}},
{"GDDR0_CH1_SOC_32B_WR_REQ_LOWER", {131, 1}},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_UPPER", {92, 1}},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_LOWER", {93, 1}},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_UPPER", {93, 1}},
{"GDDR_TELEM_CAPTURE_TIMESTAMP_LOWER", {92, 1}},
{"GDDR0_CH0_GT_64B_RD_REQ_UPPER", {96, 1}},
{"GDDR0_CH0_GT_64B_RD_REQ_LOWER", {97, 1}},
{"GDDR0_CH1_GT_64B_RD_REQ_UPPER", {116, 1}},
@@ -120,11 +120,11 @@ HWTEST2_F(SysmanDeviceMemoryHelperFixture, GivenValidMemoryHandleWhenGettingBand
return true;
case 92:
*lpBytesReturned = 8;
*static_cast<uint32_t *>(lpOutBuffer) = 0;
*static_cast<uint32_t *>(lpOutBuffer) = mockMemoryBandwidthTimestamp;
return true;
case 93:
*lpBytesReturned = 8;
*static_cast<uint32_t *>(lpOutBuffer) = mockMemoryBandwidthTimestamp;
*static_cast<uint32_t *>(lpOutBuffer) = 0;
return true;
default:
*lpBytesReturned = 8;
@@ -168,13 +168,13 @@ HWTEST2_F(SysmanDeviceMemoryHelperFixture, GivenValidMemoryHandleWhenGettingBand
*static_cast<uint32_t *>(lpOutBuffer) = 131072;
return count == 2 ? false : true;
case 92:
*lpBytesReturned = 8;
*static_cast<uint32_t *>(lpOutBuffer) = 0;
return count == 3 ? false : true;
case 93:
*lpBytesReturned = 8;
*static_cast<uint32_t *>(lpOutBuffer) = 1230000;
return count == 4 ? false : true;
case 93:
*lpBytesReturned = 8;
*static_cast<uint32_t *>(lpOutBuffer) = 0;
return count == 3 ? false : true;
case 94:
*lpBytesReturned = 8;
*static_cast<uint32_t *>(lpOutBuffer) = 0;