FS#44372 - [linux] nouveau driver on 3.19.2

Attached to Project: Arch Linux
Opened by Mario (diraimondo) - Friday, 27 March 2015, 15:10 GMT
Last edited by Eli Schwartz (eschwartz) - Sunday, 15 October 2017, 16:14 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I got a Sony Vaio VPCZ13M9E with a double video card (Intel + nvidia). I daily use only the Intel card. Until kernel 3.18.6-1-ARCH I was able to use vga_switcheroo to automatically deactivate the nvidia card (nouveau driver, no proprietary driver installed). Since the upgrade to kernel 3.19.2-1-ARCH the nouveau driver stopped to work, so vga_switcheroo doesn't disable the hardware card and my system power usage goes up! :(

Additional info:
* package version(s)
* config and/or log files etc.

$ pacman -Q linux
linux 3.19.2-1

$ pacman -Q xf86-video-nouveau
xf86-video-nouveau 1.0.11-3

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 330M] (rev a2)

this is the log using kernel 3.18.2 (working scenario):

mar 19 09:59:00 gandalf kernel: VGA switcheroo: detected DSM switching method \_SB_.PCI0.P0P2.DGPU handle [0/1823]
mar 19 09:59:00 gandalf kernel: nouveau 0000:01:00.0: enabling device (0004 -> 0007)
mar 19 09:59:00 gandalf kernel: nouveau [ DEVICE][0000:01:00.0] BOOT0 : 0x0a5580a2
mar 19 09:59:00 gandalf kernel: nouveau [ DEVICE][0000:01:00.0] Chipset: GT216 (NVA5)
mar 19 09:59:00 gandalf kernel: nouveau [ DEVICE][0000:01:00.0] Family : NV50
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] checking PRAMIN for image...
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] ... signature not found
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] checking PROM for image...
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] ... signature not found
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] checking ACPI for image...
mar 19 09:59:00 gandalf kernel: Switched to clocksource tsc
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] ... appears to be valid
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] using image from ACPI
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] BIT signature found
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] version 70.16.67.00.04
mar 19 09:59:00 gandalf kernel: nouveau [ DEVINIT][0000:01:00.0] adaptor not initialised
mar 19 09:59:00 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] running init tables
mar 19 09:59:00 gandalf kernel: nouveau 0000:01:00.0: irq 26 for MSI/MSI-X
mar 19 09:59:00 gandalf kernel: nouveau [ PMC][0000:01:00.0] MSI interrupts enabled
mar 19 09:59:00 gandalf kernel: nouveau [ PFB][0000:01:00.0] RAM type: DDR3
mar 19 09:59:00 gandalf kernel: nouveau [ PFB][0000:01:00.0] RAM size: 1024 MiB
mar 19 09:59:00 gandalf kernel: nouveau [ PFB][0000:01:00.0] ZCOMP: 1920 tags
mar 19 09:59:00 gandalf kernel: nouveau [ VOLT][0000:01:00.0] GPU voltage: 1100000uv
mar 19 09:59:00 gandalf kernel: nouveau [ PTHERM][0000:01:00.0] FAN control: none / external
mar 19 09:59:00 gandalf kernel: nouveau [ PTHERM][0000:01:00.0] fan management: automatic
mar 19 09:59:00 gandalf kernel: nouveau [ PTHERM][0000:01:00.0] internal sensor: yes
mar 19 09:59:00 gandalf kernel: nouveau [ CLK][0000:01:00.0] 03: core 135 MHz shader 270 MHz memory 135 MHz
mar 19 09:59:00 gandalf kernel: nouveau [ CLK][0000:01:00.0] 07: core 405 MHz shader 810 MHz memory 324 MHz
mar 19 09:59:00 gandalf kernel: nouveau [ CLK][0000:01:00.0] 0f: core 450 MHz shader 990 MHz memory 700 MHz
mar 19 09:59:00 gandalf kernel: nouveau [ CLK][0000:01:00.0] --: core 405 MHz shader 810 MHz memory 324 MHz
mar 19 09:59:00 gandalf kernel: vga_switcheroo: enabled
mar 19 09:59:00 gandalf kernel: [TTM] Zone kernel: Available graphics memory: 3922376 kiB
mar 19 09:59:00 gandalf kernel: [TTM] Zone dma32: Available graphics memory: 2097152 kiB
mar 19 09:59:00 gandalf kernel: [TTM] Initializing pool allocator
mar 19 09:59:00 gandalf kernel: [TTM] Initializing DMA pool allocator
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] VRAM: 1024 MiB
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] GART: 1048576 MiB
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] TMDS table version 2.0
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB version 4.0
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB outp 00: 02000300 00000000
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB outp 01: 048113b6 0f220014
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB outp 02: 02002362 00020010
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB outp 03: 08003382 00000010
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB conn 00: 00000000
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB conn 01: 00020147
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB conn 02: 00010261
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB conn 03: 01000331
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB conn 04: 00002430
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] DCB conn 05: 00000560
mar 19 09:59:00 gandalf kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
mar 19 09:59:00 gandalf kernel: [drm] Driver supports precise vblank timestamp query.
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] MM: using COPY for buffer copies
mar 19 09:59:00 gandalf kernel: nouveau 0000:01:00.0: No connectors reported connected with modes
mar 19 09:59:00 gandalf kernel: [drm] Cannot find any crtc or sizes - going 1024x768
mar 19 09:59:00 gandalf kernel: nouveau [ DRM] allocated 1024x768 fb: 0x70000, bo ffff88008e934400
mar 19 09:59:00 gandalf kernel: nouveau 0000:01:00.0: fb1: nouveaufb frame buffer device
mar 19 09:59:00 gandalf kernel: [drm] Initialized nouveau 1.2.1 20120801 for 0000:01:00.0 on minor 1

