aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd
AgeCommit message (Collapse)AuthorFilesLines
2015-12-21amd/powerplay: Fix get dal power levelVitaly Prosyak6-15/+12
Simplify data struct for get dal power level Signed-off-by: Vitaly Prosyak <[email protected]>
2015-12-21amd\powerplay Implement get dal power levelVitaly Prosyak6-19/+85
Implement get dal power level and simple clock info Signed-off-by: Vitaly Prosyak <[email protected]>
2015-12-21drm/amd/powerplay: display gpu load when print performance for tonga.Rex Zhu1-1/+12
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Rex Zhu <[email protected]>
2015-12-21drm/amdgpu/powerplay: enable sysfs and debugfs interfaces lateAlex Deucher1-1/+4
To avoid users accessing them before the module has finished initializing them and make sure they are only created if dpm has properly initialized. Reviewed-by: Christian König <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: move shared function of vi to hwmgr. (v2)Rex Zhu4-19/+379
v2: agd: rebase on upstream Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Rex Zhu <[email protected]>
2015-12-21drm/amd/powerplay: check whether enable dpm in powerplay.Rex Zhu1-1/+4
Change-Id: I0a2dbf8ef7d4a3e9788fe211fc5964dd2487c519 Signed-off-by: Rex Zhu <[email protected]>
2015-12-21drm/amd/powerplay: fix bug that dpm funcs in debugfs/sysfs missing.Rex Zhu1-1/+14
in dpm module, sysfs init func move to late_init from sw_init. Reviewed-by: Alex Deucher <[email protected]> Change-Id: Ice4a73212d8e3106d05f04a27043820ffd32929e Signed-off-by: Rex Zhu <[email protected]>
2015-12-21drm/amd/powerplay: fix boolreturn.cocci warningskbuild test robot1-2/+2
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/ppatomctrl.c:475:10-11: WARNING: return of 0/1 in function 'atomctrl_lookup_gpio_pin' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: yanyang1 <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: add functions set/get_fan_control_mode in hwmgr for Fiji.Eric Huang2-0/+27
Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay: add functions set/get_fan_control_mode in hwmgr for Tonga.Eric Huang2-0/+27
Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay: Fix a bug in fan control setting default mode for Tonga ↵Eric Huang2-2/+2
and Fiji. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay: Add thermal protection support for Fiji.Eric Huang4-1/+892
Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay: add display configeration changed function in hwmgr for Fiji.Eric Huang2-0/+68
Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amdgpu: Prepare DKMS build for powerplay module.Qiang Yu1-1/+1
Signed-off-by: Qiang Yu <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/amdgpu: enable uvd&vce clock gating for Fiji.Eric Huang1-1/+2
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]> Acked-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/amdgpu: add vce3.0 clock gating support. (v2)Eric Huang1-1/+148
v2: fix grbm locking Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]> Acked-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/amdgpu: add uvd6.0 clock gating support. (v2)Eric Huang1-2/+259
v2: fix bug in register mask setting. Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]> Acked-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay: add multimedia power gating support for Fiji.Eric Huang5-3/+281
Acked-by: Jammy Zhou <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amdgpu: rename fiji_smumgr.h to fiji_smum.hJammy Zhou3-2/+2
This conflicts with fiji_smumgr.h from powerplay in DKMS environment Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Jordan Lazare <[email protected]>
2015-12-21drm/amdgpu: rename tonga_smumgr.h to tonga_smum.hJammy Zhou3-2/+2
This conflicts with the tonga_smumgr.h from powerplay in DKMS environement Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Jordan Lazare <[email protected]>
2015-12-21drm/amd/powerplay: Add PPLib debug print macro.David Rokhvarg2-4/+40
- The macro is silent by default. - Use the macro to print Display Configuration - related changes. Signed-off-by: David Rokhvarg <[email protected]>
2015-12-21drm/amd/powerplay: enable/disable NB pstate feature for Carrizo.Rex Zhu2-15/+87
Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: David Rokhvarg <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/powerplay: enable set_cpu_power_state task. (v2)Rex Zhu6-5/+21
v2: integrate Jammy's crash fix Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/powerplay: export interface to DAL to init/change display configuration.Rex Zhu5-0/+45
Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: David Rokhvarg <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/powerplay: add smc msg for NB P-State switchRex Zhu2-0/+9
Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: David Rokhvarg <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/powerplay: add new function point in hwmgr.Rex Zhu1-1/+5
1. for set_cpu_power_state 2. restore display configuration Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21amdgpu/powerplay: Add Stoney to list of early init casesTom St Denis1-0/+1
Signed-off-by: Tom St Denis <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: fix warning of cast to pointer from integer of different ↵Rex Zhu1-2/+2
size. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: fix warning of cast to pointer from integer of different ↵rezhu3-6/+6
size. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: implement smc state upload for CZAlex Deucher4-22/+141
Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: add atomctrl function to calculate CZ sclk dividersAlex Deucher2-0/+25
Use atombios to calculate the values. Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: enable clock gating for Fiji.Eric Huang1-1/+8
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay: add parts of system clock gating support for Fiji. (v2)Eric Huang1-0/+86
Removed fiji_mgcg_cgcg_init that is affected and redundant for new implementation. v2: re-add mgcg_cgcg init Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amdgpu: add sdma clock gating support for Fiji.Eric Huang1-0/+105
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/amdgpu: add gmc clock gating support for Fiji.Eric Huang1-0/+172
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/amdgpu: add gfx clock gating support for Fiji.Eric Huang1-0/+254
Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Eric Huang <[email protected]>
2015-12-21drm/amd/powerplay/tonga: Add UVD DPM initAlex Deucher1-0/+56
Load the UVD DPM state into the SMC. Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: fix boolreturn.cocci warningskbuild test robot1-4/+4
drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_hwmgr.c:2653:9-10: WARNING: return of 0/1 in function 'is_pcie_gen2_supported' with return type bool drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/tonga_hwmgr.c:2645:9-10: WARNING: return of 0/1 in function 'is_pcie_gen3_supported' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: yanyang1 <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amdgpu/powerplay/fiji: query supported pcie info from cgs (v2)Alex Deucher1-2/+18
Rather than hardcode it. v2: integrate spc fix from Rex Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amdgpu/powerplay/tonga: query supported pcie info from cgs (v2)Alex Deucher1-2/+18
Rather than hardcode it. v2: integrate spc fix from Rex Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amdgpu/cgs: add sys info query for pcie gen and link widthAlex Deucher2-0/+8
Needed by powerplay to properly handle pcie dpm switching. Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amdgpu: store pcie gen mask and link widthAlex Deucher4-20/+99
We'll need this later for pcie dpm. Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amdgpu: extract pcie helpers to common headerAlex Deucher6-137/+193
These will be used by multiple powerplay drivers and other IP modules. Reviewed-by: Jammy Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay/fiji: enable pcie and mclk forcing for lowAlex Deucher1-5/+25
When forcing the lowest state also force mclk and pcie. Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay/tonga: enable pcie and mclk forcing for lowAlex Deucher1-11/+37
When forcing the lowest state also force mclk and pcie. Signed-off-by: Alex Deucher <[email protected]>
2015-12-21drm/amd/powerplay: refine the logic of whether need to update power state.Rex Zhu2-3/+11
Better handle power state changes. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/powerplay: implement new funcs to check current states for tonga.Rex Zhu1-0/+62
Implement the new callbacks for tonga. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amd/powerplay: add and export hwmgr interface to eventmgr to check hw ↵Rex Zhu3-0/+34
states. Interface between hwmgr and eventmgr. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-12-21drm/amdgpu: support per device powerplay enablement (v2)Jammy Zhou6-61/+65
The amdgu_powerplay variable is global for multiple GPU instances. v2: fold in Flora's module option change, protect adev reference in macros Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-12-21drm/amdgpu: enable sysfs interface for powerplayRex Zhu1-9/+11
Same interface exposed in pre-powerplay dpm code. Signed-off-by: Rex Zhu <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]>