<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - amdgpu coolers never stoping linux"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100666#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - amdgpu coolers never stoping linux"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100666">bug 100666</a>
from <span class="vcard"><a class="email" href="mailto:alexdeucher@gmail.com" title="Alex Deucher <alexdeucher@gmail.com>"> <span class="fn">Alex Deucher</span></a>
</span></b>
<pre>(In reply to Luke McKee from <a href="show_bug.cgi?id=100666#c14">comment #14</a>)
<span class="quote">> 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 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=0
> CARD_ROM="/sys/class/drm/card${CARD_ID}/device/rom"
> FILE_ROM="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</span >
That should generally work for desktop discrete cards. You need to be root
however.
<span class="quote">>
> 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
> modifying it.</span >
You can read the amdgpu_vbios file in debugfs. That will dump the copy of the
vbios that the driver is using.
<span class="quote">> 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=1 in 4.15.
> <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - DMESG: [powerplay] Can't find requested voltage id in vdd_dep_on_sclk table!"
href="show_bug.cgi?id=100443#c37">https://bugs.freedesktop.org/show_bug.cgi?id=100443#c37</a></span >
There's no confirmation that specifically enabling dc fixed it.
Anyway, we are cluttering up this bug with potentially unrelated information.
Please file a new bug for your issue and we can discuss it there.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>