LINUX.ORG.RU

Ubuntu ROCm 1.2 FGLRX

 , ,


0

1

Приветствую! Прошу помощи, платная для стимула) Есть система в которой используются 20 pcie устройств, видяшек по сути.

Ubuntu 14.04 работает нормально при 10 устройствах pcie, более 11 устройств система даже не загружается. Использую ядро ROCm 1.2 (RadeonOpenCompute) ситема работает нормально. В системе видны все устройства, но софт требует fglrx который не могу поставить хоть тресни. uname -r

4.4.0-kfd-compute-rocm-rel-1.2-31

https://github.com/RadeonOpenCompute/ROCm

lspci | grep -i VGA

07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290]
./amd-driver-installer-15.302-x86.x86_64.run --buildpkg ubuntu/trusty --NoXServer dpkg -i *.deb

(Reading database ... 122092 files and directories currently installed.)
Preparing to unpack fglrx-core_15.302-0ubuntu1_amd64.deb ...
Removing all DKMS Modules
Done.
Unpacking fglrx-core (2:15.302-0ubuntu1) over (2:15.302-0ubuntu1) ...
Setting up fglrx-core (2:15.302-0ubuntu1) ...
Loading new fglrx-core-15.302 DKMS files...
Building only for 4.4.0-kfd-compute-rocm-rel-1.2-31
Building for architecture x86_64
Building initial module for 4.4.0-kfd-compute-rocm-rel-1.2-31
ERROR (dkms apport): kernel package linux-headers-4.4.0-kfd-compute-rocm-rel-1.2-31 is not supported
Error! Bad return status for module build on kernel: 4.4.0-kfd-compute-rocm-rel-1.2-31 (x86_64)
Consult /var/lib/dkms/fglrx-core/15.302/build/make.log for more information.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-kfd-compute-rocm-rel-1.2-31
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

/var/lib/dkms/fglrx-core/15.302/build/make.log

DKMS make.log for fglrx-core-15.302 for kernel 4.4.0-kfd-compute-rocm-rel-1.2-31 (x86_64)
Mon Oct 10 09:20:39 EDT 2016
/usr/sbin/dkms: line 73: cd: /var/lib/dkms/fglrx/15.302/build: No such file or directory
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf *.c *.h *.o *.ko *.a .??* *.symvers
make -C /lib/modules/4.4.0-kfd-compute-rocm-rel-1.2-31/build SUBDIRS=/var/lib/dkms/fglrx-core/15.302/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-4.4.0-kfd-compute-rocm-rel-1.2-31'
  CC [M]  /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.o
<command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_save_init’:
/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c:6475:49: error: ‘XSTATE_FP’ undeclared (first use in this function)
       if (!(fpu->state.xsave.header.xfeatures & XSTATE_FP))
                                                 ^
/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c:6475:49: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c: At top level:
/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c:6465:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
static int KCL_fpu_save_init(struct task_struct *tsk)
            ^
