Re: PCIe Hotplug: NFG unless I boot with card already inserted.

Kristen Carlson Accardi
2007-10-16T21:14:38Z

On Tue, 16 Oct 2007 16:39:25 -0400
Mark Lord <lkml@rtr.ca> wrote:

> Kristen Carlson Accardi wrote:
> >...
> > I tried to reproduce this on a Lenovo T61, which does have proper firmware
> > support for _OSC, and also has been validated, and the driver which is
> > in 2.6.23-git8 seems to work fine, even across suspend resume. I suspect
> > that your system just doesn't support pcie hotplug properly.
>
> No, the hardware seems to work perfectly.
>
> We just have a software issue. We *know* it's only software
> because rmmod+modprobe fixes things, without any hardware intervention.

This reinitializes the controller, which is probably why things work
better for you (which does of course touch hardware...).

>
> I believe the code is leaning too heavily on the BIOS for stuff,
> and like lots of other parts of the kernel we'll need an alternate
> strategy for when things aren't "perfect".

the pitfall for forcing pciehp when the BIOS hasn't provided OSC is that
you don't know for sure that you really have gained control of hot plug
operation properly. You can obviously try it, using the provide forcing
option as you have done, but the behavior is not predictable.