drm/radeon: fix voltage setup on hawaii
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Feb 2015 05:40:58 +0000 (00:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Feb 2015 15:03:48 +0000 (10:03 -0500)
Missing parameter when fetching the real voltage values
from atom.  Fixes problems with dynamic clocking on
certain boards.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=87457

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_atombios.c

index dbc94f3002972dfb9319289e133bbc5ca2d985c6..fc1b3f34cf1827c7498512e7b9f4e36039787d41 100644 (file)
@@ -3289,6 +3289,7 @@ int radeon_atom_get_voltage_evv(struct radeon_device *rdev,
 
        args.in.ucVoltageType = VOLTAGE_TYPE_VDDC;
        args.in.ucVoltageMode = ATOM_GET_VOLTAGE_EVV_VOLTAGE;
+       args.in.usVoltageLevel = cpu_to_le16(virtual_voltage_id);
        args.in.ulSCLKFreq =
                cpu_to_le32(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries[entry_id].clk);