FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-v4.5-next commit 09b7f22ba7bc2c45f7b2b1588c17d5264dc571f4 ("resources: Make allocate_resource() return best fit resource") <7>[ 27.129164] pcieport 0000:00:1c.0: BAR 13: [io 0x0000-0x0fff] get_res_add_align min_align 0x1000 <7>[ 27.129166] pcieport 0000:00:1c.0: BAR 15: [mem 0x00000000-0xffffffffffffffff 64bit pref] get_res_add_size add_size 0x200000 <7>[ 27.129168] pcieport 0000:00:1c.0: BAR 15: [mem 0x00000000-0x001fffff 64bit pref] get_res_add_align min_align 0x100000 <3>[ 27.129170] BUG: sleeping function called from invalid context at mm/slub.c:1287 <3>[ 27.129171] in_atomic(): 1, irqs_disabled(): 0, pid: 259, name: kworker/u16:5 <4>[ 27.129173] CPU: 1 PID: 259 Comm: kworker/u16:5 Not tainted 4.4.0-rc4-00140-g09b7f22 #1 <4>[ 27.129174] Hardware name: Intel Corporation Broadwell Client platform/WhiteTip Mountain 1, BIOS BDW-E1R1.86C.0120.R00.1504020241 04/02/2015 <4>[ 27.129180] Workqueue: kacpi_hotplug acpi_hotplug_work_fn <4>[ 27.129182] 0000000000000507 ffff880136da78e8 ffffffff81410ee2 ffffffff81bc0188 <4>[ 27.129184] ffff880136da78f8 ffffffff8109d988 ffff880136da7920 ffffffff8109da22 <4>[ 27.129185] 00000000024080c0 00000000024080c0 ffffffff8107f523 ffff880136da7968 <4>[ 27.129186] Call Trace: <4>[ 27.129190] [] dump_stack+0x4b/0x69 <4>[ 27.129192] [] ___might_sleep+0xe8/0x130 <4>[ 27.129194] [] __might_sleep+0x52/0xb0 <4>[ 27.129196] [] ? allocate_resource+0x133/0x250 <4>[ 27.129199] [] kmem_cache_alloc_trace+0x190/0x200 <4>[ 27.129200] [] allocate_resource+0x133/0x250 <4>[ 27.129203] [] ? pcibios_fwaddrmap_lookup+0x60/0x60 <4>[ 27.129205] [] ? vprintk_emit+0x341/0x540 <4>[ 27.129208] [] pci_bus_alloc_from_region+0x77/0x190 <4>[ 27.129209] [] ? pcibios_fwaddrmap_lookup+0x60/0x60 <4>[ 27.129211] [] pci_bus_alloc_resource+0xba/0xe0 <4>[ 27.129213] [] ? pcibios_fwaddrmap_lookup+0x60/0x60 <4>[ 27.129216] [] _pci_assign_resource+0x189/0x1e0 <4>[ 27.129218] [] ? pcibios_fwaddrmap_lookup+0x60/0x60 <4>[ 27.129220] [] pci_assign_resource+0xbb/0x2c0 <4>[ 27.129222] [] assign_requested_resources_sorted+0x78/0xe0 <4>[ 27.129224] [] __assign_resources_sorted+0x67e/0x850 <4>[ 27.129227] [] __pci_bus_assign_resources+0x67/0x1e0 <4>[ 27.129229] [] enable_slot+0x153/0x2d0 <4>[ 27.129231] [] ? __might_sleep+0x52/0xb0 <4>[ 27.129232] [] ? __might_sleep+0x52/0xb0 <4>[ 27.129234] [] acpiphp_hotplug_notify+0x195/0x210 <4>[ 27.129244] [] ? acpiphp_post_dock_fixup+0xc0/0xc0 <4>[ 27.129246] [] acpi_device_hotplug+0x3f8/0x440 <4>[ 27.129249] [] acpi_hotplug_work_fn+0x1e/0x29 <4>[ 27.129251] [] process_one_work+0x157/0x420 <4>[ 27.129253] [] worker_thread+0x69/0x4a0 <4>[ 27.129255] [] ? rescuer_thread+0x380/0x380 <4>[ 27.129257] [] ? rescuer_thread+0x380/0x380 <4>[ 27.129259] [] kthread+0xef/0x110 <4>[ 27.129260] [] ? kthread_park+0x60/0x60 <4>[ 27.129263] [] ret_from_fork+0x3f/0x70 <4>[ 27.129264] [] ? kthread_park+0x60/0x60 <6>[ 27.129271] pcieport 0000:00:1c.0: BAR 15: assigned [mem 0xd1200000-0xd13fffff 64bit pref] <6>[ 27.129276] pcieport 0000:00:1c.0: BAR 13: assigned [io 0x2000-0x2fff] <7>[ 27.129808] pci_bus 0000:01: Allocating resources To reproduce: git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git cd lkp-tests bin/lkp install job.yaml # job file is attached in this email bin/lkp run job.yaml Thanks, Ying Huang