summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
diff options
context:
space:
mode:
authorLang Yu <Lang.Yu@amd.com>2022-03-15 13:17:55 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-03-15 14:42:27 -0400
commit8c0f11ff3895ec96c9523ac607dd51f812ab69a8 (patch)
tree5e865ece5f6dd601407c0eab79566c60e63aad50 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
parent8476269f758221863c01a0a6cccb0d75ec5d60c3 (diff)
downloadlinux-8c0f11ff3895ec96c9523ac607dd51f812ab69a8.tar.gz
linux-8c0f11ff3895ec96c9523ac607dd51f812ab69a8.tar.bz2
linux-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 <christian.koenig@amd.com> Signed-off-by: Lang Yu <Lang.Yu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 8def7f630d4c..46d4bf27ebbb 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -6865,6 +6865,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_gfx = {
.align_mask = 0xff,
.nop = PACKET3(PACKET3_NOP, 0x3FFF),
.support_64bit_ptrs = true,
+ .secure_submission_supported = true,
.vmhub = AMDGPU_GFXHUB_0,
.get_rptr = gfx_v9_0_ring_get_rptr_gfx,
.get_wptr = gfx_v9_0_ring_get_wptr_gfx,