]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: job is secure iff CS is secure (v5)
authorHuang Rui <ray.huang@amd.com>
Thu, 8 Aug 2019 12:05:15 +0000 (20:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:28 +0000 (16:20 -0400)
commit92b5fc8c00a27fee3f21a60c4013008a38a0519f
tree81b909fea5730ea98ebf919d7c47755e32025747
parent90b92544d098ee0cae0424792f3fa38d490d4cd2
drm/amdgpu: job is secure iff CS is secure (v5)

Mark a job as secure, if and only if the command
submission flag has the secure flag set.

v2: fix the null job pointer while in vmid 0
submission.
v3: Context --> Command submission.
v4: filling cs parser with cs->in.flags
v5: move the job secure flag setting out of amdgpu_cs_submit()

Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h