diff options
| author | Victor Zhao <[email protected]> | 2021-03-18 05:44:35 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-05-27 16:33:52 +0000 |
| commit | f1688bd69ec4b07eda1657ff953daebce7cfabf6 (patch) | |
| tree | 6dd133a531185048f3884a4f799dad54244016ce /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | |
| parent | drm/amdgpu/swsmu/aldebaran: fix check in is_dpm_running (diff) | |
| download | kernel-f1688bd69ec4b07eda1657ff953daebce7cfabf6.tar.gz kernel-f1688bd69ec4b07eda1657ff953daebce7cfabf6.zip | |
drm/amd/amdgpu:save psp ring wptr to avoid attack
[Why]
When some tools performing psp mailbox attack, the readback value
of register can be a random value which may break psp.
[How]
Use a psp wptr cache machanism to aovid the change made by attack.
v2: unify change and add detailed reason
Signed-off-by: Victor Zhao <[email protected]>
Signed-off-by: Jingwen Chen <[email protected]>
Reviewed-by: Monk Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h index 46a5328e00e0..60aa99a39a74 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h @@ -76,6 +76,7 @@ struct psp_ring uint64_t ring_mem_mc_addr; void *ring_mem_handle; uint32_t ring_size; + uint32_t ring_wptr; }; /* More registers may will be supported */ |
