Re: acpiphp and pciehp not working together on Thinkpad X200s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, August 12, 2013 11:21:56 AM Bjorn Helgaas wrote:
> On Sun, Aug 11, 2013 at 3:36 PM, Rafael J. Wysocki <rjw@xxxxxxx> wrote:
> > On Sunday, August 11, 2013 11:18:48 PM Stefan Seyfried wrote:
> >> Hi Rafael,
> >>
> >> Am 11.08.2013 23:25, schrieb Rafael J. Wysocki:
> >> > On Sunday, August 11, 2013 10:13:42 AM Stefan Seyfried wrote:
> >>
> >> >>  kernel: pci 0000:03:00.0: PME# supported from D0 D3hot D3cold
> >> >>  kernel: pci 0000:00:1c.1: PCI bridge to [bus 03]
> >> >>  kernel: pci 0000:00:1c.1:   bridge window [mem 0xf2500000-0xf25fffff]
> >> >> -kernel: acpiphp: Slot [1] registered
> >> >>  kernel: pci 0000:00:1c.3: PCI bridge to [bus 05-0c]
> >> >>  kernel: pci 0000:00:1c.3:   bridge window [io  0x2000-0x2fff]
> >> >>  kernel: pci 0000:00:1c.3:   bridge window [mem 0xf0000000-0xf1ffffff]
> >>
> >> >>  kernel: pciehp 0000:00:1c.1:pcie04: HPC vendor_id 8086 device_id 2942 ss_vid 17aa ss_did 20f3
> >> >>  kernel: pciehp 0000:00:1c.1:pcie04: service driver pciehp loaded
> >> >>  kernel: pciehp 0000:00:1c.3:pcie04: HPC vendor_id 8086 device_id 2946 ss_vid 17aa ss_did 20f3
> >> >> -kernel: pciehp 0000:00:1c.3:pcie04: pci_hp_register failed with error -16
> >> >> -kernel: pciehp 0000:00:1c.3:pcie04: Slot already registered by another hotplug driver
> >> >> +kernel: pciehp 0000:00:1c.3:pcie04: service driver pciehp loaded
> >>
> >> >> Greg told me to report the issue here, so I'm doing that :-)
> >> >>
> >> >> If you need more information (would a complete dmesg of both cases
> >> >> be useful?), just let me know.
> >> >
> >> > Which kernel is that?
> >>
> >> That's 3.11rc4, openSUSE Kernel:HEAD repository.
> >
> > OK
> >
> > Please use the acpiphp.disable=1 workaround for how.  The problem is kind of
> > known and we'll address it some time in the future, but it is hard to say
> > when that's going to happen and this point.
> >
> > There's some ACPIPHP rework material queued up for 3.12 in linux-next, but
> > I doubt it'll make a difference on your machine.  Anyway, if you want to
> > try it, you can just pull the linux-next branch of my linux-pm.git tree
> > (to avoid pulling all of the other linux-next material in addition to it).
> 
> Thanks for the report, Stefan.  I opened
> https://bugzilla.kernel.org/show_bug.cgi?id=60736 so we don't forget
> about this.  If you could attach complete dmesg logs for both cases
> (working and failing) to that bugzilla, that would be great.  An
> acpidump might also be interesting, since the ACPI namespace
> determines what acpiphp does.
> 
> I suspect that we're being too aggressive about determining when we
> should use one or the other of acpiphp and pciehp.  We basically
> decide up front which one we expect the platform to use, and we only
> listen to signals from that one.  But I wonder if we should just
> prepare for signals from both.

I think we should.

Since both have to be built-in now, we can actually enforce certain ordering
between them.  I don't care which one goes first, but it should be consistent
between boots etc. IMO.

Now, regardless of which one goes first, the second one should just check if
the slot has already been registered and simply add itself to the existing slot
if so.

The removal may be a bit more trickier from what I can say.

Thanks,
Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux