drm/amdgpu: Remove FW_LOAD_DIRECT type support on VI
Subsystems (2)
PATCH v2 1/1 drm/amdgpu: Remove FW_LOAD_DIRECT type support on VI
AMDGPU_FW_LOAD_DIRECT is used for bring up. Now it don't work any more. so remove the support.
v2: Add warning message if user select
AMDGPU_FW_LOAD_DIRECT/AMDGPU_FW_LOAD_PSP on VI.
Signed-off-by Rex Zhu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 7 +- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 249 ++++++------------------------ drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 57 +------ 3 files changed, 59 insertions(+), 254 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c +3 -4
@@ -297,10 +297,9 @@ enum amdgpu_firmware_load_typecase CHIP_POLARIS11 :case CHIP_POLARIS12 :case CHIP_VEGAM : -if (!load_type) -return AMDGPU_FW_LOAD_DIRECT ; -else -return AMDGPU_FW_LOAD_SMU ; +if (load_type !=AMDGPU_FW_LOAD_SMU ) +pr_warning ("%d is not supported on VI\n" , load_type); +return AMDGPU_FW_LOAD_SMU ;case CHIP_VEGA10 :case CHIP_RAVEN :case CHIP_VEGA12 :
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +49 -200
290 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c +7 -50
75 lines not on this page · raw message
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx