libhsakmt: update create queue for exception handling

Update hsaKmtCreateQueue to initialize the new save area header with the
exception payload and event ID.

Signed-by-off: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Sean Keely <sean.keely@amd.com>
Change-Id: Icd38062dc982cb29b30644699014eeb0b3e26d00
This commit is contained in:
Jonathan Kim
2021-05-10 11:56:06 -04:00
committed by Jonathan Kim
parent 5fac7dcc3b
commit 96c7a5c9dc
2 changed files with 15 additions and 2 deletions
+7
View File
@@ -689,6 +689,12 @@ typedef struct
// debugger. Must be 64 byte aligned.
HSAuint32 DebugSize; // Byte size of the memory reserved for the
// debugger. Must be 64 byte aligned.
volatile HSAint64 *ErrorReason; // Address of the HSA signal payload for
// reporting the error reason bitmask.
// Must be 4 byte aligned.
HSAuint32 ErrorEventId; // Event ID used for exception signalling.
// Must be 4 byte aligned.
HSAuint32 Reserved1;
} HsaUserContextSaveAreaHeader;
@@ -738,6 +744,7 @@ typedef struct _HsaQueueResource
HSAuint64 QueueRptrValue;
};
volatile HSAint64* ErrorReason; /** exception bits signal payload */
} HsaQueueResource;