Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 7 additions & 4 deletions src/driver/amdxdna/ve2_host_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ struct ve2_hsa_queue {
struct hsa_queue *hsa_queue_p;
struct ve2_mem hsa_queue_mem;
struct ve2_hq_complete hq_complete;
/* hq_lock protects hsa_queue_p->hq_header->[read | write]_index */
// hq_lock protects [read | write]_index and reserved_write_index
struct mutex hq_lock;
u64 reserved_write_index;
};

/* handshake */
Expand Down Expand Up @@ -193,14 +194,16 @@ struct handshake {
u32 last_ddr_dm2mm_addr_low; // 94
u32 last_ddr_mm2dm_addr_high; // 98
u32 last_ddr_mm2dm_addr_low; // 9c
struct { /* Hardware sync required */ // a0
/* Hardware sync required - offset 0xa0 */
struct {
u32 fw_state;
u32 abs_page_index; //absolute index of page where current control code are in
u32 ppc; // previous pc(relative to current page) drives current_job_context to NULL
}
vm;
struct { /* Hardware sync required */ // ac
u32 ear; //exception address
/* Hardware sync required - offset 0xac */
struct {
u32 ear; /* exception address */
u32 esr; //exception status
u32 pc; //exception pc
}
Expand Down
Loading