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:06:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0860248388==" 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 450AD6E6D4 for ; Wed, 28 Feb 2018 04:06:28 +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 --===============0860248388== Content-Type: multipart/alternative; boundary="15197907882.67fF982aB.28364" Content-Transfer-Encoding: 7bit --15197907882.67fF982aB.28364 Date: Wed, 28 Feb 2018 04:06:28 +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 #14 from Luke McKee --- Alex thanks for your help. How it gets the rom is probably the same as this shell script using the pci method listed on that github link in the last comment. # To read ROM you first need to write `1` to it, then read it, and then wri= te # `0` to it as described in the documentation. The reason is that the conte= nt # is not provided by default, by writing `1` to it you are telling the driv= er # to make it accessible. CARD_ID=3D0 CARD_ROM=3D"/sys/class/drm/card${CARD_ID}/device/rom" FILE_ROM=3D"amdgpu-rom.bin" echo 1 > $CARD_ROM cat $CARD_ROM > $FILE_ROM echo 0 > $CARD_ROM echo "Saved as ${FILE_ROM}" -- output: cat: /sys/class/drm/card0/device/rom: Input/output error [Not] Saved as amdgpu-rom.bin Is there any other user-space accessible methods to extract / write the rom= in Linux? Now only focusing on comparing the pp table to other roms not modify= ing it. 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. 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 --=20 You are receiving this mail because: You are the assignee for the bug.= --15197907882.67fF982aB.28364 Date: Wed, 28 Feb 2018 04:06:28 +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 # 14 on bug 10066= 6 from Luke McKee
Alex thanks for your help.

How it gets the rom is probably the same as this shell script using the pci
method listed on that github link in the last comment.

# To read ROM you first need to write `1` to it, then read it, and then wri=
te
# `0` to it as described in the documentation. The reason is that the conte=
nt
# is not provided by default, by writing `1` to it you are telling the driv=
er
# to make it accessible.
CARD_ID=3D0
CARD_ROM=3D"/sys/class/drm/card${CARD_ID}/device/rom"
FILE_ROM=3D"amdgpu-rom.bin"

echo 1 > $CARD_ROM
cat $CARD_ROM > $FILE_ROM
echo 0 > $CARD_ROM
echo "Saved as ${FILE_ROM}"

--
output:
cat: /sys/class/drm/card0/device/rom: Input/output error
[Not] Saved as amdgpu-rom.bin

Is there any other user-space accessible methods to extract / write the rom=
 in
Linux? Now only focusing on comparing the pp table to other roms not modify=
ing
it.
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.

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


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