OSDN Git Service

drm/amdgpu: Add helper function to get sdma index
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 31 Oct 2018 11:49:27 +0000 (19:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 20:49:38 +0000 (15:49 -0500)
commitf6cffc0d4d3c20bd5c9b3c825448016d7388b43a
tree1258a5d196a22d3e27f37792af78290fcea7a83d
parentccf191f8aabf8cb7bb01e4efae7bdb73614c745b
drm/amdgpu: Add helper function to get sdma index

Get the sdma index from ring

v2: refine function name

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h