make[2]: *** [/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx-core/15.302/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-kfd-compute-rocm-rel-1.2-31'
make: *** [kmod_build] Error 2
build failed with return value 2 



Последнее исправление: Nippy (всего исправлений: 6)

Ответ на: комментарий от ZenitharChampion

Спасибо!

Я нашёл патч, исправляющий проблему. Нажми «plain», чтобы скачать нормально. Поищи в интернете как их накладывать... Я что-то забыл. Или подожди 15 минут, я посмотрю как устанавливал сам.

https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-drivers/ati-drivers/files/...

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

Поищи в интернете как их накладывать... Я что-то забыл.

man patch, наркоман.

anonymous
()

Как нашёл.

Я знаю что в Gentoo Linux - всегда самые свежие версии программ. А ещё я знаю как там называется fglrx - «ati-drivers». Поэтому я открыл http://packages.gentoo.org/ и в поиске набрал ati-drivers. Открыл ebuild драйвера 15.12, нажал Правка, Найти, «epatch». Вот так. Потом вернулся на директорию выше и нашёл файлы патчей в директории files.

Как накладывать патч я нашёл здесь:

sh amd-driver-installer-15.302-x86.x86_64.run --extract
cd fglrx-install.*/
wget https://raw.githubusercontent.com/imageguy/fglrx-for-Fedora/master/fglrx_kernel_4.4.diff
patch -p1 < fglrx_kernel_4.4.diff
sudo sh ./ati-installer.sh 15.302 --buildpkg --buildpkg Ubuntu/trusty
ZenitharChampion ★★★★★
()
Последнее исправление: ZenitharChampion (всего исправлений: 2)
Ответ на: комментарий от ZenitharChampion

Да пребудет с тобой сила Люк скзал Antminer S9

Спасибо, доберусь до стенда дам знать результат.

Nippy
() автор топика
Ответ на: комментарий от Nippy
=====================================================================
 AMD  Proprietary Driver Installer/Packager
=====================================================================
Generating package: Ubuntu/trusty
Package /home/lotus33/fglrx-15.302/fglrx-amdcccle_15.302-0ubuntu1_amd64.deb has been successfully generated
Package /home/lotus33/fglrx-15.302/fglrx-core_15.302-0ubuntu1_amd64.deb has been successfully generated
Package /home/lotus33/fglrx-15.302/fglrx-dev_15.302-0ubuntu1_amd64.deb has been successfully generated
Package /home/lotus33/fglrx-15.302/fglrx_15.302-0ubuntu1_amd64.deb has been successfully generated
root@ubuntu:/home/lotus33/fglrx-15.302/fglrx-install.jeBcc3#
root@ubuntu:/home/lotus33/fglrx-15.302# dpkg -i *.deb
Selecting previously unselected package fglrx.
(Reading database ... 96220 files and directories currently installed.)
Preparing to unpack fglrx_15.302-0ubuntu1_amd64.deb ...
Unpacking fglrx (2:15.302-0ubuntu1) ...
Selecting previously unselected package fglrx-amdcccle.
Preparing to unpack fglrx-amdcccle_15.302-0ubuntu1_amd64.deb ...
Unpacking fglrx-amdcccle (2:15.302-0ubuntu1) ...
Selecting previously unselected package fglrx-core.
Preparing to unpack fglrx-core_15.302-0ubuntu1_amd64.deb ...
Unpacking fglrx-core (2:15.302-0ubuntu1) ...
Selecting previously unselected package fglrx-dev.
Preparing to unpack fglrx-dev_15.302-0ubuntu1_amd64.deb ...
Unpacking fglrx-dev (2:15.302-0ubuntu1) ...
dpkg: dependency problems prevent configuration of fglrx-core:
 fglrx-core depends on dkms; however:
  Package dkms is not installed.

dpkg: error processing package fglrx-core (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fglrx:
 fglrx depends on fglrx-core; however:
  Package fglrx-core is not configured yet.

dpkg: error processing package fglrx (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fglrx-amdcccle:
 fglrx-amdcccle depends on fglrx; however:
  Package fglrx is not configured yet.

dpkg: error processing package fglrx-amdcccle (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fglrx-dev:
 fglrx-dev depends on fglrx-core | fglrx; however:
  Package fglrx-core is not configured yet.
  Package fglrx is not configured yet.

dpkg: error processing package fglrx-dev (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 fglrx-core
 fglrx
 fglrx-amdcccle
 fglrx-dev
Nippy
() автор топика
Ответ на: комментарий от Nippy

провтыкал dkms.

dpkg -l | grep -i fglrx
iU  fglrx                 2:15.302-0ubuntu1    amd64   Video driver for the AMD graphics accelerators
iU  fglrx-amdcccle        2:15.302-0ubuntu1    amd64   Catalyst Control Center for the AMD graphics accelerators
iU  fglrx-core            2:15.302-0ubuntu1    amd64   Minimal video driver for the AMD graphics accelerators
iU  fglrx-dev             2:15.302-0ubuntu1    amd64   Video driver for the AMD graphics accelerators (devel files)
dpkg --get-selections | grep fglrx
fglrx                                           install
fglrx-amdcccle                                  install
fglrx-core                                      install
fglrx-dev                                       install
aticonfig --list-adapters

* 0. 02:00.0 Supported device 67B0
Nippy
() автор топика
Ответ на: комментарий от Nippy
dmesg
[  394.086073] ------------[ cut here ]------------
[  394.086081] WARNING: CPU: 5 PID: 1399 at /home/ubuntu/jenkins-root/workspace/compute-rocm-rel-1.2/kernel/drivers/pci/msi.c:1051 pci_enable_msi_range+0x38b/0x3a0()
[  394.086083] Modules linked in: fglrx(POE) ipmi_ssif amdkfd binfmt_misc amd_iommu_v2 amdgpu intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_codec_hdmi kvm snd_hda_intel snd_hda_codec ttm snd_hda_core irqbypass drm_kms_helper snd_hwdep crct10dif_pclmul snd_pcm drm crc32_pclmul aesni_intel snd_timer aes_x86_64 fb_sys_fops lrw snd gf128mul syscopyarea glue_helper sysfillrect soundcore ablk_helper sysimgblt cryptd joydev serio_raw sb_edac input_leds mei_me edac_core mei lpc_ich 8250_fintek ipmi_si shpchp ipmi_msghandler ioatdma wmi mac_hid lp parport hid_generic igb usbhid isci uas psmouse ahci hid libsas usb_storage i2c_algo_bit dca libahci ptp scsi_transport_sas pps_core fjes
[  394.086114] CPU: 5 PID: 1399 Comm: ethdcrminer64 Tainted: P           OE   4.4.0-kfd-compute-rocm-rel-1.2-31 #1
[  394.086116] Hardware name: Supermicro X9SRE/X9SRE-3F/X9SRi/X9SRi-3F/X9SRE/X9SRE-3F/X9SRi/X9SRi-3F, BIOS 3.0a 01/03/2014
[  394.086118]  ffffffff81b30468 ffff880078e2b980 ffffffff813ae18d 0000000000000000
[  394.086120]  ffff880078e2b9b8 ffffffff8107b246 0000000000000001 ffff880078e2ba90
[  394.086122]  0000000000000001 ffff880179062000 0000000000000000 ffff880078e2b9c8
[  394.086124] Call Trace:
[  394.086129]  [<ffffffff813ae18d>] dump_stack+0x44/0x57
[  394.086132]  [<ffffffff8107b246>] warn_slowpath_common+0x86/0xc0
[  394.086134]  [<ffffffff8107b33a>] warn_slowpath_null+0x1a/0x20
[  394.086136]  [<ffffffff814162fb>] pci_enable_msi_range+0x38b/0x3a0
[  394.086203]  [<ffffffffc08b55c8>] KCL_RequestMSI+0x18/0x30 [fglrx]
[  394.086244]  [<ffffffffc08d8e9c>] IRQMGR_initialize+0x2bc/0x410 [fglrx]
[  394.086287]  [<ffffffffc08d8b87>] ? IRQMGR_alloc_context+0xb7/0x110 [fglrx]
[  394.086329]  [<ffffffffc08d73c7>] ? irqmgr_wrap_initialize+0x27/0x140 [fglrx]
[  394.086364]  [<ffffffffc08b95f2>] ? KCL_DEBUG_Print_Trace+0x22/0xd0 [fglrx]
[  394.086405]  [<ffffffffc08d8985>] ? firegl_irqmgr_init+0x55/0x100 [fglrx]
[  394.086449]  [<ffffffffc08e9cd1>] ? hal_init_gpu+0x221/0x4e0 [fglrx]
[  394.086487]  [<ffffffffc08c313e>] ? firegl_open+0x2de/0x310 [fglrx]
[  394.086517]  [<ffffffffc08b11a7>] ? ip_firegl_open+0x17/0x20 [fglrx]
[  394.086546]  [<ffffffffc08b2958>] ? firegl_stub_open+0x98/0x100 [fglrx]
[  394.086549]  [<ffffffff811fb9e1>] ? chrdev_open+0xb1/0x190
[  394.086552]  [<ffffffff811f5067>] ? do_dentry_open+0x227/0x320
[  394.086553]  [<ffffffff811fb930>] ? cdev_put+0x30/0x30
[  394.086555]  [<ffffffff811f6377>] ? vfs_open+0x57/0x60
[  394.086558]  [<ffffffff81204951>] ? path_openat+0x1b1/0x12e0
[  394.086561]  [<ffffffff81206afe>] ? do_filp_open+0x7e/0xd0
[  394.086563]  [<ffffffff81213b96>] ? __alloc_fd+0x46/0x180
[  394.086566]  [<ffffffff811f66d8>] ? do_sys_open+0x128/0x210
[  394.086568]  [<ffffffff811f67de>] ? SyS_open+0x1e/0x20
[  394.086572]  [<ffffffff817c8d36>] ? entry_SYSCALL_64_fastpath+0x16/0x75
[  394.086573] ---[ end trace f27a1b79c955b09c ]---
[  394.086600] ------------[ cut here ]------------
[  394.086622] kernel BUG at /home/ubuntu/jenkins-root/workspace/compute-rocm-rel-1.2/kernel/drivers/pci/msi.c:366!
[  394.086658] invalid opcode: 0000 [#1] SMP
[  394.086683] Modules linked in: fglrx(POE) ipmi_ssif amdkfd binfmt_misc amd_iommu_v2 amdgpu intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_codec_hdmi kvm snd_hda_intel snd_hda_codec ttm snd_hda_core irqbypass drm_kms_helper snd_hwdep crct10dif_pclmul snd_pcm drm crc32_pclmul aesni_intel snd_timer aes_x86_64 fb_sys_fops lrw snd gf128mul syscopyarea glue_helper sysfillrect soundcore ablk_helper sysimgblt cryptd joydev serio_raw sb_edac input_leds mei_me edac_core mei lpc_ich 8250_fintek ipmi_si shpchp ipmi_msghandler ioatdma wmi mac_hid lp parport hid_generic igb usbhid isci uas psmouse ahci hid libsas usb_storage i2c_algo_bit dca libahci ptp scsi_transport_sas pps_core fjes
[  394.087113] CPU: 5 PID: 1399 Comm: ethdcrminer64 Tainted: P        W  OE   4.4.0-kfd-compute-rocm-rel-1.2-31 #1
[  394.087148] Hardware name: Supermicro X9SRE/X9SRE-3F/X9SRi/X9SRi-3F/X9SRE/X9SRE-3F/X9SRi/X9SRi-3F, BIOS 3.0a 01/03/2014
[  394.087186] task: ffff8801766bd280 ti: ffff880078e28000 task.ti: ffff880078e28000
[  394.087213] RIP: 0010:[<ffffffff814159f8>]  [<ffffffff814159f8>] free_msi_irqs+0x198/0x1b0
[  394.087247] RSP: 0018:ffff880078e2b9a8  EFLAGS: 00010286
[  394.087267] RAX: ffff88003663e600 RBX: 0000000000000000 RCX: 00000000fffffffa
[  394.087293] RDX: 0000000000000000 RSI: 000000000000003b RDI: ffff88017a8001f8
[  394.087319] RBP: ffff880078e2b9c8 R08: 0000000000000000 R09: ffff88017a800000
[  394.087345] R10: ffff88017a800200 R11: 0000000000000000 R12: ffff8800779960c0
[  394.087370] R13: ffff880179062298 R14: ffff880179062000 R15: ffff880179062000
[  394.087397] FS:  00007f5b4b18e780(0000) GS:ffff88017b340000(0000) knlGS:0000000000000000
[  394.087426] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  394.087449] CR2: 00007f5b4b1aa000 CR3: 0000000078ff8000 CR4: 00000000000406e0
[  394.087474] Stack:
[  394.087484]  0000000000000001 0000000000000001 00000000ffffffff ffff880079348480
[  394.087521]  ffff880078e2ba20 ffffffff81416246 00000001ffffffe4 ffff880179062298
[  394.087560]  ffff880179062098 0080000000000001 0000000000001002 ffff880078e2ba90
[  394.087597] Call Trace:
[  394.087609]  [<ffffffff81416246>] pci_enable_msi_range+0x2d6/0x3a0
[  394.087664]  [<ffffffffc08b55c8>] KCL_RequestMSI+0x18/0x30 [fglrx]
[  394.087728]  [<ffffffffc08d8e9c>] IRQMGR_initialize+0x2bc/0x410 [fglrx]
[  394.087792]  [<ffffffffc08d8b87>] ? IRQMGR_alloc_context+0xb7/0x110 [fglrx]
[  394.087857]  [<ffffffffc08d73c7>] ? irqmgr_wrap_initialize+0x27/0x140 [fglrx]
[  394.087917]  [<ffffffffc08b95f2>] ? KCL_DEBUG_Print_Trace+0x22/0xd0 [fglrx]
[  394.087982]  [<ffffffffc08d8985>] ? firegl_irqmgr_init+0x55/0x100 [fglrx]
[  394.088048]  [<ffffffffc08e9cd1>] ? hal_init_gpu+0x221/0x4e0 [fglrx]
[  394.088108]  [<ffffffffc08c313e>] ? firegl_open+0x2de/0x310 [fglrx]
[  394.088160]  [<ffffffffc08b11a7>] ? ip_firegl_open+0x17/0x20 [fglrx]
[  394.088212]  [<ffffffffc08b2958>] ? firegl_stub_open+0x98/0x100 [fglrx]
[  394.088237]  [<ffffffff811fb9e1>] ? chrdev_open+0xb1/0x190
[  394.088259]  [<ffffffff811f5067>] ? do_dentry_open+0x227/0x320
[  394.088282]  [<ffffffff811fb930>] ? cdev_put+0x30/0x30
[  394.088303]  [<ffffffff811f6377>] ? vfs_open+0x57/0x60
[  394.088324]  [<ffffffff81204951>] ? path_openat+0x1b1/0x12e0
[  394.088347]  [<ffffffff81206afe>] ? do_filp_open+0x7e/0xd0
[  394.088369]  [<ffffffff81213b96>] ? __alloc_fd+0x46/0x180
[  394.089399]  [<ffffffff811f66d8>] ? do_sys_open+0x128/0x210
[  394.090428]  [<ffffffff811f67de>] ? SyS_open+0x1e/0x20
[  394.091458]  [<ffffffff817c8d36>] ? entry_SYSCALL_64_fastpath+0x16/0x75
[  394.092484] Code: 41 5d 41 5e 5d c3 48 8b 7b 40 e8 84 08 c5 ff 48 8b 03 e9 34 ff ff ff 49 8d b6 98 00 00 00 48 89 c7 e8 3d 40 cc ff e9 f7 fe ff ff <0f> 0b 4c 89 f7 e8 2e fc ff ff 48 85 c0 0f 84 dc fe ff ff e9 cd
[  394.094841] RIP  [<ffffffff814159f8>] free_msi_irqs+0x198/0x1b0
[  394.095909]  RSP <ffff880078e2b9a8>
[  394.096962] ---[ end trace f27a1b79c955b09d ]--- 
Nippy
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.