Bumblebee-Project / bbswitch

Disable discrete graphics (currently nvidia only)
GNU General Public License v2.0
487 stars 78 forks source link

Argument #4 type mismatch #98

Closed tigrang closed 10 years ago

tigrang commented 10 years ago

Lenovo Z50 laptop with Intel 4400 and nvidia 820M. I get the following warnings when enabling bbswitch, although it does power down the discrete card. The issue I'm having is resuming from standby sometimes fails, but that's more of a kernel issue I think.

[  327.843338] bbswitch: version 0.8
[  327.843342] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[  327.843348] bbswitch: Found discrete VGA device 0000:03:00.0: \_SB_.PCI0.RP05.PEGP
[  327.843356] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[  327.843425] bbswitch: detected an Optimus _DSM function
[  327.843439] pci 0000:03:00.0: enabling device (0006 -> 0007)
[  327.843484] bbswitch: disabling discrete graphics
[  327.843488] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140724/nsarguments-95)
[  327.869059] bbswitch: Succesfully loaded. Discrete card 0000:03:00.0 is off

Resuming from standby

[  904.481359] WARNING: CPU: 0 PID: 4 at drivers/gpu/drm/i915/intel_pm.c:6317 intel_display_power_put+0x14c/0x160 [i915]()
[  904.481361] 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
[  904.481417]  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
[  904.481439] CPU: 0 PID: 4 Comm: kworker/0:0 Tainted: G        W  O   3.17.0-1-mainline #1
[  904.481440] Hardware name: LENOVO 20354/Lancer 5A5, BIOS 9BCN25WW 04/10/2014
[  904.481447] Workqueue: events edp_panel_vdd_work [i915]
[  904.481449]  0000000000000000 0000000050d553e6 ffff880243993d38 ffffffff815346e0
[  904.481450]  0000000000000000 ffff880243993d70 ffffffff8106e54d ffff880242f0002c
[  904.481452]  000000000000000b ffff880242f085d8 ffff880241c6f000 ffff880242f00000
[  904.481453] Call Trace:
[  904.481458]  [<ffffffff815346e0>] dump_stack+0x4d/0x6f
[  904.481460]  [<ffffffff8106e54d>] warn_slowpath_common+0x7d/0xa0
[  904.481462]  [<ffffffff8106e67a>] warn_slowpath_null+0x1a/0x20
[  904.481467]  [<ffffffffa03b22bc>] intel_display_power_put+0x14c/0x160 [i915]
[  904.481473]  [<ffffffffa041fc04>] edp_panel_vdd_off_sync+0xf4/0x1e0 [i915]
[  904.481479]  [<ffffffffa041fd54>] edp_panel_vdd_work+0x34/0x50 [i915]
[  904.481481]  [<ffffffff81086b85>] process_one_work+0x145/0x400
[  904.481483]  [<ffffffff8108714b>] worker_thread+0x6b/0x4a0
[  904.481484]  [<ffffffff810870e0>] ? init_pwq.part.22+0x10/0x10
[  904.481487]  [<ffffffff8108c06a>] kthread+0xea/0x100
[  904.481489]  [<ffffffff8108bf80>] ? kthread_create_on_node+0x1b0/0x1b0
[  904.481491]  [<ffffffff8153a5fc>] ret_from_fork+0x7c/0xb0
[  904.481493]  [<ffffffff8108bf80>] ? kthread_create_on_node+0x1b0/0x1b0
Lekensteyn commented 10 years ago

The mismatching argument warning is harmless, it happens because NVIDIA designed an interface that violates the ACPI standard (but since they control both the firmware and driver, it does not cause other issues).

Please bring your issue to the intel graphics developers (intel-gfx@vger.kernel.org), they seems to be more appropriate for your issue.