[Bug 84919] New: Kernel 3.17: Resume from suspend to ram issues

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Oct 11 12:40:29 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=84919

            Bug ID: 84919
           Summary: Kernel 3.17: Resume from suspend to ram issues
           Product: DRI
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/Intel
          Assignee: intel-gfx-bugs at lists.freedesktop.org
          Reporter: tigrangab at gmail.com
        QA Contact: intel-gfx-bugs at lists.freedesktop.org
                CC: intel-gfx-bugs at lists.freedesktop.org

I have a Lenovo Z50 laptop with Intel 4400 and Nvidia 820M GPU. If I set gpu
mode to UMA only in the BIOS, then the discrete card isn't actually powered
off. The kernel cannot see the discrete card but it is still powered on (idle
power usage is 13WH+ according to powertop). If I set BIOS to Discrete card and
use bbswitch to power off the discrete card, then my idle usage is around 8 to
9WH. Regardless of whether I have bbswitch enabled, bios set to uma only, or
set to discrete, suspend always fails after 4-5 times of suspend/resume cycle.

The following is some relevant information I could find in dmesg:

[ 5085.085835] ata1.00: exception Emask 0x10 SAct 0x7000000 SErr 0x50000 action
0xe frozen
[ 5085.085838] ata1.00: irq_stat 0x00400000, PHY RDY changed
[ 5085.085840] ata1: SError: { PHYRdyChg CommWake }
[ 5085.085842] ata1.00: failed command: WRITE FPDMA QUEUED
[ 5085.085846] ata1.00: cmd 61/00:c0:00:98:b4/04:00:00:00:00/40 tag 24 ncq
524288 out
         res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[ 5085.085847] ata1.00: status: { DRDY }
[ 5085.085849] ata1.00: failed command: WRITE FPDMA QUEUED
[ 5085.085851] ata1.00: cmd 61/00:c8:00:9c:b4/04:00:00:00:00/40 tag 25 ncq
524288 out
         res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[ 5085.085853] ata1.00: status: { DRDY }
[ 5085.085854] ata1.00: failed command: WRITE FPDMA QUEUED
[ 5085.085857] ata1.00: cmd 61/30:d0:00:a0:b4/02:00:00:00:00/40 tag 26 ncq
286720 out
         res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[ 5085.085859] ata1.00: status: { DRDY }
[ 5085.085861] ata1: hard resetting link
[ 5085.806309] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 5085.810507] ata1.00: configured for UDMA/133
[ 5085.822996] ata1: EH complete
[ 5086.349991] ------------[ cut here ]------------
[ 5086.350024] WARNING: CPU: 0 PID: 4 at drivers/gpu/drm/i915/intel_pm.c:6317
intel_display_power_put+0x14c/0x160 [i915]()
[ 5086.350027] Modules linked in: bbswitch(O) msr cpufreq_stats ctr ccm fuse
rtsx_usb_ms memstick uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core
v4l2_common videodev snd_hda_codec_hdmi ecb media btusb bluetooth joydev
mousedev thinkpad_acpi nvram arc4 coretemp hwmon intel_rapl
x86_pkg_temp_thermal intel_powerclamp iwlmvm mac80211 kvm_intel iwlwifi
iTCO_wdt iTCO_vendor_support ppdev evdev cfg80211 r8169 kvm crct10dif_pclmul
crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw
gf128mul glue_helper ablk_helper cryptd mac_hid psmouse pcspkr serio_raw
microcode mii i2c_hid hid mei_me snd_hda_codec_conexant snd_hda_codec_generic
mei i915 snd_hda_intel snd_hda_controller snd_hda_codec i2c_designware_platform
parport_pc video snd_hwdep i2c_designware_core spi_pxa2xx_platform
[ 5086.350080]  parport ideapad_laptop sparse_keymap rfkill battery snd_pcm
snd_timer 8250_dw gpio_lynxpoint drm_kms_helper dw_dmac dw_dmac_core drm snd
soundcore intel_gtt i2c_algo_bit i2c_i801 i2c_core processor lpc_ich button
shpchp ac wmi ext4 crc16 mbcache jbd2 sd_mod sr_mod crc_t10dif cdrom
crct10dif_common rtsx_usb_sdmmc rtsx_usb atkbd libps2 ahci xhci_hcd libahci
libata scsi_mod ehci_pci ehci_hcd usbcore usb_common i8042 serio sdhci_acpi
sdhci led_class mmc_core [last unloaded: bbswitch]
[ 5086.350128] CPU: 0 PID: 4 Comm: kworker/0:0 Tainted: G        W  O  
3.17.0-1-mainline #1
[ 5086.350131] Hardware name: LENOVO 20354/Lancer 5A5, BIOS 9BCN25WW 04/10/2014
[ 5086.350147] Workqueue: events edp_panel_vdd_work [i915]
[ 5086.350149]  0000000000000000 0000000050d553e6 ffff880243993d38
ffffffff815346e0
[ 5086.350154]  0000000000000000 ffff880243993d70 ffffffff8106e54d
ffff880242f0002c
[ 5086.350158]  000000000000000b ffff880242f085d8 ffff880241c6f000
ffff880242f00000
[ 5086.350162] Call Trace:
[ 5086.350172]  [<ffffffff815346e0>] dump_stack+0x4d/0x6f
[ 5086.350178]  [<ffffffff8106e54d>] warn_slowpath_common+0x7d/0xa0
[ 5086.350183]  [<ffffffff8106e67a>] warn_slowpath_null+0x1a/0x20
[ 5086.350196]  [<ffffffffa03b22bc>] intel_display_power_put+0x14c/0x160 [i915]
[ 5086.350212]  [<ffffffffa041fc04>] edp_panel_vdd_off_sync+0xf4/0x1e0 [i915]
[ 5086.350227]  [<ffffffffa041fd54>] edp_panel_vdd_work+0x34/0x50 [i915]
[ 5086.350232]  [<ffffffff81086b85>] process_one_work+0x145/0x400
[ 5086.350236]  [<ffffffff8108714b>] worker_thread+0x6b/0x4a0
[ 5086.350241]  [<ffffffff810870e0>] ? init_pwq.part.22+0x10/0x10
[ 5086.350246]  [<ffffffff8108c06a>] kthread+0xea/0x100
[ 5086.350252]  [<ffffffff8108bf80>] ? kthread_create_on_node+0x1b0/0x1b0
[ 5086.350257]  [<ffffffff8153a5fc>] ret_from_fork+0x7c/0xb0
[ 5086.350262]  [<ffffffff8108bf80>] ? kthread_create_on_node+0x1b0/0x1b0
[ 5086.350264] ---[ end trace 4816bdb8abb63299 ]---

