[PATCH 0/2 v2] tonga_get_evv_voltage error handling fixes

Moritz Kühner kuehner.moritz at gmail.com
Sun Apr 17 14:15:22 UTC 2016


I got myself a 380X recently and started reading random mesa and kernel
code in the hopes that I would find something that I can fix or improve,
and something actually caught my eye. Some of the error handling in
tonga_get_evv_voltage just seemed of and based on the comments I think
the patches provided will do the intended thing.
While I did test the patch I have to admit that i did not try what 
happens when I apply 2V to my card ;-).

PS: This is my first submission. So... please tell me if I did something wrong.

v2: added signed of by
fixed error message print

Moritz Kühner (2):
  drm/amd/powerplay/hwmgr: prevent VDDC from exceeding 2V
  drm/amd/powerplay/hwmgr: don't add invalid voltage

 drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | 55 ++++++++++++-----------
 1 file changed, 30 insertions(+), 25 deletions(-)

-- 
2.7.4



More information about the dri-devel mailing list