]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/sdma: simplify sdma instance setup
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jun 2018 17:24:10 +0000 (12:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:39:52 +0000 (16:39 -0500)
commit1cf0abb6c983d90ec541ebba79934a9c4786df1d
tree8f4c1b4dcbe6ca895832abde19129536dac9a2ac
parented54d954e5c1d8bad453fb86109075b3577152b7
drm/amdgpu/sdma: simplify sdma instance setup

Set the me instance in early init and use that rather than
calculating the instance based on the ring pointer.

Reviewed-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@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/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c