On other occasions, I get the following after resuming with the stacktrace as
above:

[  107.985876] Restarting tasks ... done.
[  107.989697] pci 0000:03:00.0: Max Payload Size 16384, but upstream
0000:00:1c.4 set to 128; if necessary, use "pci=pcie_bus_safe" and report a bug
[  107.990579] pci_bus 0000:01: Allocating resources
[  107.990613] pci_bus 0000:02: Allocating resources
[  107.990641] pci_bus 0000:03: Allocating resources
[  107.990666] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus
alignment
[  107.990775] pci 0000:03:00.0: Max Payload Size 16384, but upstream
0000:00:1c.4 set to 128; if necessary, use "pci=pcie_bus_safe" and report a bug
[  107.991723] pci_bus 0000:01: Allocating resources
[  107.991751] pci_bus 0000:02: Allocating resources
[  107.991779] pci_bus 0000:03: Allocating resources
[  107.991801] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus
alignment
[  107.991914] pci 0000:03:00.0: Max Payload Size 16384, but upstream
0000:00:1c.4 set to 128; if necessary, use "pci=pcie_bus_safe" and report a bug

There is also always usb errors which I'm not sure are relevant to resume
failing:

[  106.661972] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 1.
[  106.661974] usb 2-4: hub failed to enable device, error -22
[  106.821928] usb 2-4: reset high-speed USB device number 2 using xhci_hcd
[  106.821952] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 1.
[  106.821953] usb 2-4: hub failed to enable device, error -22
[  106.981981] usb 2-4: reset high-speed USB device number 2 using xhci_hcd
[  106.995743] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with
disabled ep ffff880242640c00
[  106.995746] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with
disabled ep ffff880242640c48
[  106.995747] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with
disabled ep ffff880242640c90
[  107.155586] usb 2-6: reset high-speed USB device number 3 using xhci_hcd
[  107.155722] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 2.
[  107.155726] usb 2-6: hub failed to enable device, error -22
[  107.315515] usb 2-6: reset high-speed USB device number 3 using xhci_hcd
[  107.315576] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 2.
[  107.315580] usb 2-6: hub failed to enable device, error -22
[  107.475747] usb 2-6: reset high-speed USB device number 3 using xhci_hcd
[  107.549317] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with
disabled ep ffff8802436ddd20
[  107.649285] usb 2-7: reset full-speed USB device number 4 using xhci_hcd
[  107.649388] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 3.
[  107.649394] usb 2-7: hub failed to enable device, error -22
[  107.809205] usb 2-7: reset full-speed USB device number 4 using xhci_hcd
[  107.809371] xhci_hcd 0000:00:14.0: Setup ERROR: setup context command for
slot 3.
[  107.809377] usb 2-7: hub failed to enable device, error -22
[  107.969443] usb 2-7: reset full-speed USB device number 4 using xhci_hcd


Is the discrete card not powering off when setting UMA Only in the BIOS a bios
bug?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20141011/c7e4b8b7/attachment.html>


More information about the intel-gfx-bugs mailing list