drm/amdgpu: fix GDS/GWS/OA switch handling
authorChristian König <christian.koenig@amd.com>
Fri, 25 Nov 2022 15:04:25 +0000 (16:04 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Dec 2022 14:48:32 +0000 (09:48 -0500)
commit56b0989e2939811c11ed9c449ff84cf85878ffe3
treeaa0be4f7dbef6f519c68c300e0eda2bbdc91ae02
parente0607c10ebf551a654c3577fc74b4bf5533e1cea
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 <bas@basnieuwenhuizen.nl>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c