Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/driver/amdxdna/aie2_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,10 +1224,16 @@ static int aie2_query_ctx_status_array(struct amdxdna_client *client,

dma_hdl = amdxdna_mgmt_buff_alloc(xdna, sizeof(*r), DMA_FROM_DEVICE);
if (IS_ERR(dma_hdl)) {
XDNA_WARN(xdna, "Allocate memory failed, skip get app health");
XDNA_WARN(xdna, "Failed to allocate memory for app health");
return PTR_ERR(dma_hdl);
}

r = amdxdna_mgmt_buff_get_cpu_addr(dma_hdl, 0);
if (IS_ERR(r)) {
XDNA_WARN(xdna, "Failed to get CPU address for app health");
return PTR_ERR(r);
}

list_for_each_entry(tmp_client, &xdna->client_list, node) {
int heap_usage;

Expand Down