Bug 91294 - [R7 370] DPM and power profile change crash the system
Summary: [R7 370] DPM and power profile change crash the system
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 16:51 UTC by Elia Argentieri
Modified: 2017-01-26 09:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg | grep radeon with radeon.dpm=0 (2.69 KB, text/plain)
2015-07-10 16:51 UTC, Elia Argentieri
no flags Details
VBIOS MSI R7 370 Armor 2X (64.00 KB, application/octet-stream)
2015-07-10 17:41 UTC, Elia Argentieri
no flags Details
Full dmesg with radeon.dpm=0 (90.26 KB, text/plain)
2015-07-10 17:42 UTC, Elia Argentieri
no flags Details
Xorg.log (54.15 KB, text/plain)
2015-07-10 17:43 UTC, Elia Argentieri
no flags Details
Fix by adding a line to si_dpm_quirk_list (444 bytes, patch)
2015-07-11 00:04 UTC, Elia Argentieri
no flags Details | Splinter Review

Description Elia Argentieri 2015-07-10 16:51:20 UTC
Created attachment 117032 [details]
dmesg | grep radeon with radeon.dpm=0

My system is unable to boot with an MSI R7 370 Armor 2X unless I put radeon.dpm=0 (or nomodeset) to the boot parameter.

Also any change to the power profile results in an immediate lock up with blank screen or, sometimes, black and white vertical stripes.

I think my issue is related with #77394 and #76490. Probably wrong frequency or voltages given that the MSI R7 370 Gaming 4G (which is the better version with higher frequency) works with DPM (http://www.phoronix.com/scan.php?page=article&item=linux-411-gallium&num=1)

Tested with Linux 3.16, 4.0 and 4.1.

lspci -nnk | grep VGA:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM] [1002:6811] (rev 81)
Comment 1 Alex Deucher 2015-07-10 17:25:58 UTC
Please attach your full dmesg output and xorg log.  Also attach a copy of your vbios.

(as root)
(use lspci to get the bus id)
cd /sys/bus/pci/devices/<pci bus id>
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom
Comment 2 Elia Argentieri 2015-07-10 17:41:26 UTC
Created attachment 117035 [details]
VBIOS MSI R7 370 Armor 2X
Comment 3 Elia Argentieri 2015-07-10 17:42:37 UTC
Created attachment 117036 [details]
Full dmesg with radeon.dpm=0
Comment 4 Elia Argentieri 2015-07-10 17:43:11 UTC
Created attachment 117037 [details]
Xorg.log
Comment 5 Elia Argentieri 2015-07-11 00:04:19 UTC
Created attachment 117048 [details] [review]
Fix by adding a line to si_dpm_quirk_list

Adding this line made my card work with DPM enabled, but I'm not sure about mclk value. This card is supposed to have a 5600 MHz video memory according to MSI's site. However Catalyst reports a frequency of 1400 MHz. Tomorrow, I'll play with this values.
Comment 6 Paul Frederiks 2015-10-29 22:01:01 UTC
I have a MSI R7 370 Armor 2x as well and like to report that the suggested workaround does not help in my case. During the boot process the mouse pointer is briefly visible but then the screen goes black. I can use the desktop with radeon.dpm=0. I am returning this card and sticking to my Radeon 6570 for now.
Comment 7 Paul Frederiks 2015-10-31 17:10:45 UTC
I decided to try to add the quirk line to the debian 4.2.3 kernel source currently in sid and this time I booted into a stable desktop. The line from Elia works.
Comment 8 Maxim Sheviakov 2015-12-25 08:12:33 UTC
(In reply to Paul Frederiks from comment #7)
> I decided to try to add the quirk line to the debian 4.2.3 kernel source
> currently in sid and this time I booted into a stable desktop. The line from
> Elia works.

It works, but clocks are really lower than normal. I think that if we use values from MSI R7 370 Gaming 2G we would be able to make it work with even a bit higher clocks. Or we could modify VBios of the card with vendor/model values with ones from that card mentioned before and make the system use all the things for that card.
Comment 9 Elia Argentieri 2015-12-28 16:18:24 UTC
Indeed I also tried with higher clock speeds like 1400 and 1300, but all my attempts had the same outcome. I don't really understand why an higher clock frequency would lock completely the system as the radeon module is loaded... I think MSI is doing nasty things like putting a limit inside their firmware to make the GPU unusable with higher frequencies. I won't ever buy again an MSI product.
Comment 10 Paul Frederiks 2016-06-16 16:22:12 UTC
I'm happy to report that I did not need to patch the kernel after upgrading to kernel 4.5.0 from debian unstable.
Comment 11 Elia Argentieri 2017-01-26 09:45:45 UTC
This issue is finally fixed for MSI R7 370 Armor 2X with linux 4.10 master. See https://bugs.freedesktop.org/show_bug.cgi?id=76490.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.