From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102511] RV770 error on change dpm balanced<->battery Date: Fri, 01 Sep 2017 23:53:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0026783129==" 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 2C6886E0B4 for ; Fri, 1 Sep 2017 23:53:34 +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 --===============0026783129== Content-Type: multipart/alternative; boundary="15043100130.88Bb.7644"; charset="UTF-8" --15043100130.88Bb.7644 Date: Fri, 1 Sep 2017 23:53:33 +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=3D102511 --- Comment #5 from Rob MacKinnon --- Comments inline... (In reply to Alex Deucher from comment #2) > (In reply to Rob MacKinnon from comment #0) > > * Actual Result: > > - DPMS change level changes as expected. > > - Dmesg: > > [ 3302.814889] [drm:btc_dpm_set_power_state [radeon]] *ERROR* > > rv770_restrict_performance_levels_before_switch failed > > [ 3316.661933] [drm:btc_dpm_set_power_state [radeon]] *ERROR* > > rv770_restrict_performance_levels_before_switch failed > >=20 > > * Expected result: > > - DPMS change level changes as expected. > > - No error messages in dmesg. >=20 > Are you actually experiencing any problems? I think the error message may > be harmless can could probably be removed. The annoyance of the message is totally trivial, but I believe there is an issue with the initial setting of the DPMS profile. Which I'll mention in t= he next comment. > >=20 > > * Additional Info: > > Also, not sure if this is related or not, when switching from "battery"= to > > "performance" there sometimes appears to be an initial clocking issue (= which > > I believe is related to #93753). Switching back and forth a few times s= eems > > to clean it. Unsure the cause. Another note, upon further inspection = of my >=20 > There is no real balanced state. It's either battery or performance > depending on whether the chip is on ac or dc power. The only real states > you can switch between are performance and battery. I need to see the > output of our dmesg with radeon.dpm=3D1 to see what states your vbios pro= vides. I believe you when you say that the `balanced` state is non-existent. A ch= eck after cold starting shows that `balanced` is the first profile being set: # cat /sys/class/drm/card0/device/power_dpm_state balanced So I'm not sure where this profile is being set from. >=20 > > DPMS settings, I noticed the drastic differences between "balanced" and > > "battery" `sclk`s. My understand (which could be faulty) is that `sclk` > > drives the clocking for single displays, while `mclk` for multiple. My >=20 > sclk is the 3D engine clock. mclk is the memory clock. mclk switching is > disabled when multiple displays are active since the switch has to happen > during the display's vblank period otherwise you'd see display glitches.= =20 > With multiple displays, the vblank periods are not likely to align so mclk > switching is disabled. Thank you very much for clarifying the function of `sclk` vs `mclk`. That's great info, I wish I'd been able to find it elsewhere. My google-fu was the source of my original understanding (which as it turns out was completely wrong). Regardless, somewhere the `balanced` profile is getting pulled from with greatly under valued 3D clocking value. Is there a setting somewhere that I can trace down where this invalid profile is being generated or referenced? --=20 You are receiving this mail because: You are the assignee for the bug.= --15043100130.88Bb.7644 Date: Fri, 1 Sep 2017 23:53:33 +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

Commen= t # 5 on bug 10251= 1 from Rob MacKinnon
Comments inline...

(In reply to Alex Deucher from comm=
ent #2)
> (In reply to Rob MacKinnon from comment #0)
> > * Actual Result:
> > - DPMS change level changes as expected.
> > - Dmesg:
> > [ 3302.814889] [drm:btc_dpm_set_power_state [radeon]] *ERROR*
> > rv770_restrict_performance_levels_before_switch failed
> > [ 3316.661933] [drm:btc_dpm_set_power_state [radeon]] *ERROR*
> > rv770_restrict_performance_levels_before_switch failed
> >=20
> > * Expected result:
> > - DPMS change level changes as expected.
> > - No error messages in dmesg.
>=20
> Are you actually experiencing any problems?  I think the error message=
 may
> be harmless can could probably be removed.

The annoyance of the message is totally trivial, but I believe there is an
issue with the initial setting of the DPMS profile. Which I'll mention in t=
he
next comment.

> >=20
> > * Additional Info:
> > Also, not sure if this is related or not, when switching from &qu=
ot;battery" to
> > "performance" there sometimes appears to be an initial =
clocking issue (which
> > I believe is related to #93753). Switching back and forth a few t=
imes seems
> > to clean it.  Unsure the cause.  Another note, upon further inspe=
ction of my
>=20
> There is no real balanced state.  It's either battery or performance
> depending on whether the chip is on ac or dc power.  The only real sta=
tes
> you can switch between are performance and battery.  I need to see the
> output of our dmesg with radeon.dpm=3D1 to see what states your vbios =
provides.

I believe you when you say that the `balanced` state is non-existent.  A ch=
eck
after cold starting shows that `balanced` is the first profile being set:

# cat /sys/class/drm/card0/device/power_dpm_state
balanced

So I'm not sure where this profile is being set from.

>=20
> > DPMS settings, I noticed the drastic differences between "ba=
lanced" and
> > "battery" `sclk`s. My understand (which could be faulty=
) is that `sclk`
> > drives the clocking for single displays, while `mclk` for multipl=
e. My
>=20
> sclk is the 3D engine clock.  mclk is the memory clock.  mclk switchin=
g is
> disabled when multiple displays are active since the switch has to hap=
pen
> during the display's vblank period otherwise you'd see display glitche=
s.=20
> With multiple displays, the vblank periods are not likely to align so =
mclk
> switching is disabled.

Thank you very much for clarifying the function of `sclk` vs `mclk`. That's
great info, I wish I'd been able to find it elsewhere. My google-fu was the
source of my original understanding (which as it turns out was completely
wrong).

Regardless, somewhere the `balanced` profile is getting pulled from with
greatly under valued 3D clocking value.  Is there a setting somewhere that I
can trace down where this invalid profile is being generated or referenced?=


You are receiving this mail because:
  • You are the assignee for the bug.
= --15043100130.88Bb.7644-- --===============0026783129== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0026783129==--