Skip to content

Commit

Permalink
Fixed GMIO trace config using partition shift in metadata (#8590)
Browse files Browse the repository at this point in the history
  • Loading branch information
vipangul authored Nov 5, 2024
1 parent d05b18d commit 3ade2e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,12 @@ void AieTracePluginUnified::updateAIEDevice(void *handle) {
if (device != nullptr) {
for (auto &gmioEntry : AIEData.metadata->get_trace_gmios()) {
auto gmio = gmioEntry.second;
(db->getStaticInfo())
.addTraceGMIO(deviceID, gmio.id, gmio.shimColumn, gmio.channelNum,
gmio.streamId, gmio.burstLength);
// Get the column shift for partition
// NOTE: If partition is not used, this value is zero.
// This is later required for GMIO trace offload.
uint8_t startColShift = AIEData.metadata->getPartitionOverlayStartCols().front();
(db->getStaticInfo()).addTraceGMIO(deviceID, gmio.id, gmio.shimColumn+startColShift,
gmio.channelNum, gmio.streamId, gmio.burstLength);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ namespace xdp {
auto configChannel0 = metadata->getConfigChannel0();
auto configChannel1 = metadata->getConfigChannel1();

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

Expand Down

0 comments on commit 3ade2e6

Please sign in to comment.