7a3bf30769
There is an issue in the gfx12 trap handler where the EXCP_FLAG_PRIV is only fetched under certain conditions (trap_id != 0) while it should have been fetched unconditionally. As a consequence, the interrupt payload might contain invalid data, leading to incorrect exceptions being reported by the runtime. Debugger is mostly un-affected as it will inspect the wave's state to figure out what exception(s) have been reported for each wave. Also, it is not necessary to check for the host trap bit if trap_id is != 0 in gfx12, there is on trap ID anymore for host trap. This patch implements those fixes. Co-Authored-By: Laurent Morichetti <laurent.morichetti@amd.com> Change-Id: Ib72cd8cc5d935ca643e241da7fccd3f96201b09d Signed-off-by: Chris Freehill <cfreehil@amd.com>