Commit c790f873 authored by Moritz Kühner's avatar Moritz Kühner Committed by Alex Deucher

drm/amd/powerplay/hwmgr: prevent VDDC from exceeding 2V

If the tonga gpu is controlled by SVID2 tonga_get_evv_voltage will only print
an error if the voltage exceeds 2V although a comment clearly states that it
needs be less than 2V.

v2: added signed of by
Signed-off-by: default avatarMoritz Kühner <kuehner.moritz@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 74c97375
...@@ -458,8 +458,7 @@ int tonga_get_evv_voltage(struct pp_hwmgr *hwmgr) ...@@ -458,8 +458,7 @@ int tonga_get_evv_voltage(struct pp_hwmgr *hwmgr)
"Error retrieving EVV voltage value!", continue); "Error retrieving EVV voltage value!", continue);
/* need to make sure vddc is less than 2v or else, it could burn the ASIC. */ /* need to make sure vddc is less than 2v or else, it could burn the ASIC. */
if (vddc > 2000) PP_ASSERT_WITH_CODE(vddc < 2000, "Invalid VDDC value!", return -1);
printk(KERN_ERR "[ powerplay ] Invalid VDDC value! \n");
/* the voltage should not be zero nor equal to leakage ID */ /* the voltage should not be zero nor equal to leakage ID */
if (vddc != 0 && vddc != virtual_voltage_id) { if (vddc != 0 && vddc != virtual_voltage_id) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment