[Bug 41234] Power management not working correct with HD4650 Mobility (M96)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 17 14:41:40 PDT 2012


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

--- Comment #11 from j.rehborn at googlemail.com 2012-07-17 14:41:40 PDT ---
In file "[Kerneldir]/driver/gpu/drm/radeon/radeon-pm.c" in function
radeon_set_power_state() 

/I used wrong variablenames
gpuclk = sclk
memclk = mclk

First Kernel: 
sclk change enable
mclk change disable

Here I comment out this part

/* set memory clock */
if (rdev->asic->set_memory_clock && (mclk != rdev->pm.current_mclk)) {
    radeon_pm_debug_check_in_vbl(rdev, false);
    radeon_set_memory_clock(rdev, mclk);
    radeon_pm_debug_check_in_vbl(rdev, true);
    rdev->pm.current_mclk = mclk;
    DRM_DEBUG_DRIVER("Setting: m: %d\n", mclk);
}
------------------------------------------------
Second Kernel: 
sclk change disable
mclk change enable

Here I comment out this parts

if (!misc_after)
/* voltage, pcie lanes, etc.*/
    radeon_pm_misc(rdev);
    /* set engine clock */
    if (sclk != rdev->pm.current_sclk) {
        radeon_pm_debug_check_in_vbl(rdev, false);
        radeon_set_engine_clock(rdev, sclk);
        radeon_pm_debug_check_in_vbl(rdev, true);
        rdev->pm.current_sclk = sclk;
        DRM_DEBUG_DRIVER("Setting: e: %d\n", sclk);
    }

/*...mclk change part...*/

if (misc_after)
    /* voltage, pcie lanes, etc.*/
    radeon_pm_misc(rdev);
------------------------------------------------

Then tested the different PStates manual with
echo [PSTATE] > /sys/class/drm/card0/device/power_profile

------------------------------------------------

The Bug appears always if the mclk is changing.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the xorg-driver-ati mailing list