]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon: fix voltage setup on hawaii
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Feb 2015 05:40:58 +0000 (00:40 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 14 Mar 2015 19:37:17 +0000 (15:37 -0400)
commit 09b6e85fc868568e1b2820235a2a851aecbccfcc upstream.

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/radeon/radeon_atombios.c

index df69b92ba164158cc5e7ae79f7b59db65305dd49..d79e892093b59f994618aa0399e5def317af8c5c 100644 (file)
@@ -3280,6 +3280,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);