Bug 208135
Summary: | AMDGPU sleep with preemption disabled | ||
---|---|---|---|
Product: | Drivers | Reporter: | yshuiv7 |
Component: | Video(DRI - non Intel) | Assignee: | drivers_video-dri |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.7.2 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
yshuiv7
2020-06-11 03:08:07 UTC
And one more: [ 2.075377] BUG: sleeping function called from invalid context at mm/slab.h:567 [ 2.075391] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 [ 2.075406] 1 lock held by swapper/0/1: [ 2.075414] #0: ffff9dc3472fe228 (&dev->mutex){....}-{3:3}, at: device_driver_attach+0x48/0xc0 [ 2.075435] Preemption disabled at: [ 2.075437] [<ffffffff86a7ff2e>] kernel_fpu_begin+0xe/0x70 [ 2.075456] CPU: 9 PID: 1 Comm: swapper/0 Tainted: G T 5.7.2-local+ #16 [ 2.075471] Hardware name: System manufacturer System Product Name/ROG STRIX X470-F GAMING, BIOS 5406 11/13/2019 [ 2.075489] Call Trace: [ 2.075497] show_stack+0x3e/0x40 [ 2.075507] dump_stack+0x7a/0xaa [ 2.075516] ___might_sleep.cold+0xfa/0x10b [ 2.075528] __might_sleep+0x50/0x90 [ 2.075538] kmem_cache_alloc_trace+0x1b1/0x200 [ 2.075549] ? dcn20_clock_source_create+0x42/0xb0 [ 2.075560] dcn20_clock_source_create+0x42/0xb0 [ 2.075572] dcn20_resource_construct+0x17b/0xb00 [ 2.075583] ? rcu_read_lock_sched_held+0x5a/0xa0 [ 2.075594] ? trace_kmalloc+0x105/0x130 [ 2.075605] ? kmem_cache_alloc_trace+0xec/0x200 [ 2.075617] dcn20_create_resource_pool+0x47/0x70 [ 2.075628] dc_create_resource_pool+0x142/0x170 [ 2.075639] ? dal_gpio_service_create+0x98/0x120 [ 2.075650] dc_construct+0x1b1/0x360 [ 2.075660] dc_create+0x48/0x120 [ 2.075669] amdgpu_dm_init.isra.0+0x155/0x1b0 [ 2.075685] dm_hw_init+0xe/0x20 [ 2.075695] amdgpu_device_ip_init+0x2b5/0x33e [ 2.075706] amdgpu_device_init.cold+0x74f/0x9f3 [ 2.075717] amdgpu_driver_load_kms+0x51/0x180 [ 2.075728] amdgpu_pci_probe+0xbb/0x140 [ 2.075739] pci_device_probe+0xf2/0x160 [ 2.075750] really_probe+0xf5/0x420 [ 2.075760] driver_probe_device+0xc2/0x110 [ 2.075770] device_driver_attach+0xb9/0xc0 [ 2.075781] __driver_attach+0x94/0x150 [ 2.075791] ? device_driver_attach+0xc0/0xc0 [ 2.075801] bus_for_each_dev+0x6b/0xa0 [ 2.075811] driver_attach+0x19/0x20 [ 2.075820] bus_add_driver+0x149/0x200 [ 2.075830] driver_register+0x8c/0xe0 [ 2.075840] __pci_register_driver+0x6b/0x80 [ 2.075850] amdgpu_init+0x9c/0xbc [ 2.075859] ? drm_sched_fence_slab_init+0x7e/0x7e [ 2.075870] do_one_initcall+0x5c/0x330 [ 2.075880] ? rcu_read_lock_sched_held+0x5a/0xa0 [ 2.075893] do_initcalls+0x104/0x162 [ 2.075903] kernel_init_freeable+0x193/0x235 [ 2.075913] ? rest_init+0x241/0x241 [ 2.075923] kernel_init+0x9/0xff [ 2.075931] ret_from_fork+0x27/0x50 And another one: [ 2.071364] BUG: sleeping function called from invalid context at mm/slab.h:567 [ 2.071379] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 [ 2.071393] 1 lock held by swapper/0/1: [ 2.071402] #0: ffff953e072b7228 (&dev->mutex){....}-{3:3}, at: device_driver_attach+0x48/0xc0 [ 2.071422] Preemption disabled at: [ 2.071424] [<ffffffffb8a7ff2e>] kernel_fpu_begin+0xe/0x70 [ 2.071443] CPU: 18 PID: 1 Comm: swapper/0 Tainted: G T 5.7.2-local+ #17 [ 2.071458] Hardware name: System manufacturer System Product Name/ROG STRIX X470-F GAMING, BIOS 5406 11/13/2019 [ 2.071476] Call Trace: [ 2.071485] show_stack+0x3e/0x40 [ 2.071494] dump_stack+0x7a/0xaa [ 2.071504] ___might_sleep.cold+0xfa/0x10b [ 2.071515] __might_sleep+0x50/0x90 [ 2.071526] kmem_cache_alloc_trace+0x1b1/0x200 [ 2.071536] ? dccg2_create+0x3a/0x70 [ 2.071546] dccg2_create+0x3a/0x70 [ 2.071556] dcn20_resource_construct+0x2e2/0xb00 [ 2.071567] ? rcu_read_lock_sched_held+0x5a/0xa0 [ 2.071578] ? trace_kmalloc+0x105/0x130 [ 2.071589] ? kmem_cache_alloc_trace+0xec/0x200 [ 2.071600] dcn20_create_resource_pool+0x47/0x70 [ 2.071612] dc_create_resource_pool+0x142/0x170 [ 2.071622] ? dal_gpio_service_create+0x98/0x120 [ 2.071633] dc_construct+0x1b1/0x360 [ 2.071644] dc_create+0x48/0x120 [ 2.071653] amdgpu_dm_init.isra.0+0x155/0x1b0 [ 2.071669] dm_hw_init+0xe/0x20 [ 2.071678] amdgpu_device_ip_init+0x2b5/0x33e [ 2.071690] amdgpu_device_init.cold+0x74f/0x9f3 [ 2.071701] amdgpu_driver_load_kms+0x51/0x180 [ 2.071711] amdgpu_pci_probe+0xbb/0x140 [ 2.071722] pci_device_probe+0xf2/0x160 [ 2.071733] really_probe+0xf5/0x420 [ 2.071743] driver_probe_device+0xc2/0x110 [ 2.071754] device_driver_attach+0xb9/0xc0 [ 2.071764] __driver_attach+0x94/0x150 [ 2.071774] ? device_driver_attach+0xc0/0xc0 [ 2.071784] bus_for_each_dev+0x6b/0xa0 [ 2.071794] driver_attach+0x19/0x20 [ 2.071803] bus_add_driver+0x149/0x200 [ 2.071813] driver_register+0x8c/0xe0 [ 2.071823] __pci_register_driver+0x6b/0x80 [ 2.071834] amdgpu_init+0x9c/0xbc [ 2.071842] ? drm_sched_fence_slab_init+0x7e/0x7e [ 2.071853] do_one_initcall+0x5c/0x330 [ 2.071863] ? rcu_read_lock_sched_held+0x5a/0xa0 [ 2.071876] do_initcalls+0x104/0x162 [ 2.071886] kernel_init_freeable+0x193/0x235 [ 2.071897] ? rest_init+0x241/0x241 [ 2.071906] kernel_init+0x9/0xff [ 2.071914] ret_from_fork+0x27/0x50 |