drm/amdkfd: Unify gfx9/gfx10 context save area layouts
authorLaurent Morichetti <laurent.morichetti@amd.com>
Mon, 6 Jul 2020 23:13:40 +0000 (16:13 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:20:47 +0000 (16:20 -0400)
commit0a5baee415000a3e18730ac98e19d046c3cebbe6
tree501d51660b92be347fefd81a18588c0acc170ef4
parent26cfd12b5e24993ac943ac37044128fe33b3ed94
drm/amdkfd: Unify gfx9/gfx10 context save area layouts

Add some padding before the MODE register in the HWREGs block to
preserve the same layout as gfx9. This simplifies implementation of a
user-mode debugger.

Signed-off-by: Laurent Morichetti <laurent.morichetti@amd.com>
Reviewed-by: Jay Cornwall <jay.cornwall@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx10.asm