[PATCH] drm/amdgpu: Use signed arithmetic for overdrive clock calculations

2017-01-13 Thread Donny Yang
Signed-off-by: Donny Yang --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 70 +++- 1 file changed, 21 insertions(+), 49 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index a74f60a5

[PATCH 0/2] Report VDDC and MVDD over pp_dpm{sclk,mclk}

2017-01-13 Thread Donny Yang
Tested on a RX480. I'm not sure whether to report VDDCI or MVDD for memory. MVDD felt "more" correct, so that's what I've done. Donny Yang (2): drm/amdgpu: Populate DPMv1 voltage tables drm/amdgpu: Report VDDC and MVDD over pp_dpm{sclk,mclk} drivers/gpu/drm/amd/pow

[PATCH 2/2] drm/amdgpu: Report VDDC and MVDD over pp_dpm{sclk,mclk}

2017-01-13 Thread Donny Yang
Signed-off-by: Donny Yang --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index 103e1330..4dd27c28 100644 --- a

Undervolting RX480 from amdgpu

2017-01-13 Thread Donny Yang
Hello A phoronix user reported success undervolting their RX470 under amdgpu-pro ( https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/amd-linux/918649-underclocking-undervolting-the-rx-470-with-amdgpu-pro-success), but I noticed they only edited a file that is in the non-pro versio

[PATCH 1/2] drm/amdgpu: Populate DPMv1 voltage tables

2017-01-13 Thread Donny Yang
Signed-off-by: Donny Yang --- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 46 +--- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c index f6c01e19