FS#53105 - nvidia bbswitch do not work with linux 4.10.1

Attached to Project: Arch Linux
Opened by Yangtse Su (yangtsesu) - Tuesday, 28 February 2017, 05:55 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 17 April 2017, 14:27 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
Nvidia grahpic card do not work after upgrate.

Additional info:
linux 4.10.1
bbswitch 0.8-64
nvidia 378.13-3

#dmesg
...
[ 9.859807] bbswitch: loading out-of-tree module taints kernel.
[ 9.860049] bbswitch: version 0.8
[ 9.860053] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 9.860060] bbswitch: Found discrete VGA device 0000:04:00.0: \_SB_.PCI0.RP05.PXSX
[ 9.860069] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[ 9.860074] bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA,0x12,0x9F,0xD4} 0x102 0x0 {0x00,0x00,0x00,0x00}: AE_NOT_FOUND
[ 9.860082] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160930/nsarguments-95)
[ 9.860126] bbswitch: No suitable _DSM call found.
...
[ 71.996575] nvidia: module license 'NVIDIA' taints kernel.
[ 71.996576] Disabling lock debugging due to kernel taint
[ 72.003347] nvidia 0000:04:00.0: enabling device (0006 -> 0007)
[ 72.003530] nvidia-nvlink: Nvlink Core is being initialized, major device number 243
[ 72.003547] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 378.13 Tue Feb 7 20:10:06 PST 2017
[ 72.003547] (using threaded interrupts)

[ 73.108830] NVRM: failed to copy vbios to system memory.
[ 73.108938] NVRM: RmInitAdapter failed! (0x30:0xffff:654)


downgrade to
# pacman -U ./linux-4.9.11-1-x86_64.pkg.tar.xz ./nvidia-378.13-2-x86_64.pkg.tar.xz ./bbswitch-0.8-63-x86_64.pkg.tar.xz
everything works well.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 17 April 2017, 14:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 4.10.10
Comment by Gereon Schomber (IncredibleLaser) - Wednesday, 01 March 2017, 19:18 GMT
Just to elaborate on my vote: I have the same issue on my Aspire V5-573G with that kernel.
Comment by roman (blackout) - Thursday, 02 March 2017, 10:56 GMT
Same here
but on nouveau driver.

Works well until logout or screen lock.
After this, there is no way to resume the Notebook.

At home on my PC I get also some errors on AMD A10-7850 KAVARI, will post details later.

In my opinion, this Kernel should never be pushed to stable.
Comment by Yangtse Su (yangtsesu) - Friday, 10 March 2017, 11:56 GMT
It is in core now.
Comment by Giancarlo Razzolini (grazzolini) - Friday, 10 March 2017, 20:24 GMT
I can confirm this. I'm using bbswitch with 4.10.1 and the nvidia driver.
Comment by dummys (dummys) - Friday, 10 March 2017, 21:30 GMT
I'm using bbswitch-dkms with 4.10.1-1 and it's working.
Perhaps related or not, but after downgrading kernel + nvidia, I got suspend with uswusp working again.

Comment by Andrejs Mivreņiks (gim) - Sunday, 12 March 2017, 07:41 GMT
I got several issues related to my Nvidia GPU after upgrading to kernel 4.10.1, this one included. bbswitch-dkms didn't work for me too.
Comment by Gereon Schomber (IncredibleLaser) - Tuesday, 14 March 2017, 06:24 GMT
Issue persists with 4.10.2.
Comment by Mike Wilson (radiomike) - Wednesday, 15 March 2017, 11:16 GMT
Done a little investigation into this as I have the same issue.

Currently broken on kernel 4.10.1 and 4.10.2. Plus bumblebee doesn't work.

Working with linux-lts 4.9.14 - All other packages up to date and same nvidia, bbswitch etc. Bumblebee also works fine.

Seems the bbswitch thing is because kernel returns wrong ACPI handle for nvidia card. In my case should be

\_SB_.PCI0.RP05.PEGP

But I get a PXSX ending as above. Double checking with acpi_call errors are returned for commands to \_SB_.PCI0.RP05.PXSX, but not for \_SB_.PCI0.RP05.PEGP.

I an guessing that bumblebees failure is related, although no ACPI errors appear in the logs.

I have submitted a bug upstream.

https://bugzilla.kernel.org/show_bug.cgi?id=194889
Comment by Giancarlo Razzolini (grazzolini) - Tuesday, 21 March 2017, 02:37 GMT
4.10.4 is also affected:

kernel: bbswitch: version 0.8
kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
kernel: bbswitch: Found discrete VGA device 0000:09:00.0: \_SB_.PCI0.RP05.PXSX
kernel: bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6
kernel: bbswitch: failed to evaluate \_SB_.PCI0.RP05.PXSX._DSM {0xA0,0xA0,0x95,0x9D,0x60,0x00,0x48,0x4D,0xB3,0x4D,0x7E,0x5F,0xEA
kernel: ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160930/nsargum
kernel: bbswitch: No suitable _DSM call found.
bumblebeed: modprobe: ERROR: could not insert 'bbswitch': No such device
bumblebeed: [ 45.881134] [ERROR]Module bbswitch could not be loaded (timeout?)
bumblebeed: [ 45.881169] [WARN]No switching method available. The dedicated card will always be on.
bumblebeed: [ 45.884367] [INFO]/usr/bin/bumblebeed 3.2.1 started
Comment by Mike Wilson (radiomike) - Thursday, 30 March 2017, 10:54 GMT
Bug has been identified upstream.

https://bugzilla.kernel.org/show_bug.cgi?id=194889

Currently still affects 4.10.6 kernel, but not latest lts. It is possible to rebuild 4.10.x with relevant commit reverted, allowing both bbswitch and Bumblebee to work.

Probably worth submitting hardware details upstream if you are affected.
Comment by Syrone Wong (wongsyrone) - Thursday, 13 April 2017, 15:07 GMT
Same here. will downgrade until the new kernel package released.
Comment by Giancarlo Razzolini (grazzolini) - Friday, 14 April 2017, 02:04 GMT
I have been using linux-lts for a while now. I have not tested the two latest linux releases.
Comment by Yangtse Su (yangtsesu) - Friday, 14 April 2017, 14:13 GMT
fixed in linux-4.10.10-1

Loading...