From: bugzilla-daemon@freedesktop.org Subject: [Bug 49981] On HD6850, Power Profile doesn't change if 2 screen is attached. Date: Thu, 18 Apr 2013 00:07:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1967011361==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A8327E5D07 for ; Wed, 17 Apr 2013 17:07:31 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1967011361== Content-Type: multipart/alternative; boundary="1366243651.fB7C33.24502"; charset="us-ascii" --1366243651.fB7C33.24502 Date: Thu, 18 Apr 2013 00:07:31 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=49981 --- Comment #33 from Benjamin Lee --- Sorry, my previous patch was bogus -- TURKS mobility actually needs POWER_STATE_TYPE_PERFORMANCE. radeon_pm_get_type_index() currently fails to find the requested state (POWER_STATE_TYPE_BATTERY). Here is a trivial patch against linux-3.8.8: diff -ruN linux-3.8.8.orig/drivers/gpu/drm/radeon/evergreen.c linux-3.8.8/drivers/gpu/drm/radeon/evergreen.c --- linux-3.8.8.orig/drivers/gpu/drm/radeon/evergreen.c 2013-04-16 22:11:28.000000000 -0700 +++ linux-3.8.8/drivers/gpu/drm/radeon/evergreen.c 2013-04-17 16:51:04.858752564 -0700 @@ -343,7 +343,7 @@ * MH and SH. Difference is that we always use the high clock index for * mclk. */ - if (rdev->flags & RADEON_IS_MOBILITY) + if ((rdev->flags & RADEON_IS_MOBILITY) && (rdev->family != CHIP_TURKS)) idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_BATTERY, 0); else idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_PERFORMANCE, 0); Running with the patch in multi-head shows reduced engine clock and voltage, but high memory clock as expected: blee@supra ~ $ cat /sys/class/drm/card0/device/power_method profile blee@supra ~ $ cat /sys/class/drm/card0/device/power_profile low blee@supra ~ $ sudo cat /sys/kernel/debug/dri/0/radeon_pm_info default engine clock: 600000 kHz current engine clock: 99990 kHz default memory clock: 793750 kHz current memory clock: 793750 kHz voltage: 900 mV -- You are receiving this mail because: You are the assignee for the bug. --1366243651.fB7C33.24502 Date: Thu, 18 Apr 2013 00:07:31 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 33 on bug 49981 from
Sorry, my previous patch was bogus -- TURKS mobility actually needs
POWER_STATE_TYPE_PERFORMANCE.  radeon_pm_get_type_index() currently fails to
find the requested state (POWER_STATE_TYPE_BATTERY).

Here is a trivial patch against linux-3.8.8:

diff -ruN linux-3.8.8.orig/drivers/gpu/drm/radeon/evergreen.c
linux-3.8.8/drivers/gpu/drm/radeon/evergreen.c
--- linux-3.8.8.orig/drivers/gpu/drm/radeon/evergreen.c 2013-04-16
22:11:28.000000000 -0700
+++ linux-3.8.8/drivers/gpu/drm/radeon/evergreen.c      2013-04-17
16:51:04.858752564 -0700
@@ -343,7 +343,7 @@
         * MH and SH.  Difference is that we always use the high clock index
for
         * mclk.
         */
-       if (rdev->flags & RADEON_IS_MOBILITY)
+       if ((rdev->flags & RADEON_IS_MOBILITY) && (rdev->family != CHIP_TURKS))
                idx = radeon_pm_get_type_index(rdev, POWER_STATE_TYPE_BATTERY,
0);
        else
                idx = radeon_pm_get_type_index(rdev,
POWER_STATE_TYPE_PERFORMANCE, 0);

Running with the patch in multi-head shows reduced engine clock and voltage,
but high memory clock as expected:

blee@supra ~ $ cat /sys/class/drm/card0/device/power_method
profile
blee@supra ~ $ cat /sys/class/drm/card0/device/power_profile
low
blee@supra ~ $ sudo cat /sys/kernel/debug/dri/0/radeon_pm_info
default engine clock: 600000 kHz
current engine clock: 99990 kHz
default memory clock: 793750 kHz
current memory clock: 793750 kHz
voltage: 900 mV


You are receiving this mail because:
  • You are the assignee for the bug.
--1366243651.fB7C33.24502-- --===============1967011361== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1967011361==--