LINUX.ORG.RU

Не работает видеокарта AMD

 ,


0

1

На ноутбуке стоит две видеокарты: Intel и AMD Radeon R5 M230 (встроенная и дискретная), система: Linux Mint 18.4 KDE. Никак не могу заставить видеокарту AMD работать, запускаю программу с помощью «DRI_PRIME=1» и либо система зависает, либо программа. На сайте нет драйверов для моей видеокарты, стоит amdgpu (я как-то пытался поставить), как его удалить? Драйвера AMD:

0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE [Radeon HD 8550M / R5 M230] (rev ff)
        Kernel driver in use: radeon
        Kernel modules: radeon, amdgpu
Видеокарта постоянно DynOff:
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:0a:00.0
Если нужно, могу дать логи, только скажите какие. Помогите, пожалуйста!

Покажи вывод:

xrandr --listproviders
У меня как-то на леново с A10 (apu) и дискретным радиком было аж три позиции. 0 - интегрированное видео, 1 - непонятная хрень и 2 - дискретка.

anonymous ()

А потом говорят что линакс сложный.
Советую удалить libc - она старая, сейчас весь мир пользуется libc++. Линукс начинает работать намного лучше.

mos ★★★★★ ()
Ответ на: комментарий от anonymous
Providers: number : 2
Provider 0: id: 0x67 cap: 0x9, Source Output, Sink Offload crtcs: 4 outputs: 4 associated providers: 1 name:Intel
Provider 1: id: 0x3f cap: 0x4, Source Offload crtcs: 0 outputs: 0 associated providers: 1 name:HAINAN @ pci:0000:0a:00.0

У меня тоже Lenovo, но модель b50-70

WolkoV31 ()
Ответ на: комментарий от cyber_eagle

Не может удалить, из-за зависимостей:

dpkg: проблемы с зависимостями не позволяют удалить пакет libdrm-amdgpu1:amd64:
 libgl1-mesa-dri:amd64 зависит от libdrm-amdgpu1 (>= 2.4.89+git1712180630.831036~oibaf~x).

dpkg: ошибка при обработке пакета libdrm-amdgpu1:amd64 (--remove):
 проблемы с зависимостями — не удаляется
dpkg: проблемы с зависимостями не позволяют удалить пакет libdrm-amdgpu1:i386:
 libgl1-mesa-dri:i386 зависит от libdrm-amdgpu1 (>= 2.4.89+git1712180630.831036~oibaf~x).

dpkg: ошибка при обработке пакета libdrm-amdgpu1:i386 (--remove):
 проблемы с зависимостями — не удаляется
dpkg: проблемы с зависимостями не позволяют удалить пакет xserver-xorg-video-amdgpu:
 xserver-xorg-video-all зависит от xserver-xorg-video-amdgpu.

dpkg: ошибка при обработке пакета xserver-xorg-video-amdgpu (--remove):
 проблемы с зависимостями — не удаляется
При обработке следующих пакетов произошли ошибки:
 libdrm-amdgpu1:amd64
 libdrm-amdgpu1:i386
 xserver-xorg-video-amdgpu

WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT
name of display: :0
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  43
  Current serial number in output stream:  42
WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT

dmesg | grep -i radeon

[    1.770258] [drm] radeon kernel modesetting enabled.
[    1.775183] radeon 0000:0a:00.0: enabling device (0006 -> 0007)
[    1.782784] radeon 0000:0a:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[    1.782786] radeon 0000:0a:00.0: GTT: 2048M 0x0000000040000000 - 0x00000000BFFFFFFF
[    1.782867] [drm] radeon: 1024M of VRAM memory ready
[    1.782868] [drm] radeon: 2048M of GTT memory ready.
[    1.791242] [drm] radeon: dpm initialized
[    1.795801] radeon 0000:0a:00.0: WB enabled
[    1.795804] radeon 0000:0a:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff8d398fcc5c00
[    1.795806] radeon 0000:0a:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff8d398fcc5c04
[    1.795808] radeon 0000:0a:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff8d398fcc5c08
[    1.795809] radeon 0000:0a:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff8d398fcc5c0c
[    1.795811] radeon 0000:0a:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff8d398fcc5c10
[    1.795814] radeon 0000:0a:00.0: radeon: MSI limited to 32-bit
[    1.795864] radeon 0000:0a:00.0: radeon: using MSI.
[    1.795890] [drm] radeon: irq initialized.
[    2.033095] [drm] Radeon Display Connectors
[    2.034058] [drm] Initialized radeon 2.49.0 20080528 for 0000:0a:00.0 on minor 1
[   21.568926] radeon 0000:0a:00.0: WB enabled
[   21.568928] radeon 0000:0a:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff8d398fcc5c00
[   21.568930] radeon 0000:0a:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff8d398fcc5c04
[   21.568930] radeon 0000:0a:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff8d398fcc5c08
[   21.568932] radeon 0000:0a:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff8d398fcc5c0c
[   21.568932] radeon 0000:0a:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff8d398fcc5c10
[ 5338.333384] radeon 0000:0a:00.0: Refused to change power state, currently in D3
[ 5338.413029] radeon 0000:0a:00.0: Refused to change power state, currently in D3
[ 5338.433101] radeon 0000:0a:00.0: Refused to change power state, currently in D3
[ 5343.436876] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 5343.436900] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 7524 (len 367, WS 0, PS 0) @ 0x7562
[ 5343.436911] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 6C2A (len 488, WS 4, PS 0) @ 0x6C35
[ 5343.436921] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 6BDC (len 78, WS 12, PS 8) @ 0x6BE4
[ 5343.438000] [drm:si_dpm_enable [radeon]] *ERROR* si_init_smc_table failed
[ 5343.438017] [drm:radeon_pm_resume [radeon]] *ERROR* radeon: dpm resume failed
[ 5343.438023] [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0
[ 5343.964673] radeon 0000:0a:00.0: Wait for MC idle timedout !
[ 5344.120460] radeon 0000:0a:00.0: Wait for MC idle timedout !
[ 5344.126201] radeon 0000:0a:00.0: WB enabled
[ 5344.126203] radeon 0000:0a:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff8d398fcc5c00
[ 5344.126204] radeon 0000:0a:00.0: fence driver on ring 1 use gpu addr 0x0000000040000c04 and cpu addr 0xffff8d398fcc5c04
[ 5344.126205] radeon 0000:0a:00.0: fence driver on ring 2 use gpu addr 0x0000000040000c08 and cpu addr 0xffff8d398fcc5c08
[ 5344.126206] radeon 0000:0a:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff8d398fcc5c0c
[ 5344.126207] radeon 0000:0a:00.0: fence driver on ring 4 use gpu addr 0x0000000040000c10 and cpu addr 0xffff8d398fcc5c10
[ 5345.550625] [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xFFFFFFFF)
[ 5345.550653] [drm:si_resume [radeon]] *ERROR* si startup failed on resume
[ 5345.551849] [drm:si_dpm_enable [radeon]] *ERROR* si_init_smc_table failed
[ 5345.551875] [drm:radeon_pm_resume [radeon]] *ERROR* radeon: dpm resume failed
WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT

cat /var/log/Xorg.0.log | grep DRI

[    29.677] (II) glamor: EGL version 1.5 (DRI2):
[    29.719] (II) RADEON(G0): [DRI2] Setup complete
[    29.719] (II) RADEON(G0): [DRI2]   DRI driver: radeonsi
[    29.719] (II) RADEON(G0): [DRI2]   VDPAU driver: radeonsi
[    29.884] (II) intel(0): [DRI2] Setup complete
[    29.884] (II) intel(0): [DRI2]   DRI driver: i965
[    29.884] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    29.884] (II) intel(0): direct rendering: DRI2 enabled
[    30.056] (II) GLX: Initialized DRI2 GL provider for screen 0
WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT

dmesg | grep -i command

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0-42-generic root=UUID=6d3dd9a4-cfd1-43d5-8e34-7ccf66b25a9f ro quiet splash vt.handoff=7
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.10.0-42-generic root=UUID=6d3dd9a4-cfd1-43d5-8e34-7ccf66b25a9f ro quiet splash vt.handoff=7
WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT

ЗАРАБОТАЛО! По крайней мере, glxgears заработал, состояние карты сменилось на DynPwr во время его работы, и FPS просто сумасшедший! Я развернул glxgears на весь экран и увидел шестеренки.

WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT

Вот с radeon.dpm=0

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD HAINAN (DRM 2.49.0 / 4.10.0-42-generic, LLVM 5.0.1) (0x666f)
    Version: 17.4.0
    Accelerated: yes
    Video memory: 1024MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: X.Org
OpenGL renderer string: AMD HAINAN (DRM 2.49.0 / 4.10.0-42-generic, LLVM 5.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.4.0-devel
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 17.4.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.4.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

WolkoV31 ()
Ответ на: комментарий от WolkoV31

Т.е. ты просто новую Мезу поставил? Ибо ты не используешь amdgpu. Чтобы переключится на него добавь в /etc/default/grub в GRUB_CMDLINE_LINUX_DEFAULT это «modprobe.blacklist=radeon», потом выполни «sudo update-grub2» и перезагрузись

BceM_IIpuBeT ★★ ()
Ответ на: комментарий от BceM_IIpuBeT

Я просто добавил radeon.dpm=0 в /etc/default/grub, и заработало :) . Думаю, что так и оставлю, главное - работает. Я попытался запустить игрушку с помощью Wine и DRI_PRIME=1, она запустилась (по крайней мере, звук есть), но с белым экраном, ничего нет, без DRI_PRIME=1 игра запускается нормально. Не могли бы вы мне еще с этим помочь?

WolkoV31 ()
Ответ на: комментарий от BceM_IIpuBeT

Рано я обрадовался. С Wine я разобрался (просто изменил размер окна), но FPS почему-то ниже, чем при игре с интегрированной, это нормально (с интегрированной: 100, с дискретной:40, игра пиксельная)? И случаются полные зависания, когда помогает только Ctrl+alt+backspace. И еще, я заметил, что после выхода из спящего режима AMD перестает работать. При попытке запустить DRI_PRIME=1 glxgear выдает:

radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000                                                                                                                                         
radeonsi: Failed to create a context.                                                                                                                                   
radeon: Failed to allocate virtual address for buffer:                                                                                                                  
radeon:    size      : 65536 bytes                                                                                                                                      
radeon:    alignment : 4096 bytes                                                                                                                                       
radeon:    domains   : 4                                                                                                                                                
radeon:    va        : 0x0000000000800000                                                                                                                               
radeon: Failed to deallocate virtual address for buffer:                                                                                                                
radeon:    size      : 65536 bytes                                                                                                                                      
radeon:    va        : 0x800000                                                                                                                                         
radeon: Failed to allocate virtual address for buffer:                                                                                                                  
radeon:    size      : 65536 bytes                                                                                                                                      
radeon:    alignment : 4096 bytes                                                                                                                                       
radeon:    domains   : 4                                                                                                                                                
radeon:    va        : 0x0000000000800000                                                                                                                               
radeon: Failed to deallocate virtual address for buffer:                                                                                                                
radeon:    size      : 65536 bytes                                                                                                                                      
radeon:    va        : 0x800000                                                                                                                                         
radeonsi: Failed to create a context.                                                                                                                                   
X Error of failed request:  BadValue (integer parameter out of range for operation)                                                                                     
  Major opcode of failed request:  154 (GLX)                                                                                                                            
  Minor opcode of failed request:  3 (X_GLXCreateContext)                                                                                                               
  Value in failed request:  0x0                                                                                                                                         
  Serial number of failed request:  30                                                                                                                                  
  Current serial number in output stream:  32
Помогает перезагрузка.

WolkoV31 ()
Ответ на: комментарий от WolkoV31

Wine я разобрался (просто изменил размер окна), но FPS почему-то ниже, чем при игре с интегрированной, это нормально

Нет. Похоже твоя Sun LE проблемная как и моя Tahiti LE. Забей и юзай Windows. Если так хочется линукса, то меняй эту карту/ноутбук.

RedEyedMan4 ★★★★★ ()
Ответ на: комментарий от WolkoV31

Error «radeon: Failed to allocate virtual address for buffer:» when launching GL application

This error is given when the power management in the kernel driver is running. You can overcome this error by appending radeon.runpm=0 to the kernel parameters in the bootloader.

anonymous ()