this is the log using kernel 3.19.2 (broken scenario):

mar 24 21:47:11 gandalf kernel: nouveau 0000:01:00.0: enabling device (0004 -> 0007)
mar 24 21:47:11 gandalf kernel: nouveau [ DEVICE][0000:01:00.0] BOOT0 : 0x0a5580a2
mar 24 21:47:11 gandalf kernel: nouveau [ DEVICE][0000:01:00.0] Chipset: GT216 (NVA5)
mar 24 21:47:11 gandalf kernel: nouveau [ DEVICE][0000:01:00.0] Family : NV50
mar 24 21:47:11 gandalf kernel: Switched to clocksource tsc
mar 24 21:47:11 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] using image from ACPI
mar 24 21:47:11 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] BIT signature found
mar 24 21:47:11 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] version 70.16.67.00.04
mar 24 21:47:11 gandalf kernel: nouveau W[ VBIOS][0000:01:00.0] DCB contains no useful data
mar 24 21:47:11 gandalf kernel: nouveau W[ VBIOS][0000:01:00.0] DCB contains no useful data
mar 24 21:47:11 gandalf kernel: nouveau [ DEVINIT][0000:01:00.0] adaptor not initialised
mar 24 21:47:11 gandalf kernel: nouveau [ VBIOS][0000:01:00.0] running init tables
mar 24 21:47:11 gandalf kernel: nouveau E[ VBIOS][0000:01:00.0] 0x8534[0]: unknown opcode 0x00
mar 24 21:47:11 gandalf kernel: nouveau E[ DEVINIT][0000:01:00.0] init failed, -22
mar 24 21:47:11 gandalf kernel: nouveau E[ DRM] failed to create 0x00000080, -22
mar 24 21:47:11 gandalf kernel: nouveau: probe of 0000:01:00.0 failed with error -22

Following indications found on [url]https://wiki.freedesktop.org/nouveau/TroubleShooting/#index10h3[/url], I've tried with specific kernel parameters like nouveau.config=NvBios=PROM or nouveau.config=NvBios=PRAMIN without joy.


Steps to reproduce:

Just boot.

$ sudo ls -l /sys/kernel/debug/vgaswitcheroo/
ls: cannot access /sys/kernel/debug/vgaswitcheroo/: No such file or directory
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Sunday, 15 October 2017, 16:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  seems to have been fixed according to linked bugreport
Comment by Mario (diraimondo) - Tuesday, 31 March 2015, 14:03 GMT
I've tested latest kernel 4.0.rc6 (aur/linux-mainline 4.0rc6-1). The bug is still present.

$ uname -a
Linux gandalf 4.0.0-1-mainline #1 SMP PREEMPT Mon Mar 30 14:20:29 CEST 2015 x86_64 GNU/Linux

from dmesg output:
[ 2.088271] ACPI Warning: \_SB_.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 2.088482] ACPI Warning: \_SB_.PCI0.P0P2.DGPU._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150204/nsarguments-95)
[ 2.088581] VGA switcheroo: detected DSM switching method \_SB_.PCI0.P0P2.DGPU handle
[ 2.088646] nouveau 0000:01:00.0: enabling device (0004 -> 0007)
[ 2.088970] nouveau [ DEVICE][0000:01:00.0] BOOT0 : 0x0a5580a2
[ 2.088973] nouveau [ DEVICE][0000:01:00.0] Chipset: GT216 (NVA5)
[ 2.088975] nouveau [ DEVICE][0000:01:00.0] Family : NV50
[ 2.483013] Switched to clocksource tsc
[ 2.932624] nouveau [ VBIOS][0000:01:00.0] using image from ACPI
[ 2.932711] nouveau [ VBIOS][0000:01:00.0] BIT signature found
[ 2.932714] nouveau [ VBIOS][0000:01:00.0] version 70.16.67.00.04
[ 2.932721] nouveau W[ VBIOS][0000:01:00.0] DCB version 0xc8 unknown
[ 2.932722] nouveau W[ VBIOS][0000:01:00.0] DCB version 0xc8 unknown
[ 2.932741] nouveau [ DEVINIT][0000:01:00.0] adaptor not initialised
[ 2.932753] nouveau [ VBIOS][0000:01:00.0] running init tables
[ 2.932755] nouveau E[ VBIOS][0000:01:00.0] 0xe861[0]: unknown opcode 0xb1
[ 2.932789] nouveau E[ DEVINIT][0000:01:00.0] init failed, -22
[ 2.932815] nouveau E[ DRM] failed to create 0x00000080, -22
[ 2.933399] nouveau: probe of 0000:01:00.0 failed with error -22

Comment by Mario (diraimondo) - Tuesday, 31 March 2015, 16:32 GMT
There is a related bug report on Red Hat Bugzilla system: https://bugzilla.redhat.com/show_bug.cgi?id=1204443
Comment by mattia (nTia89) - Monday, 02 October 2017, 18:05 GMT
is this issue still valid?

Loading...