Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVRM: failed to copy vbios to system memory. (Probable regression in ACPI since acpi-handle-hack fix) #628

Open
ArchangeGabriel opened this issue Jan 23, 2015 · 25 comments

Comments

@ArchangeGabriel
Copy link
Member

An user reported an issue with a Legacy Optimus setup, Asus UX50V with NVIDIA Corporation G98M [GeForce G 105M]. I’m opening this issue for him, so that the discussion can take place here and maybe @Lekensteyn for instance could help at some point if ACPI appears to be indeed the root cause.

The error is reported in Xorg.8.log by NVIDIA being unable to load the card and asking to look at dmesg, and they are the following interesting lines:

NVRM: failed to copy vbios to system memory.
NVRM: RmInitAdapter failed! (0x30:0xffffffff:747)
NVRM: rm_init_adapter failed for device bearing minor number 0
NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5

Note this is not #455, since the first line doesn’t appear in this case. This issue has often been seen as an issue with ACPI, either with the acpi-handle-hack in bbswitch and the corresponding issue upstream.

I think next step is to try with nouveau.

So, @Eccawchkup, could you report the result of the following commands:

ls /etc/modprobe.d/
cat /etc/bumblebee/bumblebee.conf

Also, if you’re new to GitHub and Markdown, please take a look at the GitHub markdown syntax for posting logs and results in the good way.

@Eccawchkup
Copy link

@ArchangeGabriel - Here are the results of the requested infos:

adomin@mbi-ux50v:~$ ls /etc/modprobe.d/
alsa-base.conf           blacklist-framebuffer.conf   blacklist-watchdog.conf  iwlwifi.conf
blacklist-ath_pci.conf   blacklist-modem.conf         bumblebee.conf           mlx4.conf
blacklist.conf           blacklist-oss.conf           dkms.conf                nvidia-331_hybrid.conf
blacklist-firewire.conf  blacklist-rare-network.conf  fbdev-blacklist.conf     vmwgfx-fbdev.conf
adomin@mbi-ux50v:~$ 

adomin@mbi-ux50v:~$ cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-current
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

adomin@mbi-ux50v:~$ 

