Skip to content

Commit 3ade2e6

Browse files
authored
Fixed GMIO trace config using partition shift in metadata (#8590)
1 parent d05b18d commit 3ade2e6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/runtime_src/xdp/profile/plugin/aie_trace/aie_trace_plugin.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,12 @@ void AieTracePluginUnified::updateAIEDevice(void *handle) {
177177
if (device != nullptr) {
178178
for (auto &gmioEntry : AIEData.metadata->get_trace_gmios()) {
179179
auto gmio = gmioEntry.second;
180-
(db->getStaticInfo())
181-
.addTraceGMIO(deviceID, gmio.id, gmio.shimColumn, gmio.channelNum,
182-
gmio.streamId, gmio.burstLength);
180+
// Get the column shift for partition
181+
// NOTE: If partition is not used, this value is zero.
182+
// This is later required for GMIO trace offload.
183+
uint8_t startColShift = AIEData.metadata->getPartitionOverlayStartCols().front();
184+
(db->getStaticInfo()).addTraceGMIO(deviceID, gmio.id, gmio.shimColumn+startColShift,
185+
gmio.channelNum, gmio.streamId, gmio.burstLength);
183186
}
184187
}
185188

src/runtime_src/xdp/profile/plugin/aie_trace/edge/aie_trace.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ namespace xdp {
295295
auto configChannel0 = metadata->getConfigChannel0();
296296
auto configChannel1 = metadata->getConfigChannel1();
297297

298+
// Get the column shift for partition
299+
// NOTE: If partition is not used, this value is zero.
298300
uint8_t startColShift = metadata->getPartitionOverlayStartCols().front();
299301
aie::displayColShiftInfo(startColShift);
300302

0 commit comments

Comments
 (0)