Skip to content

Commit

Permalink
aie driver api name changes (#8389)
Browse files Browse the repository at this point in the history
* aie driver api name changes

* fix

---------

Co-authored-by: ch vamshi krishna <[email protected]>
  • Loading branch information
chvamshi-xilinx and ch vamshi krishna authored Sep 3, 2024
1 parent c34c5af commit 1833602
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ namespace {
XAIEGBL_MEM_DMABD6CTRL_VALBD_MASK, XAIEGBL_MEM_DMABD7CTRL_VALBD_MASK
};

auto tileOffset = _XAie_GetTileAddr(aieDevInst, row, column);
auto tileOffset = XAie_GetTileAddr(aieDevInst, row, column);

for (int bd = 0; bd < NUM_BDS; ++bd) {
uint32_t regValue = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ namespace {
XAIEGBL_MEM_DMABD4CTRL_VALBD_MASK, XAIEGBL_MEM_DMABD5CTRL_VALBD_MASK,
XAIEGBL_MEM_DMABD6CTRL_VALBD_MASK, XAIEGBL_MEM_DMABD7CTRL_VALBD_MASK};

auto tileOffset = _XAie_GetTileAddr(aieDevInst, row, column);
auto tileOffset = XAie_GetTileAddr(aieDevInst, row, column);
for (int bd = 0; bd < NUM_BDS; ++bd) {
uint32_t regValue = 0;
XAie_Read32(aieDevInst, tileOffset + offsets[bd], &regValue);
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/core/edge/user/device_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ struct aie_reg_read
if (it == regmap.end())
throw xrt_core::error(-EINVAL, "Invalid register");

rc = XAie_Read32(devInst, it->second + _XAie_GetTileAddr(devInst,row,col), &val);
rc = XAie_Read32(devInst, it->second + XAie_GetTileAddr(devInst,row,col), &val);
if(rc != XAIE_OK)
throw xrt_core::error(-EINVAL, boost::str(boost::format("Error reading register '%s' (0x%8x) for AIE[%u:%u]")
% v.c_str() % it->second % col % (row-1)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ namespace xdp {
XAIEGBL_MEM_DMABD4CTRL_VALBD_MASK, XAIEGBL_MEM_DMABD5CTRL_VALBD_MASK,
XAIEGBL_MEM_DMABD6CTRL_VALBD_MASK, XAIEGBL_MEM_DMABD7CTRL_VALBD_MASK};

auto tileOffset = _XAie_GetTileAddr(aieDevInst, row, column);
auto tileOffset = XAie_GetTileAddr(aieDevInst, row, column);
for (int bd = 0; bd < NUM_BDS; ++bd) {
uint32_t regValue = 0;
XAie_Read32(aieDevInst, tileOffset + offsets[bd], &regValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ namespace xdp {
// Read core status and PC value
bool coreUnstalled = false;
uint32_t coreStatus = 0;
auto tileOffset = _XAie_GetTileAddr(aieDevInst, tile.row + offset, tile.col);
auto tileOffset = XAie_GetTileAddr(aieDevInst, tile.row + offset, tile.col);
XAie_Read32(aieDevInst, tileOffset + AIE_OFFSET_CORE_STATUS, &coreStatus);

auto& coreStallCounter = coreStuckCountMap[tile];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ namespace xdp::aie::trace {
"Configuring memory tile edge events to detect rise and fall of event "
+ std::to_string(eventNum));

auto tileOffset = _XAie_GetTileAddr(aieDevInst, tile.row, tile.col);
auto tileOffset = XAie_GetTileAddr(aieDevInst, tile.row, tile.col);
XAie_Write32(aieDevInst, tileOffset + AIE_OFFSET_EDGE_CONTROL_MEM_TILE,
edgeEventsValue);
return;
Expand Down Expand Up @@ -345,7 +345,7 @@ namespace xdp::aie::trace {
"Configuring AIE tile edge events to detect rise and fall of event "
+ std::to_string(eventNum));

auto tileOffset = _XAie_GetTileAddr(aieDevInst, tile.row, tile.col);
auto tileOffset = XAie_GetTileAddr(aieDevInst, tile.row, tile.col);
XAie_Write32(aieDevInst, tileOffset + AIE_OFFSET_EDGE_CONTROL_MEM,
edgeEventsValue);
}
Expand Down

0 comments on commit 1833602

Please sign in to comment.