Захотелось OpenCL на карточках Vega56 и свежем ядре.
Внес правки (в том числе и свои), чтобы согласовать amdgpu-pro-dkms и kernel-5.1.15.
Модуль успешно собирается, но при перезагрузке в логах вижу:
amdgpu-pro 19.20 и kernel 5.1.15
[ 9.926661] amdkcl: loading out-of-tree module taints kernel.
[ 9.926662] amdkcl: loading out-of-tree module taints kernel.
[ 9.926662] amdkcl: loading out-of-tree module taints kernel.
[ 9.950363] Warning: fail to get symbol drm_fb_helper_release_fbi, replace it with kcl stub
[ 9.963204] Error: fail to get symbol devcgroup_check_permission
[ 9.963213] ------------[ cut here ]------------
[ 9.963214] kernel BUG at /var/lib/dkms/amdgpu/19.20-812932/build/amd/amdkcl/kcl_common.h:34!
[ 9.963219] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 9.965916] CPU: 6 PID: 2283 Comm: udevd Tainted: G O 5.1.15-gentoo #2
[ 9.968689] Hardware name: System manufacturer System Product Name/ROG CROSSHAIR VI EXTREME, BIOS 7003 06/04/2019
[ 9.971590] RIP: 0010:amdkcl_dev_cgroup_init+0x23/0x30 [amdkcl]
[ 9.974496] Code: 89 05 e9 34 00 00 c3 0f 1f 44 00 00 48 c7 c7 98 a7 48 c0 e8 bf 74 cb db 48 85 c0 75 0f 80 3d 8c 2f 00 00 00 0f 84 00 03 00 00 <0f> 0b 48 89 05 c4 34 00 00 c3 0f 1f 00 0f 1f 44 00 00 80 3d 6e 2f
[ 9.980733] RSP: 0018:ffffa05ac3ca3c90 EFLAGS: 00010246
[ 9.983852] RAX: 0000000000000034 RBX: 0000000000000000 RCX: 0000000000000000
[ 9.987027] RDX: 0000000000000000 RSI: 0000000000000096 RDI: 00000000ffffffff
[ 9.990177] RBP: ffffffffc059d000 R08: 0000000000000001 R09: 000000000000052e
[ 9.993321] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9c325b50bb00
[ 9.996436] R13: ffffffffc048c550 R14: ffffa05ac3ca3e98 R15: 0000000000000002
[ 9.999547] FS: 00007fd4b6e86bc0(0000) GS:ffff9c322c180000(0000) knlGS:0000000000000000
[ 10.002705] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 10.005883] CR2: 00007fd4b6012ce0 CR3: 00000008db41e000 CR4: 00000000003406e0
[ 10.009144] Call Trace:
[ 10.012319] init_module+0x1e/0x2b [amdkcl]
[ 10.015461] do_one_initcall+0x4f/0x1f7
[ 10.018561] ? ___cache_free+0x31/0x2e0
[ 10.021635] do_init_module+0x5a/0x210
[ 10.024675] load_module+0x20d7/0x25f0
[ 10.027685] ? vfs_read+0x115/0x140
[ 10.030720] ? __se_sys_finit_module+0xb1/0xd0
[ 10.033756] __se_sys_finit_module+0xb1/0xd0
[ 10.036795] do_syscall_64+0x48/0x100
[ 10.039832] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 10.042880] RIP: 0033:0x7fd4b6a661a9
[ 10.045894] Code: 00 00 00 75 05 48 83 c4 18 c3 e8 92 8d 01 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 6c 2c 00 f7 d8 64 89 01 48
[ 10.052464] RSP: 002b:00007ffcff573cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 10.055818] RAX: ffffffffffffffda RBX: 00005633498afc50 RCX: 00007fd4b6a661a9
[ 10.059218] RDX: 0000000000000000 RSI: 00007fd4b6ec591d RDI: 000000000000000f
[ 10.062663] RBP: 00007fd4b6ec591d R08: 0000000000000000 R09: 000056334989bf90
[ 10.066115] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000000000
[ 10.069572] R13: 00005633498aead0 R14: 0000000000020000 R15: 00005633498afc50
[ 10.073049] Modules linked in: k10temp amdkcl(O+) drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm efivarfs
[ 10.076708] ---[ end trace bc78cb568b3b58b2 ]---
[ 10.080368] RIP: 0010:amdkcl_dev_cgroup_init+0x23/0x30 [amdkcl]
[ 10.080369] Code: 89 05 e9 34 00 00 c3 0f 1f 44 00 00 48 c7 c7 98 a7 48 c0 e8 bf 74 cb db 48 85 c0 75 0f 80 3d 8c 2f 00 00 00 0f 84 00 03 00 00 <0f> 0b 48 89 05 c4 34 00 00 c3 0f 1f 00 0f 1f 44 00 00 80 3d 6e 2f
[ 10.080370] RSP: 0018:ffffa05ac3ca3c90 EFLAGS: 00010246
[ 10.080371] RAX: 0000000000000034 RBX: 0000000000000000 RCX: 0000000000000000
[ 10.080371] RDX: 0000000000000000 RSI: 0000000000000096 RDI: 00000000ffffffff
[ 10.080372] RBP: ffffffffc059d000 R08: 0000000000000001 R09: 000000000000052e
[ 10.080372] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9c325b50bb00
[ 10.080372] R13: ffffffffc048c550 R14: ffffa05ac3ca3e98 R15: 0000000000000002
[ 10.080373] FS: 00007fd4b6e86bc0(0000) GS:ffff9c322c180000(0000) knlGS:0000000000000000
[ 10.080374] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 10.080374] CR2: 00007fd4b6012ce0 CR3: 00000008db41e000 CR4: 00000000003406e0
Может ли кто по фотографии выше, найди где жук прячется от меня ?
Патчики находятся здесь
По варнингу подсказали путь решения, догадаться что надо править можно из этой переписки