You are not logged in.

#1 2017-02-15 16:23:43

gasparov
Member
Registered: 2006-02-10
Posts: 19

SOLVED:Kernel panic with amdcpu after blacklisting radeon

Hi folks,
   I'm trying to get opencl for blender so I installed opencl-amd from aur but when I run DRI_PRIME=1 blender the program closes with this message "amdgpu_device_initialize: DRM version is 2.48.0 but this driver is only compatible with 3.x.x."

I figured out that I have to blacklist the radeon driver but then when I reboot instead of starting GDM everything stuck (no caps lock, no num lock) and I think is a kernel panic. I'm not sure if this message is meaningful but here it is

amdgpu 0000:09:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
Feb 15 15:38:15 gas-laptop kernel: amdgpu 0000:09:00.0: GTT: 3951M 0x0000000040000000 - 0x0000000136FBAFFF
Feb 15 15:38:15 gas-laptop kernel: [drm] Detected VRAM RAM=1024M, BAR=256M
Feb 15 15:38:15 gas-laptop kernel: [drm] RAM width 64bits UNKNOWN
Feb 15 15:38:15 gas-laptop kernel: [drm] amdgpu: 1024M of VRAM memory ready
Feb 15 15:38:15 gas-laptop kernel: [drm] amdgpu: 3951M of GTT memory ready.
Feb 15 15:38:15 gas-laptop kernel: [drm] GART: num cpu pages 1011643, num gpu pages 1011643
Feb 15 15:38:15 gas-laptop kernel: BUG: unable to handle kernel NULL pointer dereference at           (null)
Feb 15 15:38:15 gas-laptop kernel: IP: [<ffffffffa0a28211>] gmc_v6_0_hw_init+0x1f1/0x660 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel: PGD 0 
Feb 15 15:38:15 gas-laptop kernel: 
Feb 15 15:38:15 gas-laptop kernel: Oops: 0000 [#1] PREEMPT SMP
Feb 15 15:38:15 gas-laptop kernel: Modules linked in: iwlmvm(+) mac80211 amdkfd amd_iommu_v2 amdgpu(+) i2c_i801(+) i2c_smbus dm_mod iwlwifi i915(+) snd_hda_codec_conexan
Feb 15 15:38:15 gas-laptop kernel:  pci_stub vboxpci(O) vboxdrv(O) sg acpi_call(O) ip_tables x_tables ext4 crc16 jbd2 fscrypto mbcache mmc_block hid_logitech_hidpp sd_mo
Feb 15 15:38:15 gas-laptop kernel: CPU: 3 PID: 222 Comm: systemd-udevd Tainted: G           O    4.9.8-1-ARCH #1
Feb 15 15:38:15 gas-laptop kernel: Hardware name: TOSHIBA SATELLITE L50-B/Type2 - Board Product Name1, BIOS 2.00 12/02/2014
Feb 15 15:38:15 gas-laptop kernel: task: ffff880254f79c80 task.stack: ffffc90001204000
Feb 15 15:38:15 gas-laptop kernel: RIP: 0010:[<ffffffffa0a28211>]  [<ffffffffa0a28211>] gmc_v6_0_hw_init+0x1f1/0x660 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel: RSP: 0018:ffffc900012078f8  EFLAGS: 00010246
Feb 15 15:38:15 gas-laptop kernel: RAX: 0000000000000000 RBX: ffff880254238000 RCX: 0000000000000000
Feb 15 15:38:15 gas-laptop kernel: RDX: 0000000000000003 RSI: 0000000000000000 RDI: ffff880254238000
Feb 15 15:38:15 gas-laptop kernel: RBP: ffffc90001207940 R08: 0000000000000003 R09: 0000000000000000
Feb 15 15:38:15 gas-laptop kernel: R10: ffffffff811ca101 R11: 00000000811ca101 R12: 0000000000000bc5
Feb 15 15:38:15 gas-laptop kernel: R13: 0000000000000018 R14: 0000000000000000 R15: ffff88024c47ec00
Feb 15 15:38:15 gas-laptop kernel: FS:  00007fdda1518400(0000) GS:ffff88025ed80000(0000) knlGS:0000000000000000
Feb 15 15:38:15 gas-laptop kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 15 15:38:15 gas-laptop kernel: CR2: 0000000000000000 CR3: 0000000252169000 CR4: 00000000003406e0
Feb 15 15:38:15 gas-laptop kernel: Stack:
Feb 15 15:38:15 gas-laptop kernel:  ffff88024c47ec00 ffff88025423a588 0000000000000018 0000000041b6bb23
Feb 15 15:38:15 gas-laptop kernel:  ffff880254238000 0000000000000005 0000000000000018 0000000000000000
Feb 15 15:38:15 gas-laptop kernel:  ffff88024c47ec00 ffffc900012079d8 ffffffffa09d4397 0000000000000000
Call Trace:
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa09d4397>] amdgpu_device_init+0x1017/0x15b0 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff811ac79e>] ? kmalloc_order_trace+0x2e/0xf0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa09d6c3b>] amdgpu_driver_load_kms+0x5b/0x1f0 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa0451ac7>] drm_dev_register+0xa7/0xd0 [drm]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa0453630>] drm_get_pci_dev+0xe0/0x1d0 [drm]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa09d14ac>] amdgpu_pci_probe+0xbc/0xe0 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8135b7b5>] local_pci_probe+0x45/0xa0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8135b700>] ? pci_match_device+0xe0/0x110
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8135c9c9>] pci_device_probe+0x109/0x160
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff81452463>] driver_probe_device+0x223/0x430
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8145274f>] __driver_attach+0xdf/0xf0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff81452670>] ? driver_probe_device+0x430/0x430
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8144ff9c>] bus_for_each_dev+0x6c/0xc0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff81451bae>] driver_attach+0x1e/0x20
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff814515d0>] bus_add_driver+0x170/0x270
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa0b40000>] ? 0xffffffffa0b40000
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff81453110>] driver_register+0x60/0xe0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa0b40000>] ? 0xffffffffa0b40000
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8135af5c>] __pci_register_driver+0x4c/0x50
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa045380b>] drm_pci_init+0xeb/0x100 [drm]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8144a85a>] ? vga_switcheroo_register_handler+0x6a/0x90
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa0b40000>] ? 0xffffffffa0b40000
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffffa0b40095>] amdgpu_init+0x95/0xa8 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff81002190>] do_one_initcall+0x50/0x180
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff811cbd41>] ? __vunmap+0x81/0xd0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff811cbdfe>] ? vfree+0x2e/0x70
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8117f5de>] do_init_module+0x5f/0x1f1
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8110d2e4>] load_module+0x2384/0x2a50
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8110a1c0>] ? symbol_put_addr+0x50/0x50
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff811cb19a>] ? vmap_page_range_noflush+0x25a/0x350
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8110db24>] SyS_init_module+0x174/0x190
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff81003b64>] do_syscall_64+0x54/0xc0
Feb 15 15:38:15 gas-laptop kernel:  [<ffffffff8160a96b>] entry_SYSCALL64_slow_path+0x25/0x25
Feb 15 15:38:15 gas-laptop kernel: Code: 85 c0 74 0f 48 8b 3b 48 c7 c6 40 e9 b0 a0 e8 97 60 a2 e0 48 8d 75 c0 48 89 df e8 1b fc ff ff 48 8b 83 98 28 00 00 31 f6 48 89 df
Feb 15 15:38:15 gas-laptop kernel: RIP  [<ffffffffa0a28211>] gmc_v6_0_hw_init+0x1f1/0x660 [amdgpu]
Feb 15 15:38:15 gas-laptop kernel:  RSP <ffffc900012078f8>
Feb 15 15:38:15 gas-laptop kernel: CR2: 0000000000000000
Feb 15 15:38:15 gas-laptop kernel: ---[ end trace c0810ae83e70e448 ]---

My kernel is 4.9.8-1-ARCH #1 SMP PREEMPT Mon Feb 6 12:59:40 CET 2017 x86_64 GNU/Linux

Any help and directions would be appreciated

Cheers

OT: Just realized is more than 10 years I'm using arch smile

SOLVED: Sorry for bothering the amdgpu should be in intramfs , after this it boots. The wiki says " It is possible, however, to enable KMS during the initramfs stage" and I thought it means that it is not mandatory

Last edited by gasparov (2017-02-15 16:45:30)

Offline

Board footer

Powered by FluxBB