On 1/23/19 1:07 PM, Lukas Wunner wrote: > > [EXTERNAL EMAIL] > > On Wed, Jan 23, 2019 at 07:54:20PM +0100, Lukas Wunner wrote: >> So I don't see a perfect solution. What device are we talking about >> anyway? 400 ms is a *long* time. > > Also, how exactly does this issue manifest itself: Is it just an > annoyance that the slot is brought up/down/up or does it not work > at all? nvme issue aside, the device is removed. Then, a few seconds later, we see Link Up and Card Present events, but no pciehp_isr() invocation. I think it all happens in one pciehp_handle_presence_or_link_change(), so pciehp_ist() is held up for a few seconds -- but that's a matter for a different thread. Alex. [ 785.007640] nvme 0000:b1:00.0: enabling device (0000 -> 0002) [ 785.099567] pcieport 0000:b0:04.0: ZOPA: Status(0x00000040): presence-detected [ 785.099574] pcieport 0000:b0:04.0: ZOPA: Events(0x00000008): presence-detect-changed [ 785.099580] pcieport 0000:b0:04.0: ZOPA: Queued up(0x00000008): presence-detect-changed [ 785.099582] pcieport 0000:b0:04.0: ZOPA: pciehp_isr: exiting [ 785.099611] pcieport 0000:b0:04.0: ZOPA: pciehp_ist: Entered with events(0x00000008): presence-detect-changed [ 785.099615] pciehp 0000:b0:04.0:pcie204: ZOPA: pciehp_handle_presence_or_link_change: locked &ctrl->state_lock [ 785.099618] pciehp 0000:b0:04.0:pcie204: ZOPA: pciehp_handle_presence_or_link_change unlocked (POWEROFF) [ 785.099621] pciehp 0000:b0:04.0:pcie204: Slot(178): Card not present [ 788.756953] nvme nvme4: failed to mark controller CONNECTING [ 788.756958] nvme nvme4: Removing after probe failure status: 0 [ 788.763317] pciehp 0000:b0:04.0:pcie204: ZOPA: pciehp_handle_presence_or_link_change unlocked (POWERON) [ 788.763322] pciehp 0000:b0:04.0:pcie204: Slot(178): Card present [ 788.763349] pciehp 0000:b0:04.0:pcie204: Slot(178): Link Up [ 788.892432] pci 0000:b1:00.0: [8086:0a55] type 00 class 0x010802 [ 788.892474] pci 0000:b1:00.0: reg 0x10: [mem 0xe1500000-0xe1503fff 64bit]