Skip to content

Commit b8e4284

Browse files
huangruialexdeucher
authored andcommitted
drm/amdgpu: enable psp front door loading by default for cyan_skillfish2
The function is ready on psp firmware, and enable it by default. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Tao Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8d35a25 commit b8e4284

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,11 @@ amdgpu_ucode_get_load_type(struct amdgpu_device *adev, int load_type)
410410
else
411411
return AMDGPU_FW_LOAD_PSP;
412412
case CHIP_CYAN_SKILLFISH:
413-
if (adev->apu_flags & AMD_APU_IS_CYAN_SKILLFISH2 &&
414-
load_type > 1)
413+
if (!(load_type &&
414+
adev->apu_flags & AMD_APU_IS_CYAN_SKILLFISH2))
415+
return AMDGPU_FW_LOAD_DIRECT;
416+
else
415417
return AMDGPU_FW_LOAD_PSP;
416-
return AMDGPU_FW_LOAD_DIRECT;
417418
default:
418419
DRM_ERROR("Unknown firmware load type\n");
419420
}

0 commit comments

Comments
 (0)