drm/amdgpu: fix regression in amdgpu_ucode_init_bo
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix regression in amdgpu_ucode_init_bo
From: Christian König <[email protected]>
Going into the error case when everything works is a bad idea.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +2 -2
@@ -283,6 +283,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev) fw_offset +=ALIGN (le32_to_cpu (header->ucode_size_bytes),PAGE_SIZE ); } } +return 0 ; failed_kmap:amdgpu_bo_unpin (*bo);
@@ -291,8 +292,7 @@ failed_pin: failed_reserve:amdgpu_bo_unref (bo); failed: -if (err) - adev->firmware.smu_load = false; + adev->firmware.smu_load = false;return err; }
Signature · 6 lines
2.5.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1473865101-1952-1-git-send-email-deathsimple-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org
Alex Deucher
Reviewed-byQuoted 5 lines · Christian König
From: Christian König <[email protected]>
Going into the error case when everything works is a bad idea.
Signed-off-by Christian König <[email protected]>
Quoted 29 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +2
-3@@ -283,6 +283,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev) fw_offset +=ALIGN (le32_to_cpu (header->ucode_size_bytes),PAGE_SIZE ); } } +return 0 ; failed_kmap:amdgpu_bo_unpin (*bo);@@ -291,8 +292,7 @@ failed_pin: failed_reserve:amdgpu_bo_unref (bo); failed: -if (err) - adev->firmware.smu_load = false; + adev->firmware.smu_load = false;return err; } --2.5.0
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang Rui
Acked-byQuoted 6 lines · Christian König
From: Christian König <[email protected]>
Going into the error case when everything works is a bad idea.
Signed-off-by Christian König <[email protected]>---
Christian, thanks.
Quoted 32 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +2
-2@@ -283,6 +283,7 @@ int amdgpu_ucode_init_bo(struct amdgpu_device *adev) fw_offset +=ALIGN (le32_to_cpu (header->ucode_size_bytes),PAGE_SIZE ); } } +return 0 ; failed_kmap:amdgpu_bo_unpin (*bo);@@ -291,8 +292,7 @@ failed_pin: failed_reserve:amdgpu_bo_unref (bo); failed: -if (err) - adev->firmware.smu_load = false; + adev->firmware.smu_load = false;return err; }Signature · 6 lines
2.5.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx