Public bug reported:

nvidia-driver-390 incorrectly recommended (and installed) as best driver
for NVIDIA GeForce GTX 1060 on a Dell G7 7588. This is leading to
segmentation fault while using glmark2 for example.

Series: Ubuntu 22.04.5 LTS
GPU: GeForce GTX 1060
Kernel: 5.15.0-186-generic

This is the version installed for ubuntu-drivers-common

```
dpkg-query -W -f='${Package}\t${Version}\t${Status}\n' ubuntu-drivers-common
ubuntu-drivers-common   1:0.9.6.2~0.22.04.11    install ok installed
```

ubuntu-drivers is listing *-390 as recommended and installed version

```
ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C20sv00001028sd00000825bc03sc00i00
vendor   : NVIDIA Corporation
model    : GP106M [GeForce GTX 1060 Mobile]
driver   : nvidia-driver-450-server - distro non-free
driver   : nvidia-driver-580 - distro non-free
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-390 - distro non-free recommended
driver   : nvidia-driver-545 - distro non-free
driver   : nvidia-driver-580-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
```

```
dpkg-query -W -f='${Package}\t${Version}\t${Status}\n' nvidia-driver-390
nvidia-driver-390       390.157-0ubuntu0.22.04.2        install ok installed
```


Segmentation error when using nvidia-driver-390

```
glmark2 --off-screen --validate
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     NVIDIA Corporation
    GL_RENDERER:   GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
    GL_VERSION:    4.6.0 NVIDIA 390.157
=======================================================
[build] use-vbo=false: Validation: Success
[build] use-vbo=true: Validation: Success
[texture] texture-filter=nearest: Validation: Success
[texture] texture-filter=linear: Validation: Success
[texture] texture-filter=mipmap: Validation: Success
[shading] shading=gouraud: Validation: Success
[shading] shading=blinn-phong-inf: Validation: Success
[shading] shading=phong: Validation: Success
[shading] shading=cel: Validation: Unknown
[bump] bump-render=high-poly: Validation: Success
[bump] bump-render=normals: Validation: Success
Error: Failed to add fragment shader from file None:
Error:   0(15) : error C0000: syntax error, unexpected identifier, expecting 
"::" at token "highp"
Error: 
[bump] bump-render=height: Validation: Failure
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: Validation: Success
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: Validation: Success
[pulsar] light=false:quads=5:texture=false: Validation: Success
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: 
Validation: Success
[desktop] effect=shadow:windows=4: Validation: Success
[buffer] 
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 Validation: Success
[buffer] 
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
 Validation: Success
[buffer] 
columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 Validation: Success
[ideas] speed=duration: Validation: Unknown
[jellyfish] <default>: Validation: Unknown
Error: Failed to add fragment shader from file None:
Error:   0(26) : warning C7022: unrecognized profile specifier "highp"
Error: 0(26) : error C0502: syntax error at token "highp"
Error: 
Error: Failed to add fragment shader from file None:
Error:   0(75) : warning C7022: unrecognized profile specifier "highp"
Error: 0(75) : error C0502: syntax error at token "highp"
Error: 
[terrain] <default>:Segmentation fault (core dumped)
```

Support Level for *-390 is set to Legacy while *-580 is set to LTSB
```
for drv in nvidia-driver-390 nvidia-driver-535 nvidia-driver-545 
nvidia-driver-580; do
    echo "=== $drv ==="; apt-cache show $drv 2>/dev/null | grep -i 
"support\|legacy\|version"; 
done
=== nvidia-driver-390 ===
Version: 390.157-0ubuntu0.22.04.2
 for a complete list of supported GPUs and PCI IDs.
Support: Legacy
Version: 390.147-0ubuntu1
 for a complete list of supported GPUs and PCI IDs.
Support: Legacy
=== nvidia-driver-535 ===
Version: 535.309.01-0ubuntu0.22.04.2
=== nvidia-driver-545 ===
Version: 545.29.06-0ubuntu0.22.04.2
 for a complete list of supported GPUs and PCI IDs.
Support: NFB
=== nvidia-driver-580 ===
Version: 580.173.02-0ubuntu0.22.04.1
 for a complete list of supported GPUs and PCI IDs.
Support: LTSB
```

From the list of available ubuntu-driver devices, I was able to install *-580:
```
sudo apt-get purge nvidia-driver-390
sudo apt-get install nvidia-driver-580
sudo reboot
```

Which do not have the segmentation fault error, so not a kernel problem but a 
problem on selecting the correct driver.
```
glmark2 --off-screen --validate
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     NVIDIA Corporation
    GL_RENDERER:   NVIDIA GeForce GTX 1060 with Max-Q Design/PCIe/SSE2
    GL_VERSION:    4.6.0 NVIDIA 580.173.02
=======================================================
[build] use-vbo=false: Validation: Success
[build] use-vbo=true: Validation: Success
[texture] texture-filter=nearest: Validation: Success
[texture] texture-filter=linear: Validation: Success
[texture] texture-filter=mipmap: Validation: Success
[shading] shading=gouraud: Validation: Success
[shading] shading=blinn-phong-inf: Validation: Success
[shading] shading=phong: Validation: Success
[shading] shading=cel: Validation: Unknown
[bump] bump-render=high-poly: Validation: Success
[bump] bump-render=normals: Validation: Success
[bump] bump-render=height: Validation: Success
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: Validation: Success
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: Validation: Success
[pulsar] light=false:quads=5:texture=false: Validation: Success
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: 
Validation: Success
[desktop] effect=shadow:windows=4: Validation: Success
[buffer] 
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 Validation: Success
[buffer] 
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
 Validation: Success
[buffer] 
columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 Validation: Success
[ideas] speed=duration: Validation: Unknown
[jellyfish] <default>: Validation: Unknown
[terrain] <default>: Validation: Unknown
[shadow] <default>: Validation: Unknown
[refract] <default>: Validation: Unknown
[conditionals] fragment-steps=0:vertex-steps=0: Validation: Success
[conditionals] fragment-steps=5:vertex-steps=0: Validation: Success
[conditionals] fragment-steps=0:vertex-steps=5: Validation: Success
[function] fragment-complexity=low:fragment-steps=5: Validation: Success
[function] fragment-complexity=medium:fragment-steps=5: Validation: Success
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: Validation: Success
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: Validation: 
Success
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: Validation: 
Success
```

** Affects: ubuntu-drivers-common (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161685

Title:
  Incorrect NVIDIA driver selected for Dell G7 7588

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/2161685/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to