Add new trap handler, bump debug API version

Also fix hsaKmtRuntimeEnable error handling. Continue if ioctl fails.

Change-Id: I754ccba5910ccfef6f1ada1415593ef89ce33aba


[ROCm/ROCR-Runtime commit: 7e4088309d]
Ta zmiana jest zawarta w:
Jay Cornwall authored and Sean Keely committed 2021-07-16 18:03:26 -05:00
1 rodzic 0bb9344674
złożenie 06cc198b57
4 plików zmienionych
+269 -23

Żadne pliki nie pasują do Twojego wyszukiwania

@@ -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,