Bug 90595 - [drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed
Summary: [drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed
Status: RESOLVED MOVED
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-05-22 14:45 UTC by Adam Flott
Modified: 2019-11-19 09:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
lspci -vvv output (3.73 KB, text/plain)
2015-05-22 14:46 UTC, Adam Flott
no flags Details
dmesg (93.44 KB, text/plain)
2015-05-22 14:46 UTC, Adam Flott
no flags Details
xorg log (164.38 KB, text/plain)
2015-05-22 14:46 UTC, Adam Flott
no flags Details
lspci -vvv kernel 4.6.x (46.57 KB, text/plain)
2016-07-16 01:15 UTC, JATothrim
no flags Details

Description Adam Flott 2015-05-22 14:45:40 UTC
This error

    [drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed

Shows up often enough in my dmesg that I felt filing a bug was necessary.


Relevant versions:

Linux an 4.0.4-1-ARCH #1 SMP PREEMPT Mon May 18 06:43:19 CEST 2015 x86_64 GNU/Linux
libdrm 2.4.61-1
libva-mesa-driver 10.5.5-1
mesa 10.5.5-1
mesa-demos 8.2.0-4
mesa-libgl 10.5.5-1
mesa-vdpau 10.5.5-1
opencl-mesa 10.5.5-1
xf86-video-ati 1:7.5.0-2
xorg-server 1.17.1-5
xorg-xdriinfo 1.0.5-1
Comment 1 Adam Flott 2015-05-22 14:46:06 UTC
Created attachment 115972 [details]
lspci -vvv output
Comment 2 Adam Flott 2015-05-22 14:46:19 UTC
Created attachment 115973 [details]
dmesg
Comment 3 Adam Flott 2015-05-22 14:46:36 UTC
Created attachment 115974 [details]
xorg log
Comment 4 Adam Flott 2015-05-22 14:53:58 UTC
Oh, I should add that I'm running enlightenment as that could be at fault

$ pacman -Q|ag 'efl|enlightenment'
efl 1.14.0-1
enlightenment 0.19.5-1
Comment 5 JATothrim 2015-09-24 07:29:01 UTC
I am also a victim of this bug.
It freezes/soft bricks my machine every time while resuming from hibernate - suspend to ram tough works kind of ok (tty dual monitor border corruption).
I'm running 4.2.0 vanilla kernel.
Comment 6 Adam Flott 2015-09-24 17:47:21 UTC
(In reply to JATothrim from comment #5)
> I am also a victim of this bug.
> It freezes/soft bricks my machine every time while resuming from hibernate -
> suspend to ram tough works kind of ok (tty dual monitor border corruption).
> I'm running 4.2.0 vanilla kernel.

Try upgrading xf86-video-ati from git. You only need to cp the src/.libs/radeon_drv.so file to /usr/lib/xorg/modules/drivers/radeon_drv.so (or your distros equivalent). Beware that X will auto-restart afterwards. I found that doing so has squashed Bug91994. However I still see [drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed in dmesg.
Comment 7 JATothrim 2015-09-28 15:00:32 UTC
(In reply to Adam Flott from comment #6)
> (In reply to JATothrim from comment #5)
> > I am also a victim of this bug.
> > It freezes/soft bricks my machine every time while resuming from hibernate -
> > suspend to ram tough works kind of ok (tty dual monitor border corruption).
> > I'm running 4.2.0 vanilla kernel.
> 
> Try upgrading xf86-video-ati from git. You only need to cp the
> src/.libs/radeon_drv.so file to /usr/lib/xorg/modules/drivers/radeon_drv.so
> (or your distros equivalent). Beware that X will auto-restart afterwards. I
> found that doing so has squashed Bug91994. However I still see
> [drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed in
> dmesg.

I'm already using newest git mesa (Oibaf graphics drivers ppa). I also have tied self compiling the git mesa driver but no change to hibernate. However I disabled the radeon DPM power management with radeon.dpm=0 in kernel command-line and it fixed the hibernate! I still see awful lot of this '[drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed' error in dmesg tough. Also bad is that I miss the automatic DPM..
Comment 8 Alex Deucher 2015-09-28 15:21:21 UTC
(In reply to JATothrim from comment #7)
> 
> I'm already using newest git mesa (Oibaf graphics drivers ppa). I also have
> tied self compiling the git mesa driver but no change to hibernate. However
> I disabled the radeon DPM power management with radeon.dpm=0 in kernel
> command-line and it fixed the hibernate! I still see awful lot of this
> '[drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed' error
> in dmesg tough. Also bad is that I miss the automatic DPM..

If you set radeon.dpm=0, you shouldn't see any of the dpm error messages in your log.  Make sure the parameter setting actually got picked up.
Comment 9 JATothrim 2016-07-16 01:11:16 UTC
Apparently after several kernel versions later hibernate is still broken on my machine. :(

uname -a: Linux HyperArchMachine 4.6.3-1-ARCH #1 SMP PREEMPT Fri Jun 24 21:19:13 CEST 2016 x86_64 GNU/Linux
Operating system is Arch/Antergos.

Sympthoms:
-No panic is displayed. The machine freezes completly soon as radeon tries to hibernate (to swap disk 8GiB). No way to soft reset.
-On resuming first display VTs are showing up weird: resolution is same as second display (1680x1050) but parts beyond that reso of the FullHD display are corrupted (pink pixel noise).
-[drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed gets outputed on suspend/resume.

Disabling DPM on boot allows machine to hibernate/resume correctly but dual display VT weirdness persists.
Comment 10 JATothrim 2016-07-16 01:15:48 UTC
Created attachment 125097 [details]
lspci -vvv kernel 4.6.x

Added lspci -vvv ouput.
Comment 11 Mike 2018-02-04 22:22:39 UTC
I too have been experiencing this issue for quite some time.  I'm running:

# uname -a
Linux hostname 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux

# lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.3 (stretch)
Release:	9.3
Codename:	stretch

And here's what show's up in `dmesg` every time I boot up:

# dmesg | grep -i radeon
[    2.877374] [drm] radeon kernel modesetting enabled.
[    2.896977] radeon 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
[    2.896978] radeon 0000:01:00.0: GTT: 2048M 0x0000000080000000 - 0x00000000FFFFFFFF
[    2.897154] [drm] radeon: 2048M of VRAM memory ready
[    2.897155] [drm] radeon: 2048M of GTT memory ready.
[    2.902498] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/pitcairn_pfp.bin
[    2.909274] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/pitcairn_me.bin
[    2.909826] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/pitcairn_ce.bin
[    2.911587] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/pitcairn_rlc.bin
[    2.912724] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/pitcairn_mc.bin
[    2.913984] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/pitcairn_smc.bin
[    2.922964] [drm] radeon: dpm initialized
[    2.928860] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/TAHITI_uvd.bin
[    2.930542] radeon 0000:01:00.0: firmware: direct-loading firmware radeon/TAHITI_vce.bin
[    2.949302] radeon 0000:01:00.0: WB enabled
[    2.949304] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff998d238abc00
[    2.949305] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff998d238abc04
[    2.949306] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff998d238abc08
[    2.949307] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff998d238abc0c
[    2.949308] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff998d238abc10
[    2.949808] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffb0f8c2c35a18
[    2.969924] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000080000c18 and cpu addr 0xffff998d238abc18
[    2.969926] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000080000c1c and cpu addr 0xffff998d238abc1c
[    2.969943] radeon 0000:01:00.0: radeon: MSI limited to 32-bit
[    2.970010] radeon 0000:01:00.0: radeon: using MSI.
[    2.970036] [drm] radeon: irq initialized.
[    5.136861] [drm] Radeon Display Connectors
[    5.304534] fbcon: radeondrmfb (fb0) is primary device
[    5.484728] [drm:si_dpm_set_power_state [radeon]] *ERROR* si_restrict_performance_levels_before_switch failed
[    5.576343] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
[    5.603284] [drm] Initialized radeon 2.49.0 20080528 for 0000:01:00.0 on minor 0

Not sure if you need this, but just in case:

# dmesg | grep -i vga
[    0.000000] Console: colour VGA+ 80x25
[    0.373862] vgaarb: setting as boot device: PCI:0000:01:00.0
[    0.373863] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
[    0.373864] vgaarb: loaded
[    0.373864] vgaarb: bridge control possible 0000:01:00.0
[    2.805123] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
Comment 12 Mike 2018-02-04 22:27:30 UTC
(In reply to JATothrim from comment #9)
> Apparently after several kernel versions later hibernate is still broken on
> my machine. :(
> 
> uname -a: Linux HyperArchMachine 4.6.3-1-ARCH #1 SMP PREEMPT Fri Jun 24
> 21:19:13 CEST 2016 x86_64 GNU/Linux
> Operating system is Arch/Antergos.
> 
> Sympthoms:
> -No panic is displayed. The machine freezes completly soon as radeon tries
> to hibernate (to swap disk 8GiB). No way to soft reset.
> -On resuming first display VTs are showing up weird: resolution is same as
> second display (1680x1050) but parts beyond that reso of the FullHD display
> are corrupted (pink pixel noise).
> -[drm:si_dpm_set_power_state [radeon]] *ERROR* si_set_sw_state failed gets
> outputed on suspend/resume.
> 
> Disabling DPM on boot allows machine to hibernate/resume correctly but dual
> display VT weirdness persists.

I'm getting the same "tiles" on my display a moment before the x-windows system hangs.  I'm able to ssh into my box and shut it down, but box must be restarted.  Just curious, if after implementing "dpm=0" in the kernel, if you experience crashing or just pixelated weirdness?
Comment 13 Martin Peres 2019-11-19 09:05:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/616.


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.