Re: [RFC 0/9] PCIe Hotplug Slot Emulation driver

From: Derrick, Jonathan
Date: Mon Feb 10 2020 - 12:10:03 EST


On Mon, 2020-02-10 at 17:58 +0100, hch@xxxxxx wrote:
> On Mon, Feb 10, 2020 at 03:05:47PM +0000, Derrick, Jonathan wrote:
> > > The code seems like one giant hack to me. What is the real life
> > > use case for this? Another Intel chipset fuckup like vmd or the ahci
> > > remapping?
> > >
> > Exactly as the cover letter describes. An interposer being used on a
> > non-hotplug slot.
>
> That isn't a use a case, that iÑ a description of the implementation.
> Why would you want this code?
It allows non-hotplug slots to take advantage of the kernel's robust
hotplug ecosystem, if the platform configuration can tolerate the
events. This could also reduce BOM cost by eliminating some slot
controllers. Say you had something that only needed to be hotplugged
very infrequently, like RAIDed OS drives, versus something needing to
be hotplugged very frequently like data drives.


Granted it probably could be fit into pciehp_poll, but it seemed to
have a different objective (emulating slot)