Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546228 - Kernel: gentoo-sources: vgaarb: this pci device is not a vga device
Summary: Kernel: gentoo-sources: vgaarb: this pci device is not a vga device
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-11 02:58 UTC by Lagu
Modified: 2015-06-17 00:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
full lspci, the 3d controller is my nvidia card. (lspci,30.04 KB, text/plain)
2015-04-11 02:58 UTC, Lagu
Details
Patch (file_546228.txt,646 bytes, patch)
2015-04-17 19:29 UTC, Lagu
Details | Diff
emerge --info (file_546228.txt,7.49 KB, text/plain)
2015-04-17 19:30 UTC, Lagu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lagu 2015-04-11 02:58:32 UTC
Created attachment 401018 [details]
full lspci, the 3d controller is my nvidia card.

Hi, here a bug with long time, the problem is when we have a discrete card as 3d controller, and the kernel don't recognize it as vga device, its very common with for example notebooks with 2 video cards for example a intel with nvidia.

Here the issue in bumblebee project: https://github.com/Bumblebee-Project/Bumblebee/issues/159

and here i found a patch, i test it and works fine at the moment: http://pastebin.com/wpmFi38k

my super log of the error:

abr 10 03:59:34 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 03:59:34 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 03:59:50 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 03:59:50 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:00:18 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:00:18 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:00:40 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:00:40 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:38:17 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:38:17 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:45:18 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:45:19 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:49:00 pipe-PC kernel: vgaarb: this pci device is not a vga device
abr 10 04:49:00 pipe-PC kernel: vgaarb: this pci device is not a vga device
continue with the same to much....

using gentoo-sources-3.19.3

Thx.
Comment 1 Mike Pagano gentoo-dev 2015-04-17 18:19:37 UTC
Can you attach the patch? I'm currently blocked from pastebin

And emerge --info also, please.
Comment 2 Lagu 2015-04-17 19:29:53 UTC
Created attachment 401482 [details, diff]
Patch
Comment 3 Lagu 2015-04-17 19:30:39 UTC
Created attachment 401484 [details]
emerge --info
Comment 4 Lagu 2015-04-17 19:32:00 UTC
i have applied the patch, and my overlays are masked excepted with the packages i use, i don't use system packages of overlays.
Comment 5 Mike Pagano gentoo-dev 2015-04-27 18:14:50 UTC
Is this a warning or does it have a negative affect?
Comment 6 Bruno 2015-04-27 18:38:39 UTC
Changing vga arbitration on such systems may cause side effects that are not directly visible.
Adding the 3D controller to vgaarb certainly is contra-productive. It would be better if the code that calls vgaarb for such a 3D controller did not do so (either nvidia closed driver or some userspace code switching GPUs).

See also https://bugzilla.kernel.org/show_bug.cgi?id=86121 for a case where vgaarb caused havoc to backlight controls, triggered by nvidia closed driver.
Comment 7 Mike Pagano gentoo-dev 2015-06-17 00:23:09 UTC
I'm not comfortable with carrying this in gentoo-sources.  Feel free to submit upstream if you like.