`

@ArchangeGabriel
Copy link
Member Author

OK, so please do:

sudo sed -i 's/^Driver=nvidia/Driver=nouveau/g' /etc/bumblebee/bumblebee.conf
sudo rm /etc/modprobe.d/nvidia-331_hybrid.conf
dmesg
sudo restart bumblebeed
optirun -vv glxinfo
dmesg

And then paste here the added lines between the two dmesg as well as optirun output and content of /var/log/Xorg.8.log.

@Eccawchkup
Copy link

@ArchangeGabriel
OK, here is:

adomin@mbi-ux50v:~$ sudo sed -i 's/^Driver=nvidia/Driver=nouveau/g' /etc/bumblebee/bumblebee.conf
[sudo] password for adomin: 
adomin@mbi-ux50v:~$ sudo rm /etc/modprobe.d/nvidia-331_hybrid.conf
adomin@mbi-ux50v:~$ 
adomin@mbi-ux50v:~$ sudo restart bumblebeed
bumblebeed start/running, process 4881
adomin@mbi-ux50v:~$ 
adomin@mbi-ux50v:~$ optirun -vv glxinfo
[ 8885.119809] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 8885.120316] [INFO]Configured driver: nouveau
[ 8885.120484] [DEBUG]optirun version 3.2.1 starting...
[ 8885.120508] [DEBUG]Active configuration:
[ 8885.120528] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 8885.120548] [DEBUG] X display: :8
[ 8885.120568] [DEBUG] LD_LIBRARY_PATH: 
[ 8885.120588] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 8885.120608] [DEBUG] Accel/display bridge: auto
[ 8885.120628] [DEBUG] VGL Compression: proxy
[ 8885.120648] [DEBUG] VGLrun extra options: 
[ 8885.120668] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[ 8885.120794] [DEBUG]Using auto-detected bridge virtualgl
[ 8888.690010] [INFO]Response: No - error: [XORG] (EE) NOUVEAU(0): [drm] failed to set drm interface version.

[ 8888.690049] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NOUVEAU(0): [drm] failed to set drm interface version.

[ 8888.690062] [DEBUG]Socket closed.
[ 8888.690097] [ERROR]Aborting because fallback start is disabled.
[ 8888.690110] [DEBUG]Killing all remaining processes.
adomin@mbi-ux50v:~$ 

dmesg diff:

[ 8809.403160] bbswitch: enabling discrete graphics
[ 8809.403178] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8809.714900] pciehp 0000:00:01.0:pcie04: Card present on Slot(16)
[ 8809.870543] bbswitch: disabling discrete graphics
[ 8809.884063] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8885.120914] bbswitch: enabling discrete graphics
[ 8885.120931] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8885.670710] MXM: GUID detected in BIOS
[ 8885.670731] ACPI Warning: \_SB_.PCI0.VGA_._DSM: Argument #4 type mismatch - Found [Integer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8885.670772] ACPI Error: Needed [Buffer/String/Package], found [Integer] ffff88009a91bc18 (20131115/exresop-590)
[ 8885.670779] ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20131115/dswexec-461)
[ 8885.670786] ACPI Error: Method parse/execution failed [\_SB_.PCI0.VGA_._DSM] (Node ffff880139a98dc0), AE_AML_OPERAND_TYPE (20131115/psparse-536)
[ 8885.670799] failed to evaluate _DSM: 12291
[ 8885.670806] ACPI Warning: \_SB_.PCI0.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8885.670834] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Integer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8885.670865] ACPI Error: Needed [Buffer/String/Package], found [Integer] ffff88009a91bc18 (20131115/exresop-590)
[ 8885.670871] ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20131115/dswexec-461)
[ 8885.670877] ACPI Error: Method parse/execution failed [\_SB_.PCI0.VGA_._DSM] (Node ffff880139a98dc0), AE_AML_OPERAND_TYPE (20131115/psparse-536)
[ 8885.670886] ACPI Error: Method parse/execution failed [\_SB_.PCI0.P0P1.VGA_._DSM] (Node ffff880139a9dd70), AE_AML_OPERAND_TYPE (20131115/psparse-536)
[ 8885.670897] failed to evaluate _DSM: 12291
[ 8885.670903] ACPI Warning: \_SB_.PCI0.P0P1.VGA_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
[ 8885.676721] [drm] hdmi device  not found 1 0 1
[ 8885.676895] nouveau  [  DEVICE][0000:01:00.0] BOOT0  : 0x298880a2
[ 8885.676899] nouveau  [  DEVICE][0000:01:00.0] Chipset: G98 (NV98)
[ 8885.676902] nouveau  [  DEVICE][0000:01:00.0] Family : NV50
[ 8885.678790] nouveau  [   VBIOS][0000:01:00.0] checking PRAMIN for image...
[ 8885.678798] nouveau  [   VBIOS][0000:01:00.0] ... signature not found
[ 8885.678801] nouveau  [   VBIOS][0000:01:00.0] checking PROM for image...
[ 8885.678828] nouveau  [   VBIOS][0000:01:00.0] ... signature not found
[ 8885.678831] nouveau  [   VBIOS][0000:01:00.0] checking ACPI for image...
[ 8885.699078] nouveau  [   VBIOS][0000:01:00.0] ... checksum invalid
[ 8885.699084] nouveau  [   VBIOS][0000:01:00.0] checking PCIROM for image...
[ 8885.699125] nouveau 0000:01:00.0: Invalid ROM contents
[ 8885.699138] nouveau  [   VBIOS][0000:01:00.0] ... signature not found
[ 8885.699141] nouveau  [   VBIOS][0000:01:00.0] checking PLATFORM for image...
[ 8885.699144] nouveau  [   VBIOS][0000:01:00.0] ... signature not found
[ 8885.699147] nouveau  [   VBIOS][0000:01:00.0] using image from ACPI
[ 8885.699359] nouveau  [   VBIOS][0000:01:00.0] BIT signature found
[ 8885.699364] nouveau  [   VBIOS][0000:01:00.0] version 62.98.62.00.12
[ 8885.712757] nouveau  [ DEVINIT][0000:01:00.0] adaptor not initialised
[ 8885.712763] nouveau  [   VBIOS][0000:01:00.0] running init tables
[ 8885.779598] nouveau 0000:01:00.0: irq 51 for MSI/MSI-X
[ 8885.779623] nouveau  [     PMC][0000:01:00.0] MSI interrupts enabled
[ 8885.779676] nouveau  [     PFB][0000:01:00.0] RAM type: DDR2
[ 8885.779680] nouveau  [     PFB][0000:01:00.0] RAM size: 512 MiB
[ 8885.779683] nouveau  [     PFB][0000:01:00.0]    ZCOMP: 960 tags
[ 8885.785476] nouveau  [    VOLT][0000:01:00.0] GPU voltage: 900000uv
[ 8887.064076] nouveau  [  PTHERM][0000:01:00.0] FAN control: none / external
[ 8887.064095] nouveau  [  PTHERM][0000:01:00.0] fan management: automatic
[ 8887.064101] nouveau  [  PTHERM][0000:01:00.0] internal sensor: yes
[ 8887.064137] nouveau  [     CLK][0000:01:00.0] 03: core 169 MHz shader 338 MHz memory 100 MHz
[ 8887.064143] nouveau  [     CLK][0000:01:00.0] 05: core 275 MHz shader 550 MHz memory 250 MHz
[ 8887.064149] nouveau  [     CLK][0000:01:00.0] 07: core 500 MHz shader 1000 MHz memory 400 MHz
[ 8887.064155] nouveau  [     CLK][0000:01:00.0] 0f: core 580 MHz shader 1450 MHz memory 400 MHz
[ 8887.064236] nouveau  [     CLK][0000:01:00.0] --: core 275 MHz shader 550 MHz memory 249 MHz
[ 8887.064449] [TTM] Zone  kernel: Available graphics memory: 2006424 kiB
[ 8887.064451] [TTM] Initializing pool allocator
[ 8887.064458] [TTM] Initializing DMA pool allocator
[ 8887.064471] nouveau  [     DRM] VRAM: 512 MiB
[ 8887.064474] nouveau  [     DRM] GART: 1048576 MiB
[ 8887.064480] nouveau  [     DRM] TMDS table version 2.0
[ 8887.064483] nouveau  [     DRM] DCB version 4.0
[ 8887.064487] nouveau  [     DRM] DCB outp 00: 01000323 00010034
[ 8887.064491] nouveau  [     DRM] DCB outp 01: 02011300 00000028
[ 8887.064494] nouveau  [     DRM] DCB outp 02: 02022342 00020010
[ 8887.064497] nouveau  [     DRM] DCB conn 00: 00000040
[ 8887.064501] nouveau  [     DRM] DCB conn 01: 00000100
[ 8887.064504] nouveau  [     DRM] DCB conn 02: 00002261
[ 8887.064507] nouveau  [     DRM] DCB conn 03: 00000310
[ 8887.064509] nouveau  [     DRM] DCB conn 04: 00000311
[ 8887.064512] nouveau  [     DRM] DCB conn 05: 00000313
[ 8887.094947] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 8887.094951] [drm] No driver support for vblank timestamp query.
[ 8887.094956] nouveau  [     DRM] ACPI backlight interface available, not registering our own
[ 8887.176082] nouveau  [     DRM] MM: using M2MF for buffer copies
[ 8887.417083] nouveau 0000:01:00.0: No connectors reported connected with modes
[ 8887.417090] [drm] Cannot find any crtc or sizes - going 1024x768
[ 8887.418777] nouveau  [     DRM] allocated 1024x768 fb: 0x70000, bo ffff880061500800
[ 8887.433876] nouveau 0000:01:00.0: fb1: nouveaufb frame buffer device
[ 8887.433889] [drm] Initialized nouveau 1.1.2 20120801 for 0000:01:00.0 on minor 1
adomin@mbi-ux50v:~$ 
adomin@mbi-ux50v:~$ optirun -vv glxinfo
[ 9750.550681] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 9750.551396] [INFO]Configured driver: nouveau

^C[ 9861.794602] [WARN]Received Interrupt signal.
[ 9861.794647] [DEBUG]Socket closed.
[ 9861.794700] [WARN]Could not read data! Error: Bad file descriptor
[ 9861.794715] [DEBUG]Socket closed.
[ 9861.794724] [DEBUG]Read failed for query of LibraryPath
[ 9861.794734] [ERROR]Failed to retrieve LibraryPath setting.
adomin@mbi-ux50v:~$ 
adomin@mbi-ux50v:~$ cat /var/log/Xorg.8.log
[  9705.905] 
X.Org X Server 1.15.1
Release Date: 2014-04-13
[  9705.905] X Protocol Version 11, Revision 0
[  9705.906] Build Operating System: Linux 3.2.0-70-generic x86_64 Ubuntu
[  9705.906] Current Operating System: Linux mbi-ux50v 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64
[  9705.906] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-44-generic root=UUID=9e7a966a-6216-4d4c-9965-820b7dc26574 ro quiet splash rcutree.rcu_idle_gp_delay=1
[  9705.906] Build Date: 10 December 2014  06:15:52PM
[  9705.906] xorg-server 2:1.15.1-0ubuntu2.6 (For technical support please see http://www.ubuntu.com/support) 
[  9705.906] Current version of pixman: 0.30.2
[  9705.906]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  9705.906] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  9705.906] (==) Log file: "/var/log/Xorg.8.log", Time: Sat Jan 24 14:48:39 2015
[  9705.906] (++) Using config file: "/etc/bumblebee/xorg.conf.nouveau"
[  9705.906] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[  9705.906] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  9705.907] (==) ServerLayout "Layout0"
[  9705.907] (==) No screen section available. Using defaults.
[  9705.907] (**) |-->Screen "Default Screen Section" (0)
[  9705.907] (**) |   |-->Monitor "<default monitor>"
[  9705.911] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
[  9705.912] (**) |   |-->Device "DiscreteNvidia"
[  9705.912] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[  9705.912] (**) Option "AutoAddDevices" "false"
[  9705.912] (**) Option "AutoAddGPU" "false"
[  9705.912] (**) Not automatically adding devices
[  9705.912] (==) Automatically enabling devices
[  9705.912] (**) Not automatically adding GPU devices
[  9705.912] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  9705.912]    Entry deleted from font path.
[  9705.912] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  9705.912]    Entry deleted from font path.
[  9705.912] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  9705.912]    Entry deleted from font path.
[  9705.912] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  9705.912]    Entry deleted from font path.
[  9705.912] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  9705.912]    Entry deleted from font path.
[  9705.912] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[  9705.912] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[  9705.912] (==) |-->Input Device "<default pointer>"
[  9705.912] (==) |-->Input Device "<default keyboard>"
[  9705.912] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
[  9705.912] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
[  9705.912] (II) Loader magic: 0x7f9016694d40
[  9705.912] (II) Module ABI versions:
[  9705.912]    X.Org ANSI C Emulation: 0.4
[  9705.912]    X.Org Video Driver: 15.0
[  9705.912]    X.Org XInput driver : 20.0
[  9705.913]    X.Org Server Extension : 8.0
[  9705.914] (II) xfree86: Adding drm device (/dev/dri/card1)
[  9705.914] (II) xfree86: Adding drm device (/dev/dri/card0)
adomin@mbi-ux50v:~$ 

@ArchangeGabriel ArchangeGabriel changed the title NVRM: failed to copy vbios to system memory. NVRM: failed to copy vbios to system memory. (Probable regression in ACPI since acpi-handle-hack fix) Jan 24, 2015
@ArchangeGabriel
Copy link
Member Author

OK, I’ve edited your message to keep only the interesting parts of it.

So, this definitively looks like a regression in DSM handling, probably because of upstream fix for laptop needing acpi-handle-hack.

@Lekensteyn This should be reported to kernel, against ACPI, right? Will you have some free time to look at this soon?

@warpme
Copy link

warpme commented Apr 7, 2015

Hi,
I'm trying to add support for Optimus in my Minimyth2 project. My testbed is ASUS EB1037 (PineTrail IGP + 820M dGPU). I'm also experiencing problem with

Apr  7 23:09:30 (none) user.warn kernel: NVRM: failed to copy vbios to system memory.
Apr  7 23:09:30 (none) user.warn kernel: NVRM: RmInitAdapter failed! (0x30:0xffff:800)
Apr  7 23:09:30 (none) user.warn kernel: NVRM: rm_init_adapter failed for device bearing minor number 0
Apr  7 23:09:30 (none) user.warn kernel: NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5

I tested bumblebee 3.2.1 with Nvidia 346.47 on 3.16.7 kernel.
Also bbswitch seems to be non working on my test machine:

Apr  7 23:27:06 (none) user.info kernel: bbswitch: version 0.8
Apr  7 23:27:06 (none) user.info kernel: bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
Apr  7 23:27:06 (none) user.info kernel: bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.RP01.PXSX
Apr  7 23:27:06 (none) user.warn kernel: bbswitch: failed to evaluate \_SB_.PCI0.RP01.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
Apr  7 23:27:06 (none) user.warn kernel: bbswitch: failed to evaluate \_SB_.PCI0.RP01.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
Apr  7 23:27:06 (none) user.warn kernel: bbswitch: failed to evaluate \_SB_.PCI0.GFX0._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
Apr  7 23:27:06 (none) user.err kernel: bbswitch: No suitable _DSM call found.

I'm not sure what additional info should I provide here for helping further debugging this issue.
pls advise

@ArchangeGabriel
Copy link
Member Author

You should first report the latest issue against bbswitch. Once solved, if it still doesn’t work, you might open an issue against bumblebee again, or against nvidia or kernel depending on what @Lekensteyn will say.

Also, @Lekensteyn, any idea for the original issue here?

@ArchangeGabriel ArchangeGabriel added this to the Bumblebee 4.0 milestone Apr 9, 2015
@warpme
Copy link

warpme commented Apr 10, 2015

@ArchangeGabriel
thx for Your replay.
I think main issue is Nvidia BLOB can't access VBIOS.
I understand nvidia driver is getting VBIOS from machine BIOS with help of kernel ACPI calls.

I think my both issues (bbswitch & bumblebee) have the same root cause: video HW related ACPI calls not working OK on Asus EB1033.

Now, as
(1)Nvida BLOB shares 90% code between Windows/Linux and
(2)this machine works OK under windows and
(3)Widnows also uses the same ACPI (assumption; t.b.c)

it looks like highest probability is in regression in Linux ACPI subsystem.
I rather doubt Nvidia/Win uses totally different ACPI interactions than Nvidia/Linux (as by purpose ACPI is for HW abstraction and OS independence).

Nvidia even mentioned this in their readme: VBIOS problem is result of underlying kernel/BIOS ACPI issues.

What You think?

@ArchangeGabriel
Copy link
Member Author

Quite good analysis, but you’re wrong: Windows adds things to ACPI beyond specifications that most vendor implements and also Nvidia Optimus ACPI stuff is (was?) beyond specifications. And most vendors don’t respect specs anyway…

So, either Linux ACPI is broken or incomplete, or your ACPI/BIOS is broken. But please open an issue against bbswitch to stop polluting this one that is normally not correlated and to get Lekensteyn.

@Lekensteyn
Copy link
Member

The handle \_SB_.PCI0.RP01.PXSX looks wrong. Do you have an acpidump available?

(also, let's keep the discussion here to keep all information at one place)

@ArchangeGabriel
Copy link
Member Author

OK @Lekensteyn, but take care of the original reporter problem too. ;)

@warpme
Copy link

warpme commented Apr 12, 2015

Pls find decompiled DSDT/SSDT tables.
If any additional info is required - pls let me know.
br

@ArchangeGabriel
Copy link
Member Author

I think GitHub doesn’t handle attachments.

@warpme
Copy link

warpme commented Apr 12, 2015

Oh - sorry for that. I wasn't aware of this.
pls try download it from my server:
http://warped.homenet.org/ASUSTeK_Computer_INC.-EB1037.tar.gz
let me know is it working for you.
thx

@warpme
Copy link

warpme commented Apr 19, 2015

Bruno, Peter
Are You able to download ASUSTeK_Computer_INC.-EB1037.tar.gz file from my web server?
Is there anything other I can provide or help?

@ArchangeGabriel
Copy link
Member Author

Peter is the one with enough knowledge to work on this, but he seems busy/away currently (like I was until today)…

@ArchangeGabriel
Copy link
Member Author

@warpme Could you open an issue here https://github.com/Bumblebee-Project/bbswitch/issues? Copy over the important part of your message plus link to the file. After that, I will clean this thread to keep only original poster issue.

@ArchangeGabriel
Copy link
Member Author

@Eccawchkup @warpme What the status here?

@denisjuergen
Copy link

I have also noticed exactly the same error in the OP after updating nvidia and bumblebee packages from Debian stable repository (bumblebee=3.2.1-7 and nvidia-driver=340.96-1) to the stable-backports versions (bumblebee=3.2.1-13bpo8+1 and nvidia-driver=352.79-8bpo8+1).

Since using the APT I had to upgrade both packages (and its dependencies), so I'm not sure which of them introduced the problem. Downgrading the packages back to its stable versions made the bumblebee integration work again.

Is there anything I can do to help debug this problem (ie: building and installing the bumblebee from a specific git commit/branch, or anything else)?

@bluca
Copy link
Member

bluca commented Jun 26, 2016

First of all, you can use bumblebee from jessie-backports with the drivers from jessie, there's no hard-dependency. Bumblebee in jessie-backports is basically the same version as the dev branch here on Github.

Most importantly, we ship this in the README.debian in bumblebee's package:

- If optirun errors out and dmesg reports that the GPU has "fallen off the bus"
or "nvidia_frontend_open: minor 0, module->open() failed, error -5" on Linux
>= 3.10 and < 3.19, either stick with an older kernel version (<= 3.9) or
upgrade to > 3.19, or add rcutree.rcu_idle_gp_delay=1 to your grub command line
(in /etc/default/grub, then run update-grub and reboot) as a workaround.

This is a known problem upstream and suspected to be an issue with the
proprietary nvidia driver. Refer to Bumblebee github issue #455 and #615,
https://github.com/Bumblebee-Project/Bumblebee/issues/455 and
https://github.com/Bumblebee-Project/Bumblebee/issues/615.

Jessie's kernel is 3.16, so please try that workaround and see if it helps you.

@denisjuergen
Copy link

@bluca Thanks for the answer! The workaround worked, sorry for posting here without checking the README file.

Just a small question, does the configuration change fixes the problem or, by any way, it activates somekind of compatibility mode (with performance impact)?
Also, wouldn't that be the same solution for the OP problem (that guy is also using a problematic kernel; version 3.13)?

Thanks!

@bluca
Copy link
Member

bluca commented Jun 26, 2016

I have not delved deeper into this issue since it doesn't happen anymore after kernel 3.19, so there's not much point in investigating it IMHO. As the others already said, it's probably something to do with ACPI and bbswitch.

@egorbunov
Copy link

I'am not quite sure that this is the right thread, but I've run into the same issue with Fedora 24 (so linux kernel version is 4.7.5 > 3.19) and Geforce GT 540M:

[ 1811.427365] NVRM: failed to copy vbios to system memory.
[ 1811.427657] NVRM: RmInitAdapter failed! (0x30:0xffff:645)
[ 1811.427672] NVRM: rm_init_adapter failed for device bearing minor number 0

It fails with this error messages either with Driver=nvidia or Driver=nouveau.
Some additional information:

$ lspci | grep VGA 
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)
$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module  367.44  Wed Aug 17 22:24:07 PDT 2016

My bumblbee.conf is (comments deleted):

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia

[optirun]
VGLTransport=proxy
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia
Module=nvidia
PMMethod=none
LibraryPath=/usr/lib64/nvidia-bumblebee:/usr/lib/nvidia-bumblebee:/usr/lib64:/usr/lib
XorgModulePath=/usr/lib64/nvidia-bumblebee/xorg,/usr/lib64/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

If there is any workarounds, let me know, please =)
Thanks you =)

@Whinegum
Copy link

Hey,
I've got the same Issue with Debian jessie (stable). Two months ago everything worked fine, but I can't remember the update which might have caused the problem.
I'm running bumblebee 3.2.1-7 with version 340.96-1 of the nvidia graphics driver. (linux kernel version 3.16.0-4-amd64).
If I got you right, that should be exactly the working configuration.

I've already tried to add the kernel-parameter "rcutree.rcu_idle_gp_delay=1" and I've also added the recommended ScreenSection with (Identifier "Default Screen") and (Device "DiscreteNvidia") to my xorg.conf.nvidia file.

Is there anything more I can try?

Thanks

@bluca
Copy link
Member

bluca commented Nov 10, 2016

Those 2 workarounds solved the issue for everyone who has reported this to us on Debian.

Is using the kernel from jessie-backports an option for you?

@y-usuzumi
Copy link

I'm still getting this issue with kernel 4.12.7 on Gentoo.
My card is GTX960M

[ 1269.261659] bbswitch: enabling discrete graphics
[ 1269.357559] nvidia-nvlink: Nvlink Core is being initialized, major device number 245
[ 1269.357825] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  384.69  Wed Aug 16 19:34:54 PDT 2017 (using threaded interrupts)
[ 1269.364309] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.364359] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.364389] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.364421] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.364449] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.364496] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.364537] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.420863] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1269.636241] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.082789] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.082892] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.082959] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.083032] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.083095] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.083200] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.083263] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.087889] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1270.432562] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  384.69  Wed Aug 16 19:39:44 PDT 2017
[ 1312.597282] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.600732] nvidia-modeset: Unloading
[ 1312.610991] nvidia-nvlink: Unregistered the Nvlink Core, major device number 245
[ 1312.623573] bbswitch: disabling discrete graphics
[ 1312.623584] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.635739] pci 0000:01:00.0: Refused to change power state, currently in D0
[ 1312.707561] bbswitch: enabling discrete graphics
[ 1312.813162] nvidia-nvlink: Nvlink Core is being initialized, major device number 245
[ 1312.813413] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  384.69  Wed Aug 16 19:34:54 PDT 2017 (using threaded interrupts)
[ 1312.820084] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.820137] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.820168] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.820202] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.820230] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.820280] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1312.820309] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.818076] NVRM: failed to copy vbios to system memory.
[ 1316.818366] NVRM: RmInitAdapter failed! (0x30:0xffff:659)
[ 1316.818435] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 1316.821144] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.821198] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.821232] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.821270] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.821304] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.821355] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1316.821388] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20170303/nsarguments-95)
[ 1320.819251] NVRM: failed to copy vbios to system memory.
[ 1320.819686] NVRM: RmInitAdapter failed! (0x30:0xffff:659)
[ 1320.819759] NVRM: rm_init_adapter failed for device bearing minor number 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants