drm/amdgpu/mes10.1: add the helper function for mes command submission
authorJack Xiao <Jack.Xiao@amd.com>
Tue, 15 Oct 2019 08:35:30 +0000 (16:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:08 +0000 (01:59 -0400)
commit29ce0f6f3c035187becc0b3bd97703b3692770b4
tree48e8a4bb6967976397c09ea54228f51365d44e33
parent3f63345d38a604b1aeab518b9c1845e91430baec
drm/amdgpu/mes10.1: add the helper function for mes command submission

The helper function is used to submit mes command and poll waiting
for the command completion.

v2: replaced with amdgpu_fence_wait_polling to wait.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c