drm/amd/pm: optimize the power related source code layout
authorEvan Quan <evan.quan@amd.com>
Thu, 13 Aug 2020 08:39:25 +0000 (16:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Aug 2020 20:22:41 +0000 (16:22 -0400)
The target is to provide a clear entry point(for power routines).
Also this can help to maintain a clear view about the frameworks
used on different ASICs. Hopefully all these can make power part
more friendly to play with.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
203 files changed:
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/pm/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/pm/amdgpu_dpm.c [moved from drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c with 100% similarity]
drivers/gpu/drm/amd/pm/amdgpu_pm.c [moved from drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c with 100% similarity]
drivers/gpu/drm/amd/pm/inc/amd_powerplay.h [moved from drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h [moved from drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h [moved from drivers/gpu/drm/amd/amdgpu/amdgpu_pm.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h [moved from drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/arcturus_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/arcturus_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/cz_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/cz_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/fiji_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/fiji_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/hardwaremanager.h [moved from drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/inc/hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/polaris10_pwrvirus.h [moved from drivers/gpu/drm/amd/powerplay/inc/polaris10_pwrvirus.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/power_state.h [moved from drivers/gpu/drm/amd/powerplay/inc/power_state.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/pp_debug.h [moved from drivers/gpu/drm/amd/powerplay/inc/pp_debug.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/pp_endian.h [moved from drivers/gpu/drm/amd/powerplay/inc/pp_endian.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/pp_thermal.h [moved from drivers/gpu/drm/amd/powerplay/inc/pp_thermal.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/ppinterrupt.h [moved from drivers/gpu/drm/amd/powerplay/inc/ppinterrupt.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/rv_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/rv_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu10.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu10.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu10_driver_if.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu10_driver_if.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu11_driver_if.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu11_driver_if_arcturus.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_arcturus.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu11_driver_if_navi10.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_navi10.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu11_driver_if_sienna_cichlid.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_sienna_cichlid.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu12_driver_if.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu12_driver_if.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu7.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu7.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu71.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu71.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu71_discrete.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu71_discrete.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu72.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu72.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu72_discrete.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu72_discrete.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu73.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu73.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu73_discrete.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu73_discrete.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu74.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu74.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu74_discrete.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu74_discrete.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu75.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu75.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu75_discrete.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu75_discrete.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu7_common.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu7_common.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu7_discrete.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu7_discrete.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu7_fusion.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu7_fusion.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu7_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu7_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu8.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu8.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu8_fusion.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu8_fusion.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu9.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu9.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu9_driver_if.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_types.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_types.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_ucode_xfer_cz.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_ucode_xfer_cz.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_ucode_xfer_vi.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_ucode_xfer_vi.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v11_0.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v11_0_7_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_7_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v11_0_7_pptable.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_7_pptable.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v11_0_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v11_0_pptable.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v12_0.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v12_0.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smu_v12_0_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/smu_v12_0_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/smumgr.h [moved from drivers/gpu/drm/amd/powerplay/inc/smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/tonga_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/tonga_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/vega10_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/vega10_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/vega12/smu9_driver_if.h [moved from drivers/gpu/drm/amd/powerplay/inc/vega12/smu9_driver_if.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/vega12_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/vega12_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/inc/vega20_ppsmc.h [moved from drivers/gpu/drm/amd/powerplay/inc/vega20_ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/Makefile [moved from drivers/gpu/drm/amd/powerplay/Makefile with 70% similarity]
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c [moved from drivers/gpu/drm/amd/powerplay/amd_powerplay.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/cik_dpm.h [moved from drivers/gpu/drm/amd/amdgpu/cik_dpm.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/Makefile [moved from drivers/gpu/drm/amd/powerplay/hwmgr/Makefile with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ci_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ci_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ci_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ci_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/common_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/common_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/common_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/common_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/fiji_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/fiji_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/fiji_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/fiji_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hardwaremanager.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr_ppt.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr_ppt.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/polaris_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/polaris_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/polaris_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/polaris_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_overdriver.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_overdriver.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pp_overdriver.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppevvmath.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pppcielanes.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pppcielanes.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pppcielanes.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pppcielanes.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/pptable_v1_0.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_inc.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu10_inc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_clockpowergating.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_clockpowergating.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_dyn_defaults.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_dyn_defaults.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_powertune.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_powertune.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu9_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu9_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu9_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu9_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/tonga_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/tonga_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/tonga_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/tonga_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_inc.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_inc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_pptable.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_pptable.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_inc.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_inc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_pptable.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_pptable.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_thermal.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_thermal.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_inc.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_inc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_powertune.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_powertune.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_powertune.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_powertune.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_pptable.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_pptable.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_processpptables.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.h [moved from drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c [moved from drivers/gpu/drm/amd/amdgpu/kv_dpm.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/kv_dpm.h [moved from drivers/gpu/drm/amd/amdgpu/kv_dpm.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/kv_smc.c [moved from drivers/gpu/drm/amd/amdgpu/kv_smc.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/ppsmc.h [moved from drivers/gpu/drm/amd/amdgpu/ppsmc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/r600_dpm.h [moved from drivers/gpu/drm/amd/amdgpu/r600_dpm.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/si_dpm.c [moved from drivers/gpu/drm/amd/amdgpu/si_dpm.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/si_dpm.h [moved from drivers/gpu/drm/amd/amdgpu/si_dpm.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/si_smc.c [moved from drivers/gpu/drm/amd/amdgpu/si_smc.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/sislands_smc.h [moved from drivers/gpu/drm/amd/amdgpu/sislands_smc.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/Makefile [moved from drivers/gpu/drm/amd/powerplay/smumgr/Makefile with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/ci_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu10_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu8_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu9_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu9_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega10_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega10_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega12_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega12_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/vega12_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega20_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vega20_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c [moved from drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c with 100% similarity]
drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.h [moved from drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.h with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c [moved from drivers/gpu/drm/amd/powerplay/amdgpu_smu.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c [moved from drivers/gpu/drm/amd/powerplay/arcturus_ppt.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.h [moved from drivers/gpu/drm/amd/powerplay/arcturus_ppt.h with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c [moved from drivers/gpu/drm/amd/powerplay/navi10_ppt.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.h [moved from drivers/gpu/drm/amd/powerplay/navi10_ppt.h with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c [moved from drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.h [moved from drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.h with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c [moved from drivers/gpu/drm/amd/powerplay/smu_v11_0.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu12/Makefile [new file with mode: 0644]
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c [moved from drivers/gpu/drm/amd/powerplay/renoir_ppt.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.h [moved from drivers/gpu/drm/amd/powerplay/renoir_ppt.h with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c [moved from drivers/gpu/drm/amd/powerplay/smu_v12_0.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c [moved from drivers/gpu/drm/amd/powerplay/smu_cmn.c with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h [moved from drivers/gpu/drm/amd/powerplay/smu_cmn.h with 100% similarity]
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h [moved from drivers/gpu/drm/amd/powerplay/smu_internal.h with 100% similarity]

index dec1927..39976c7 100644 (file)
@@ -30,7 +30,7 @@ FULL_AMD_DISPLAY_PATH = $(FULL_AMD_PATH)/$(DISPLAY_FOLDER_NAME)
 ccflags-y := -I$(FULL_AMD_PATH)/include/asic_reg \
        -I$(FULL_AMD_PATH)/include \
        -I$(FULL_AMD_PATH)/amdgpu \
-       -I$(FULL_AMD_PATH)/powerplay/inc \
+       -I$(FULL_AMD_PATH)/pm/inc \
        -I$(FULL_AMD_PATH)/acp/include \
        -I$(FULL_AMD_DISPLAY_PATH) \
        -I$(FULL_AMD_DISPLAY_PATH)/include \
@@ -47,7 +47,7 @@ amdgpu-y += amdgpu_device.o amdgpu_kms.o \
        amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
        amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
        amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
-       amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
+       atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
        atombios_encoders.o amdgpu_sa.o atombios_i2c.o \
        amdgpu_dma_buf.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
        amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o \
@@ -60,10 +60,10 @@ amdgpu-y += amdgpu_device.o amdgpu_kms.o \
 amdgpu-$(CONFIG_PERF_EVENTS) += amdgpu_pmu.o
 
 # add asic specific block
-amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \
+amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o \
        dce_v8_0.o gfx_v7_0.o cik_sdma.o uvd_v4_2.o vce_v2_0.o
 
-amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce_v6_0.o si_dpm.o si_smc.o \
+amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce_v6_0.o \
        uvd_v3_1.o
 
 amdgpu-y += \
@@ -105,10 +105,6 @@ amdgpu-y += \
        psp_v11_0.o \
        psp_v12_0.o
 
-# add SMC block
-amdgpu-y += \
-       amdgpu_dpm.o
-
 # add DCE block
 amdgpu-y += \
        dce_v10_0.o \
@@ -212,7 +208,7 @@ amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
 amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
 amdgpu-$(CONFIG_HMM_MIRROR) += amdgpu_mn.o
 
-include $(FULL_AMD_PATH)/powerplay/Makefile
+include $(FULL_AMD_PATH)/pm/Makefile
 
 amdgpu-y += $(AMD_POWERPLAY_FILES)
 
diff --git a/drivers/gpu/drm/amd/pm/Makefile b/drivers/gpu/drm/amd/pm/Makefile
new file mode 100644 (file)
index 0000000..f01e860
--- /dev/null
@@ -0,0 +1,46 @@
+#
+# Copyright 2017 Advanced Micro Devices, Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+
+subdir-ccflags-y += \
+               -I$(FULL_AMD_PATH)/pm/inc/  \
+               -I$(FULL_AMD_PATH)/include/asic_reg  \
+               -I$(FULL_AMD_PATH)/include  \
+               -I$(FULL_AMD_PATH)/pm/swsmu \
+               -I$(FULL_AMD_PATH)/pm/swsmu/smu11 \
+               -I$(FULL_AMD_PATH)/pm/swsmu/smu12 \
+               -I$(FULL_AMD_PATH)/pm/powerplay \
+               -I$(FULL_AMD_PATH)/pm/powerplay/smumgr\
+               -I$(FULL_AMD_PATH)/pm/powerplay/hwmgr
+
+AMD_PM_PATH = ../pm
+
+PM_LIBS = swsmu powerplay
+
+AMD_PM = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/pm/,$(PM_LIBS)))
+
+include $(AMD_PM)
+
+PM_MGR = amdgpu_dpm.o amdgpu_pm.o
+
+AMD_PM_POWER = $(addprefix $(AMD_PM_PATH)/,$(PM_MGR))
+
+AMD_POWERPLAY_FILES += $(AMD_PM_POWER)
similarity index 70%
rename from drivers/gpu/drm/amd/powerplay/Makefile
rename to drivers/gpu/drm/amd/pm/powerplay/Makefile
index e9c48f9..0fb114a 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright 2017 Advanced Micro Devices, Inc.
+# Copyright 2020 Advanced Micro Devices, Inc.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # copy of this software and associated documentation files (the "Software"),
 # OTHER DEALINGS IN THE SOFTWARE.
 #
 
-subdir-ccflags-y += \
-               -I$(FULL_AMD_PATH)/powerplay/inc/  \
-               -I$(FULL_AMD_PATH)/include/asic_reg  \
-               -I$(FULL_AMD_PATH)/include  \
-               -I$(FULL_AMD_PATH)/powerplay/smumgr\
-               -I$(FULL_AMD_PATH)/powerplay/hwmgr
-
-AMD_PP_PATH = ../powerplay
+AMD_PP_PATH = ../pm/powerplay
 
 PP_LIBS = smumgr hwmgr
 
-AMD_POWERPLAY = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/powerplay/,$(PP_LIBS)))
+AMD_POWERPLAY = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/pm/powerplay/,$(PP_LIBS)))
 
 include $(AMD_POWERPLAY)
 
-POWER_MGR = amd_powerplay.o amdgpu_smu.o smu_v11_0.o \
-           smu_v12_0.o arcturus_ppt.o navi10_ppt.o \
-           renoir_ppt.o sienna_cichlid_ppt.o smu_cmn.o
+POWER_MGR-y = amd_powerplay.o
+
+POWER_MGR-$(CONFIG_DRM_AMDGPU_CIK)+= kv_dpm.o kv_smc.o
+
+POWER_MGR-$(CONFIG_DRM_AMDGPU_SI)+= si_dpm.o si_smc.o
 
-AMD_PP_POWER = $(addprefix $(AMD_PP_PATH)/,$(POWER_MGR))
+AMD_PP_POWER = $(addprefix $(AMD_PP_PATH)/,$(POWER_MGR-y))
 
 AMD_POWERPLAY_FILES += $(AMD_PP_POWER)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/Makefile b/drivers/gpu/drm/amd/pm/swsmu/Makefile
new file mode 100644 (file)
index 0000000..6f28199
--- /dev/null
@@ -0,0 +1,36 @@
+#
+# Copyright 2020 Advanced Micro Devices, Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+
+AMD_SWSMU_PATH = ../pm/swsmu
+
+SWSMU_LIBS = smu11 smu12
+
+AMD_SWSMU = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/pm/swsmu/,$(SWSMU_LIBS)))
+
+include $(AMD_SWSMU)
+
+SWSMU_MGR = amdgpu_smu.o \
+           smu_cmn.o \
+
+AMD_SWSMU_POWER = $(addprefix $(AMD_SWSMU_PATH)/,$(SWSMU_MGR))
+
+AMD_POWERPLAY_FILES += $(AMD_SWSMU_POWER)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/Makefile b/drivers/gpu/drm/amd/pm/swsmu/smu11/Makefile
new file mode 100644 (file)
index 0000000..f98d971
--- /dev/null
@@ -0,0 +1,33 @@
+#
+# Copyright 2020 Advanced Micro Devices, Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+#
+# Makefile for the 'smu manager' sub-component of powerplay.
+# It provides the smu management services for the driver.
+
+SMU11_MGR = arcturus_ppt.o \
+           navi10_ppt.o \
+           sienna_cichlid_ppt.o \
+           smu_v11_0.o
+
+AMD_SWSMU_SMU11MGR = $(addprefix $(AMD_SWSMU_PATH)/smu11/,$(SMU11_MGR))
+
+AMD_POWERPLAY_FILES += $(AMD_SWSMU_SMU11MGR)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/Makefile b/drivers/gpu/drm/amd/pm/swsmu/smu12/Makefile
new file mode 100644 (file)
index 0000000..67e53f7
--- /dev/null
@@ -0,0 +1,31 @@
+#
+# Copyright 2020 Advanced Micro Devices, Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+#
+# Makefile for the 'smu manager' sub-component of powerplay.
+# It provides the smu management services for the driver.
+
+SMU12_MGR = renoir_ppt.o \
+           smu_v12_0.o
+
+AMD_SWSMU_SMU12MGR = $(addprefix $(AMD_SWSMU_PATH)/smu12/,$(SMU12_MGR))
+
+AMD_POWERPLAY_FILES += $(AMD_SWSMU_SMU12MGR)