Jay Cornwall
c18cc2bb9e
drm/amdkfd: Fix race in gfx10 context restore handler
...
Missing synchronization with VGPR restore leads to intermittent
VGPR trashing in the user shader.
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com >
Reviewed-by: Yong Zhao <Yong.Zhao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-03 09:11:04 -05:00
Jay Cornwall
4b617e2b9e
drm/amdkfd: Swap trap temporary registers in gfx10 trap handler
...
ttmp[4:5] hold information useful to the debugger. Use ttmp[14:15]
instead, aligning implementation with gfx9 trap handler.
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com >
Reviewed-by: shaoyun liu <Shaoyun.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-09-16 15:28:31 -05:00
Jay Cornwall
1faa3b8054
drm/amdkfd: Save/restore vcc on gfx10
...
VCC moved out of user SGPR allocation in gfx10. It's now stored
in SGPRs 106-107.
Also fixes incorrect SGPR read offsets.
Cc: Shaoyun Liu <shaoyun.liu@amd.com >
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: shaoyunl <shaoyun.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-30 23:48:33 -05:00
Jay Cornwall
f9e346aba1
drm/amdkfd: Save/restore flat_scratch_lo/hi on gfx10
...
These moved from SGPRs in gfx9 to HWREG in gfx10.
Cc: Shaoyun Liu <shaoyun.liu@amd.com >
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: shaoyunl <shaoyun.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-30 23:48:33 -05:00
Jay Cornwall
7ce55e0b6f
drm/amdkfd: Fix gfx10 wave64 VGPR context restore
...
Copy/paste error, first 4 VGPRs are separated by 64 dwords (256 bytes).
Cc: Shaoyun Liu <shaoyun.liu@amd.com >
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: shaoyunl <shaoyun.liu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-30 23:48:33 -05:00
Jay Cornwall
a36e896740
drm/amdkfd: Replace gfx10 trap handler with correct branch
...
Previously submitted code was taken from an incorrect branch and
was non-functional.
Cc: Oak Zeng <oak.zeng@amd.com >
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-By: Oak Zeng <oak.zeng@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-30 23:22:11 -05:00
Philip Cox
14328aa58c
drm/amdkfd: Add navi10 support to amdkfd. (v3)
...
KFD (kernel fusion driver) is the kernel driver
for the compute backend for usermode compute
stack.
v2: squash in updates (Alex)
v3: squash in rebase fixes (Alex)
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com >
Signed-off-by: Philip Cox <Philip.Cox@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-21 18:59:24 -05:00