drm/amd/powerplay: add the hw manager for vega20 (v3)
authorEvan Quan <evan.quan@amd.com>
Thu, 2 Aug 2018 20:55:33 +0000 (15:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:27 +0000 (11:10 -0500)
commitda958630d530250c72bc54394ce77488acf2144c
treeea28952a10d90860c9938698facc023e12393108
parentf0e7e5e2a8e4cad91b24ae5dbcd308cd2c05382a
drm/amd/powerplay: add the hw manager for vega20 (v3)

hwmgr is the interface for the driver to setup state
structures which are used by the smu for managing the
power state.

v2: squash in fixes:
- update set_watermarks_for_clocks_ranges to use common code
- drop unsupported apis
- correct MAX_REGULAR_DPM_NUMBER value
- multimonitor fixes
- add check for vbios pptable version
- revise dpm table setup
- init fclk dpm state
- Remove unused definition in vega20_hwmgr
- support power limit setup
- enable vega20 to honour DAL clock limits
- comment out dump_table debugging
v3: switch to SOC15 register access macros

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/Makefile
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.h [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_powertune.c [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_powertune.h [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.h [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c [new file with mode: 0644]
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.h [new file with mode: 0644]