From: bugzilla-daemon@freedesktop.org
Subject: [Bug 96487] Cannot force power_dpm_force_performance_level to high
Date: Mon, 13 Jun 2016 16:08:52 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0138776769=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[IPv6:2610:10:20:722:a800:ff:fe98:4b55])
by gabe.freedesktop.org (Postfix) with ESMTP id DF9C76E64D
for ; Mon, 13 Jun 2016 16:08:51 +0000 (UTC)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============0138776769==
Content-Type: multipart/alternative; boundary="14658341311.121cBee21.19776";
charset="UTF-8"
--14658341311.121cBee21.19776
Date: Mon, 13 Jun 2016 16:08:51 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
https://bugs.freedesktop.org/show_bug.cgi?id=3D96487
--- Comment #6 from Alex Deucher ---
The hardware automatically adjusts the clock speeds on demand based on GPU =
load
when in auto mode. Trinity/richland chips do not support forcing to high.
>From the driver code in trinity_dpm.c:
int trinity_dpm_force_performance_level(struct radeon_device *rdev,
enum radeon_dpm_forced_level level)
{
struct trinity_power_info *pi =3D trinity_get_pi(rdev);
struct radeon_ps *rps =3D &pi->current_rps;
struct trinity_ps *ps =3D trinity_get_ps(rps);
int i, ret;
if (ps->num_levels <=3D 1)
return 0;
if (level =3D=3D RADEON_DPM_FORCED_LEVEL_HIGH) {
/* not supported by the hw */
return -EINVAL;
} else if (level =3D=3D RADEON_DPM_FORCED_LEVEL_LOW) {
ret =3D trinity_dpm_n_levels_disabled(rdev, ps->num_levels =
- 1);
if (ret)
return ret;
} else {
for (i =3D 0; i < ps->num_levels; i++) {
ret =3D trinity_dpm_n_levels_disabled(rdev, 0);
if (ret)
return ret;
}
}
rdev->pm.dpm.forced_level =3D level;
return 0;
}
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--14658341311.121cBee21.19776
Date: Mon, 13 Jun 2016 16:08:51 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
Comment=
# 6
on bug 96487<=
/a>
from Alex Deucher
The hardware automatically adjusts the clock speeds on demand =
based on GPU load
when in auto mode. Trinity/richland chips do not support forcing to high.
>From the driver code in trinity_dpm.c:
int trinity_dpm_force_performance_level(struct radeon_device *rdev,
enum radeon_dpm_forced_level level)
{
struct trinity_power_info *pi =3D trinity_get_pi(rdev);
struct radeon_ps *rps =3D &pi->current_rps;
struct trinity_ps *ps =3D trinity_get_ps(rps);
int i, ret;
if (ps->num_levels <=3D 1)
return 0;
if (level =3D=3D RADEON_DPM_FORCED_LEVEL_HIGH) {
/* not supported by the hw */
return -EINVAL;
} else if (level =3D=3D RADEON_DPM_FORCED_LEVEL_LOW) {
ret =3D trinity_dpm_n_levels_disabled(rdev, ps->num_leve=
ls - 1);
if (ret)
return ret;
} else {
for (i =3D 0; i < ps->num_levels; i++) {
ret =3D trinity_dpm_n_levels_disabled(rdev, 0);
if (ret)
return ret;
}
}
rdev->pm.dpm.forced_level =3D level;
return 0;
}
You are receiving this mail because:
- You are the assignee for the bug.
=
--14658341311.121cBee21.19776--
--===============0138776769==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0138776769==--