Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653374 - nvidia-driver.eclass fails to detect alternate device class 0302 ("3D controller")
Summary: nvidia-driver.eclass fails to detect alternate device class 0302 ("3D control...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-17 12:24 UTC by Matthew Schultz
Modified: 2018-04-17 13:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Schultz 2018-04-17 12:24:31 UTC
There's a problem in the nvidia-driver-get-card function that does not detect all kinds of nvidia cards.  It doesn't appear to be a problem right now for legacy masking but it might be in the future.  I have a laptop with nvidia optimus and the nvidia-driver-get-card does not detect the nvidia card.  Here's the output of my card:

# /usr/sbin/lspci -d 10de: -n
01:00.0 0302: 10de:1292 (rev a1)


When you're splitting the string with awk, you can't assume that this part will always be 0300:

'/ 0300: /{print $6}

I don't know what all the possible nvidia card combinations are but I would consider at least changing it to this:

awk -F'[: ]' '/ 030[0-9]: /{print $6}'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-17 13:45:57 UTC
Fixed. Thanks!
Comment 2 Matthew Schultz 2018-04-17 13:49:50 UTC
Ah, I hadn't realized that's a pci class and not nvidia related.  No problem.