]> git.baikalelectronics.ru Git - kernel.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)
commit1f3c6340161f4a06733d79affcdc0b2a9bf626c4
tree8f4c1b4dcbe6ca895832abde19129536dac9a2ac
parent3e780f260326e895d5bf18c58a6ebb0d7e512abc
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