From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 100666] amdgpu coolers never stoping linux Date: Wed, 28 Feb 2018 04:21:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0525938773==" 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 8CF3F6E2E0 for ; Wed, 28 Feb 2018 04:21: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 --===============0525938773== Content-Type: multipart/alternative; boundary="15197916940.dcFE0E.32455" Content-Transfer-Encoding: 7bit --15197916940.dcFE0E.32455 Date: Wed, 28 Feb 2018 04:21:34 +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=3D100666 --- Comment #15 from Alex Deucher --- (In reply to Luke McKee from comment #14) > Alex thanks for your help. >=20 > How it gets the rom is probably the same as this shell script using the p= ci > method listed on that github link in the last comment. >=20 > # To read ROM you first need to write `1` to it, then read it, and then w= rite > # `0` to it as described in the documentation. The reason is that the con= tent > # is not provided by default, by writing `1` to it you are telling the dr= iver > # to make it accessible. > CARD_ID=3D0 > CARD_ROM=3D"/sys/class/drm/card${CARD_ID}/device/rom" > FILE_ROM=3D"amdgpu-rom.bin" >=20 > echo 1 > $CARD_ROM > cat $CARD_ROM > $FILE_ROM > echo 0 > $CARD_ROM > echo "Saved as ${FILE_ROM}" >=20 > -- > output: > cat: /sys/class/drm/card0/device/rom: Input/output error > [Not] Saved as amdgpu-rom.bin That should generally work for desktop discrete cards. You need to be root however. >=20 > Is there any other user-space accessible methods to extract / write the r= om > in Linux? Now only focusing on comparing the pp table to other roms not > modifying it. You can read the amdgpu_vbios file in debugfs. That will dump the copy of = the vbios that the driver is using. > Maybe the powerplay is an atom-bios issue perhaps. If it's still broken in > this 4.16-rc1 version I'm trying out now I'll open a ticket. >=20 > For your reference this is the ticket that claims powerplay dpm is fixed = in > newer kernels / dc=3D1 in 4.15. > https://bugs.freedesktop.org/show_bug.cgi?id=3D100443#c37 There's no confirmation that specifically enabling dc fixed it. Anyway, we are cluttering up this bug with potentially unrelated informatio= n.=20 Please file a new bug for your issue and we can discuss it there. --=20 You are receiving this mail because: You are the assignee for the bug.= --15197916940.dcFE0E.32455 Date: Wed, 28 Feb 2018 04:21:34 +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

Comme= nt # 15 on bug 10066= 6 from Alex Deucher
(In reply to Luke McKee from comment #14)
> Alex thanks for your help.
>=20
> How it gets the rom is probably the same as this shell script using th=
e pci
> method listed on that github link in the last comment.
>=20
> # To read ROM you first need to write `1` to it, then read it, and the=
n write
> # `0` to it as described in the documentation. The reason is that the =
content
> # is not provided by default, by writing `1` to it you are telling the=
 driver
> # to make it accessible.
> CARD_ID=3D0
> CARD_ROM=3D"/sys/class/drm/card${CARD_ID}/device/rom"
> FILE_ROM=3D"amdgpu-rom.bin"
>=20
> echo 1 > $CARD_ROM
> cat $CARD_ROM > $FILE_ROM
> echo 0 > $CARD_ROM
> echo "Saved as ${FILE_ROM}"
>=20
> --
> output:
> cat: /sys/class/drm/card0/device/rom: Input/output error
> [Not] Saved as amdgpu-rom.bin

That should generally work for desktop discrete cards.  You need to be root
however.

>=20
> Is there any other user-space accessible methods to extract / write th=
e rom
> in Linux? Now only focusing on comparing the pp table to other roms not
> modifying it.

You can read the amdgpu_vbios file in debugfs.  That will dump the copy of =
the
vbios that the driver is using.

> Maybe the powerplay is an atom-bios issue perhap=
s. If it's still broken in
> this 4.16-rc1 version I'm trying out now I'll open a ticket.
>=20
> For your reference this is the ticket that claims powerplay dpm is fix=
ed in
> newer kernels / dc=3D1 in 4.15.
> https://bugs.freedesktop.org/show_=
bug.cgi?id=3D100443#c37

There's no confirmation that specifically enabling dc fixed it.

Anyway, we are cluttering up this bug with potentially unrelated informatio=
n.=20
Please file a new bug for your issue and we can discuss it there.


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