Add new trap handler, bump debug API version

Also fix hsaKmtRuntimeEnable error handling. Continue if ioctl fails.

Change-Id: I754ccba5910ccfef6f1ada1415593ef89ce33aba
This commit is contained in:
Jay Cornwall
2021-05-28 13:06:34 -05:00
کامیت شده توسط Sean Keely
والد 0159aea4c9
کامیت 7e4088309d
4فایلهای تغییر یافته به همراه269 افزوده شده و 23 حذف شده
@@ -78,7 +78,8 @@ __attribute__((noinline)) static void _loader_debug_state() {
// 3: New trap handler ABI. A wave halted at S_ENDPGM rewinds its PC by 8 bytes, and sets ttmp11[9]=1.
// 4: New trap handler ABI. Save the trap id in ttmp11[16:9]
// 5: New trap handler ABI. Save the PC in ttmp11[22:7] ttmp6[31:0], and park the wave if stopped
HSA_API r_debug _amdgpu_r_debug = {5,
// 6: New trap handler ABI. ttmp6[25:0] contains dispatch index modulo queue size
HSA_API r_debug _amdgpu_r_debug = {6,
nullptr,
reinterpret_cast<uintptr_t>(&_loader_debug_state),
r_debug::RT_CONSISTENT,