diff options
author | Christian König <christian.koenig@amd.com> | 2022-11-25 18:42:45 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-12-14 17:48:32 +0300 |
commit | 5f3c40e9e2460c42f5bf6c51b1e393d7159241c3 (patch) | |
tree | ca92535df7bb86c2bf8fb59b91a7721d4e37a570 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | |
parent | 56b0989e2939811c11ed9c449ff84cf85878ffe3 (diff) | |
download | linux-5f3c40e9e2460c42f5bf6c51b1e393d7159241c3.tar.xz |
drm/amdgpu: cleanup SPM support a bit
This should probably not access job->vm and also emit the SPM switch
under the conditional execute.
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | 1 |
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 02e85b040baf..52f2e313ea17 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.h @@ -54,6 +54,7 @@ struct amdgpu_job { uint32_t preemption_status; bool vm_needs_flush; bool gds_switch_needed; + bool spm_update_needed; uint64_t vm_pd_addr; unsigned vmid; unsigned pasid; |