aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
diff options
context:
space:
mode:
authorChristian König <[email protected]>2022-11-25 15:04:25 +0000
committerAlex Deucher <[email protected]>2022-12-14 14:48:32 +0000
commit56b0989e2939811c11ed9c449ff84cf85878ffe3 (patch)
treeaa0be4f7dbef6f519c68c300e0eda2bbdc91ae02 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
parentdrm/amd/pm: add missing SMU13.0.7 mm_dpm feature mapping (diff)
downloadkernel-56b0989e2939811c11ed9c449ff84cf85878ffe3.tar.gz
kernel-56b0989e2939811c11ed9c449ff84cf85878ffe3.zip
drm/amdgpu: fix GDS/GWS/OA switch handling
Bas pointed out that this isn't working as expected and could cause crashes. Fix the handling by storing the marker that a switch is needed inside the job instead. Reported-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_job.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
index a372802ea4e0..02e85b040baf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
@@ -53,6 +53,7 @@ struct amdgpu_job {
uint32_t preamble_status;
uint32_t preemption_status;
bool vm_needs_flush;
+ bool gds_switch_needed;
uint64_t vm_pd_addr;
unsigned vmid;
unsigned pasid;