LINUX.ORG.RU

Загрузка фирмвари AMD Mars

 , , ,


0

1

Всем привет.

На борту стоит два видика:

sudo lspci -nn | grep -i vga
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M] [1002:6600]
Столкнулся с проблемой загрузки фирмвари для AMD карточки при загрзке системы. Немного пропатчил ядро добавлением printk() в _request_firmware() для удобства. Вот выхлоп:
Oct 29 19:03:58 ltg kernel: [drm] radeon kernel modesetting enabled.
Oct 29 19:03:58 ltg kernel: VGA switcheroo: detected switching method \_SB_.PCI0.GFX0.ATPX handle
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: enabling device (0000 -> 0003)
Oct 29 19:03:58 ltg kernel: [drm] initializing kernel modesetting (OLAND 0x1002:0x6600 0x103C:0x1947)
Oct 29 19:03:58 ltg kernel: [drm] register mmio base: 0xB0900000
Oct 29 19:03:58 ltg kernel: [drm] register mmio size: 262144
Oct 29 19:03:58 ltg kernel: vga_switcheroo: enabled
Oct 29 19:03:58 ltg kernel: ATPX version 1, functions 0x00000003
Oct 29 19:03:58 ltg kernel: ATOM BIOS: HP
Oct 29 19:03:58 ltg kernel: [drm] GPU not posted. posting now...
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF 
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: GTT: 2048M 0x0000000080000000 - 0x00000000FFFFFFFF
Oct 29 19:03:58 ltg kernel: [drm] Detected VRAM RAM=2048M, BAR=256M
Oct 29 19:03:58 ltg kernel: [drm] RAM width 128bits DDR
Oct 29 19:03:58 ltg kernel: [TTM] Zone  kernel: Available graphics memory: 3801232 kiB
Oct 29 19:03:58 ltg kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
Oct 29 19:03:58 ltg kernel: [TTM] Initializing pool allocator
Oct 29 19:03:58 ltg kernel: [TTM] Initializing DMA pool allocator
Oct 29 19:03:58 ltg kernel: [drm] radeon: 2048M of VRAM memory ready
Oct 29 19:03:58 ltg kernel: [drm] radeon: 2048M of GTT memory ready.
Oct 29 19:03:58 ltg kernel: [drm] Loading oland Microcode
Oct 29 19:03:58 ltg kernel: ath9k 0000:04:00.0 wlo1: renamed from wlan0
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/oland_pfp.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/oland_me.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/oland_ce.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: uvcvideo: Found UVC 1.00 device HP HD Webcam (04f2:b3c8)
Oct 29 19:03:58 ltg kernel: input: HP HD Webcam as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/
Oct 29 19:03:58 ltg kernel: usbcore: registered new interface driver uvcvideo
Oct 29 19:03:58 ltg kernel: USB Video Class driver (1.1.1)
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/oland_rlc.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/oland_mc.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/oland_smc.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: [drm] Internal thermal controller without fan control
Oct 29 19:03:58 ltg kernel: [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
Oct 29 19:03:58 ltg kernel: [drm] radeon: dpm initialized
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/TAHITI_uvd.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/TAHITI_vce.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:58 ltg kernel: [drm] Found VCE firmware/feedback version 50.0.1 / 17!
Oct 29 19:03:58 ltg kernel: [drm] GART: num cpu pages 524288, num gpu pages 524288
Oct 29 19:03:58 ltg kernel: [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
Oct 29 19:03:58 ltg kernel: [drm] PCIE gen 3 link speeds already enabled
Oct 29 19:03:58 ltg kernel: [drm] PCIE GART of 2048M enabled (table at 0x00000000002E8000).
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: WB enabled
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: VCE init error (-110).
Oct 29 19:03:58 ltg kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Oct 29 19:03:58 ltg kernel: [drm] Driver supports precise vblank timestamp query.
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: radeon: MSI limited to 32-bit
Oct 29 19:03:58 ltg kernel: radeon 0000:01:00.0: radeon: using MSI.
Oct 29 19:03:58 ltg kernel: [drm] radeon: irq initialized.
Oct 29 19:03:58 ltg kernel: [drm] ring test on 0 succeeded in 1 usecs
Oct 29 19:03:58 ltg kernel: [drm] ring test on 1 succeeded in 1 usecs
Oct 29 19:03:58 ltg kernel: [drm] ring test on 2 succeeded in 1 usecs
Oct 29 19:03:58 ltg kernel: [drm] ring test on 3 succeeded in 3 usecs
Oct 29 19:03:58 ltg kernel: [drm] ring test on 4 succeeded in 3 usecs
Oct 29 19:03:59 ltg kernel: [drm] ring test on 5 succeeded in 2 usecs
Oct 29 19:03:59 ltg kernel: [drm] UVD initialized successfully.
Oct 29 19:03:59 ltg kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Oct 29 19:03:59 ltg kernel: [drm] ib test on ring 1 succeeded in 0 usecs
Oct 29 19:03:59 ltg kernel: [drm] ib test on ring 2 succeeded in 0 usecs
Oct 29 19:03:59 ltg kernel: input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/i
Oct 29 19:03:59 ltg kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Oct 29 19:03:59 ltg kernel: [drm] ib test on ring 4 succeeded in 0 usecs
Oct 29 19:03:59 ltg kernel: usbcore: registered new interface driver btusb
Oct 29 19:03:59 ltg kernel: DEBUG >>> FW name: ar3k/ramps_0x31010000_40.dfu
Oct 29 19:03:59 ltg kernel: DEBUG >>> Ret code: 0
Oct 29 19:03:59 ltg kernel: usb 1-12: USB disconnect, device number 5
Oct 29 19:03:59 ltg kernel: usbcore: registered new interface driver ath3k
Oct 29 19:03:59 ltg kernel: usb 1-12: new full-speed USB device number 6 using xhci_hcd
Oct 29 19:03:59 ltg kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
Oct 29 19:03:59 ltg kernel: [drm] ib test on ring 5 succeeded
Oct 29 19:03:59 ltg kernel: [drm] Radeon Display Connectors
Oct 29 19:03:59 ltg kernel: radeon 0000:01:00.0: No connectors reported connected with modes
Oct 29 19:03:59 ltg kernel: [drm] Cannot find any crtc or sizes - going 1024x768
Oct 29 19:03:59 ltg kernel: [drm] fb mappable at 0x906EA000
Oct 29 19:03:59 ltg kernel: [drm] vram apper at 0x90000000
Oct 29 19:03:59 ltg kernel: [drm] size 3145728
Oct 29 19:03:59 ltg kernel: [drm] fb depth is 24
Oct 29 19:03:59 ltg kernel: [drm]    pitch is 4096
Oct 29 19:03:59 ltg kernel: radeon 0000:01:00.0: fb1: radeondrmfb frame buffer device
Oct 29 19:03:59 ltg kernel: [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 2

Проблема в строке «radeon 0000:01:00.0: VCE init error (-110).» Но из лога видно, что фирмваря загрузилась нормально:

Oct 29 19:03:58 ltg kernel: DEBUG >>> FW name: radeon/TAHITI_vce.bin
Oct 29 19:03:58 ltg kernel: DEBUG >>> Ret code: 0
Ну, и понятное дело, когда пытаюсь переключиться на AMD карту, выключается экран вообще :)

Может кто-нибудь фиксил подобное? Заранее благодарен.

P.S. Ядро 4.3-rc7 из git'a


Немного пропатчил ядро добавлением printk() в _request_firmware()

А нужно было просто загрузится с dyndbg=«module firmware_class +p»

Но ъ-лоровец не ограничен рамками чтения документации, просмотра кода и здравого смысла.

anonymous ()

radeon 0000:01:00.0: VCE init error (-110).

Это ошибка апаратного кодировщика видео, на 3д оно не влияет.

Ivan_qrt ★★★★★ ()
Ответ на: комментарий от steemandlinux
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD OLAND (DRM 2.43.0, LLVM 3.7.0)
OpenGL version string: 2.1 Mesa 11.0.3
OpenGL shading language version string: 1.30
zl0y ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.