Bug#922822: [bumblebee] bumblebee "cannot enable discrete graphics card"

Giovanni Mascellani gio at debian.org
Wed Feb 20 19:29:24 GMT 2019


Package: bumblebee
Version: 3.2.1-20
Severity: normal

Hi,

(I am not sure bumblebee is the right package, but it is not clear to me
whether the problem stays with bumblebee, nvidia drivers or what else;
feel free to reassign)

my discrete graphics card is (according to lspci) a "NVIDIA Corporation
GP107GLM [Quadro P2000 Mobile] [10de:1cba] (rev ff)", mounted on a Dell
Precision 5530 laptop. If I configure bumblebee to use "bbswitch" as PM
(which, I believe, is what I should do), optirun is unable to work:

$ optirun glxinfo
[  383.435979] [ERROR]Cannot access secondary GPU - error: Could not
enable discrete graphics card

[  383.435997] [ERROR]Aborting because fallback start is disabled.

After this command, module bbswitch is loaded and module nvidia is not.
Also, these lines are sent to syslog:

Feb 20 18:11:12 amalgama bumblebeed[1044]: [  436.831559] [ERROR]Could
not enable discrete graphics card
Feb 20 18:11:12 amalgama kernel: [  436.860809] bbswitch: enabling
discrete graphics
Feb 20 18:11:12 amalgama kernel: [  436.860828] pci 0000:01:00.0:
Refused to change power state, currently in D3

If I try manually to modprobe nvidia:

# modprobe nvidia
modprobe: ERROR: could not insert 'nvidia_current': No such device
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error
running install command for nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted

Also, the following lines are sent to syslog:

Feb 20 18:11:44 amalgama kernel: [  468.637860] version 39.2
Feb 20 18:11:44 amalgama kernel: [  468.639277] ipmi device interface
Feb 20 18:11:44 amalgama kernel: [  468.648299] nvidia: module license
'NVIDIA' taints kernel.
Feb 20 18:11:44 amalgama kernel: [  468.648301] Disabling lock debugging
due to kernel taint
Feb 20 18:11:44 amalgama kernel: [  468.660738] nvidia-nvlink: Nvlink
Core is being initialized, major device number 240
Feb 20 18:11:44 amalgama kernel: [  468.661126] NVRM: This is a 64-bit
BAR mapped above 4GB by the system
Feb 20 18:11:44 amalgama kernel: [  468.661126] NVRM: BIOS or the Linux
kernel, but the PCI bridge
Feb 20 18:11:44 amalgama kernel: [  468.661126] NVRM: immediately
upstream of this GPU does not define
Feb 20 18:11:44 amalgama kernel: [  468.661126] NVRM: a matching
prefetchable memory window.
Feb 20 18:11:44 amalgama kernel: [  468.661128] NVRM: This may be due to
a known Linux kernel bug.  Please
Feb 20 18:11:44 amalgama kernel: [  468.661128] NVRM: see the README
section on 64-bit BARs for additional
Feb 20 18:11:44 amalgama kernel: [  468.661128] NVRM: information.
Feb 20 18:11:44 amalgama kernel: [  468.661134] nvidia: probe of
0000:01:00.0 failed with error -1
Feb 20 18:11:44 amalgama kernel: [  468.661156] NVRM: The NVIDIA probe
routine failed for 1 device(s).
Feb 20 18:11:44 amalgama kernel: [  468.661157] NVRM: None of the NVIDIA
graphics adapters were initialized!
Feb 20 18:11:44 amalgama kernel: [  468.727130] nvidia-nvlink:
Unregistered the Nvlink Core, major device number 240

The only information I manage to find about this README is here[1], and
mentions that I should upgrade to a new kernel. But I am already running
basically the latest one (4.19.0-3-amd64), so this is probably a false
trace.

 [1]
https://us.download.nvidia.com/XFree86/Linux-x86_64/410.93/README/knownissues.html

However, I have noticed that if I disable PM in bumblebee (set PMMethod
to none) and restart my system, the module bbswitch does not get loaded
(correct), the module nvidia gets automatically loaded (probably
correct), GDM3 starts with Xorg instead of Wayland (not really correct,
but probably not fundamental) and optirun works, running perfectly
FlightGear at top FPS. Optirun stops working after suspending the
system, but seems to survive hibernation. Of course, if I re-enable
bbswitch either within bumblebee configuration or manually loading the
module, everything stops working until the next cold reboot.

I am running from an up-to-date unstable, in particular with nvidia
drivers version 410.93-2. I am available for doing further tests, as I
really would like to fix this problem and use my discrete card without
having to cold-reboot.

Thanks for maintaining bumblebee!

Giovanni.


--- System information. ---
Architecture: Kernel:       Linux 4.19.0-3-amd64

Debian Release: buster/sid
  500 xenial          updates.signal.org   500 unstable-debug
debug.mirrors.debian.org   500 unstable        ftp.be.debian.org   500
testing         ftp.be.debian.org   500 stable          repo.skype.com
 500 stable          dl.google.com     1 experimental    ftp.be.debian.org
--- Package information. ---
Depends                 (Version) | Installed
=================================-+-============
bbswitch-dkms                     | 0.8-8
 OR bbswitch-source               | lsb-base                          |
10.2018112800
xserver-xorg-core     (>= 2:1.18) | 2:1.20.3-1
libbsd0                (>= 0.2.0) | libc6                   (>= 2.28) |
libglib2.0-0          (>= 2.12.0) | libkmod2                  (>= 5~) |
libx11-6                          |

Recommends      (Version) | Installed
=========================-+-===========
virtualgl                 |  OR primus                | 0~20150328-7


Suggests                (Version) | Installed
=================================-+-=============
bumblebee-nvidia     (= 3.2.1-20) | 3.2.1-20
-- 
Giovanni Mascellani <g.mascellani at gmail.com>
Postdoc researcher - Université Libre de Bruxelles



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20190220/995c9c57/attachment-0001.sig>


More information about the pkg-nvidia-devel mailing list