diff options
| author | Lang Yu <[email protected]> | 2022-03-15 05:17:55 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-03-15 18:42:27 +0000 |
| commit | 8c0f11ff3895ec96c9523ac607dd51f812ab69a8 (patch) | |
| tree | 5e865ece5f6dd601407c0eab79566c60e63aad50 /drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | |
| parent | drm/amdgpu: fixed the warnings reported by kernel test robot (diff) | |
| download | kernel-8c0f11ff3895ec96c9523ac607dd51f812ab69a8.tar.gz kernel-8c0f11ff3895ec96c9523ac607dd51f812ab69a8.zip | |
drm/amdgpu: only allow secure submission on rings which support that
Only GFX ring, SDMA ring and VCN decode ring support secure submission
at the moment.
Suggested-by: Christian König <[email protected]>
Signed-off-by: Lang Yu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c index 135727b59c41..4ef4feff5649 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c @@ -1580,6 +1580,7 @@ static const struct amdgpu_ring_funcs sdma_v3_0_ring_funcs = { .align_mask = 0xf, .nop = SDMA_PKT_NOP_HEADER_OP(SDMA_OP_NOP), .support_64bit_ptrs = false, + .secure_submission_supported = true, .get_rptr = sdma_v3_0_ring_get_rptr, .get_wptr = sdma_v3_0_ring_get_wptr, .set_wptr = sdma_v3_0_ring_set_wptr, |
