mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
drm/amdgpu: small cleanup to CIK SDMA
Tidy cik_sdma_hw_init() by returning directly cik_sdma_start()'s result. Keep amdgpu_cik_gpu_check_soft_reset() early declaration with others. Signed-off-by: Alexandre Demers <alexandre.f.demers@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
60c53fe7bc
commit
e319f9ec36
@@ -56,6 +56,8 @@ static void cik_sdma_set_buffer_funcs(struct amdgpu_device *adev);
|
||||
static void cik_sdma_set_vm_pte_funcs(struct amdgpu_device *adev);
|
||||
static int cik_sdma_soft_reset(struct amdgpu_ip_block *ip_block);
|
||||
|
||||
u32 amdgpu_cik_gpu_check_soft_reset(struct amdgpu_device *adev);
|
||||
|
||||
MODULE_FIRMWARE("amdgpu/bonaire_sdma.bin");
|
||||
MODULE_FIRMWARE("amdgpu/bonaire_sdma1.bin");
|
||||
MODULE_FIRMWARE("amdgpu/hawaii_sdma.bin");
|
||||
@@ -67,9 +69,6 @@ MODULE_FIRMWARE("amdgpu/kabini_sdma1.bin");
|
||||
MODULE_FIRMWARE("amdgpu/mullins_sdma.bin");
|
||||
MODULE_FIRMWARE("amdgpu/mullins_sdma1.bin");
|
||||
|
||||
u32 amdgpu_cik_gpu_check_soft_reset(struct amdgpu_device *adev);
|
||||
|
||||
|
||||
static void cik_sdma_free_microcode(struct amdgpu_device *adev)
|
||||
{
|
||||
int i;
|
||||
@@ -993,14 +992,9 @@ static int cik_sdma_sw_fini(struct amdgpu_ip_block *ip_block)
|
||||
|
||||
static int cik_sdma_hw_init(struct amdgpu_ip_block *ip_block)
|
||||
{
|
||||
int r;
|
||||
struct amdgpu_device *adev = ip_block->adev;
|
||||
|
||||
r = cik_sdma_start(adev);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
return r;
|
||||
return cik_sdma_start(adev);
|
||||
}
|
||||
|
||||
static int cik_sdma_hw_fini(struct amdgpu_ip_block *ip_block)
|
||||
|
||||
Reference in New Issue
Block a user