Bug 49919 - Видеокарта GeForce RTX 4060 Ti некорректно работает с драйвером nouveau (драйвер nvidia не установлен по умолчанию)
Summary: Видеокарта GeForce RTX 4060 Ti некорректно работает с драйвером nouveau (драй...
Status: NEW
Alias: None
Product: Альт Сервер
Classification: Distributions
Component: Ошибки работы (show other bugs)
Version: 10.2
Hardware: x86_64 Linux
: P5 normal
Assignee: Evgeny Sinelnikov
QA Contact: qa-p8@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-05 18:34 MSK by Vera Blagoveschenskaya
Modified: 2024-04-05 18:35 MSK (History)
1 user (show)

See Also:


Attachments
logs (3.22 MB, application/zip)
2024-04-05 18:35 MSK, Vera Blagoveschenskaya
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vera Blagoveschenskaya 2024-04-05 18:34:21 MSK
Образ: Server 10.2 x86_64

Ядра в образе:
kernel-image-std-def-5.10.209-alt2
kernel-image-un-def-6.1.79-alt1

Железо:
Процессор: 13th Gen Intel(R) Core(TM) i5-13400F
Материнская плата: Gigabyte B760 DS3H
Видеокарта (дискретная): NVIDIA AD106 [GeForce RTX 4060 Ti]

Видеокарта GeForce RTX 4060 Ti некорректно работает с драйвером nouveau.
Поддержка 40й серии nvidia поддерживается только в ядре >6.7
Невозможно сменить разрешение экрана, не работает звук через HDMI.
Поведение аналогичное на обоих ядрах.

# inxi -G
Graphics:
  Device-1: NVIDIA AD106 [GeForce RTX 4060 Ti] driver: N/A
  Device-2: HP HP Webcam HD 2300
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
  Display: x11 server: X.Org v: 1.20.14 driver: X: loaded: N/A
    unloaded: fbdev gpu: N/A resolution: 800x600
  API: OpenGL v: 4.5 vendor: mesa v: 23.1.9 renderer: llvmpipe (LLVM 15.0.7
    256 bits)

# lspci -v
01:00.0 VGA compatible controller: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Gigabyte Technology Co., Ltd Device 40f8
        Flags: fast devsel, IRQ 16
        Memory at 52000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 40000000 (64-bit, prefetchable) [size=256M]
        Memory at 50000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 4000 [size=128]
        Expansion ROM at 53000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Legacy Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [250] Latency Tolerance Reporting
        Capabilities: [258] L1 PM Substates
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [420] Advanced Error Reporting
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] Secondary PCI Express
        Capabilities: [bb0] Physical Resizable BAR
        Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
        Capabilities: [d00] Lane Margining at the Receiver <?>
        Capabilities: [e00] Data Link Feature <?>

В dmesg появляется ошибка
kernel: nouveau 0000:01:00.0: unknown chipset (196000a1)

# glmark2
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
    glmark2 2021.12
=======================================================
    OpenGL Information
    GL_VENDOR:     Mesa
    GL_RENDERER:   llvmpipe (LLVM 15.0.7, 256 bits)
    GL_VERSION:    4.5 (Compatibility Profile) Mesa 23.1.9
=======================================================
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=false: FPS: 299 FrameTime: 3.344 ms
.................................................
.................................................
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 445 FrameTime: 2.247 ms
=======================================================
                                  glmark2 Score: 426
=======================================================


Дополнительно: в образе присутствуют драйвера nvidia, но они не устанавливаются по умолчанию.

После установки системы с диска установить пакеты для nvidia и переключиться на эти драйверы:
# apt-repo rm all
# mount /dev/sde1 /media/ALTLinux/
# echo "rpm file:///media/ALTLinux ALTLinux main" >> /etc/apt/sources.list
# apt-get install nvidia_glx_common
# nvidia-install-driver
# apt-get remove kernel-modules-drm-nouveau-un-def
# rm -fr /etc/X11/xorg.conf
# make-initrd
# reboot

После чего графика начинает корректно работать. 
Можно менять разрешение, звук через HDMI воспроизводится.

# apt-get install inxi glmark2 glxinfo
# inxi -G
Graphics:
  Device-1: NVIDIA AD106 [GeForce RTX 4060 Ti] driver: nvidia v: 535.154.05
  Display: x11 server: X.Org v: 1.20.14 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia,nvidia-nvswitch
    resolution: 1280x720~60Hz
  API: OpenGL v: 4.6.0 vendor: nvidia v: 535.154.05 renderer: NVIDIA
    GeForce RTX 4060 Ti/PCIe/SSE2

# glmark2
=======================================================
    glmark2 2021.12
=======================================================
    OpenGL Information
    GL_VENDOR:     NVIDIA Corporation
    GL_RENDERER:   NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2
    GL_VERSION:    4.6.0 NVIDIA 535.154.05
=======================================================
                                  glmark2 Score: 16017
=======================================================

# xrandr
Screen 0: minimum 8 x 8, current 1280 x 720, maximum 32767 x 32767
HDMI-0 connected primary 1280x720+0+0 (normal left inverted right x axis y axis) 708mm x 398mm
   1280x720      60.00*+  59.94    50.00    29.97    25.00    23.98
   1920x1080     50.00    29.97    25.00    23.98
   1440x900      59.87
   1280x1024     75.02
   1024x768      70.07    60.00
   800x600       75.00    72.19    60.32    56.25
   720x576       50.00
   720x480       59.94    59.94
   640x480       75.00    72.81    59.94    59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
Comment 1 Vera Blagoveschenskaya 2024-04-05 18:35:19 MSK
Created attachment 15813 [details]
logs