mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Regression in 3.10.80 vs. 3.10.79
@ 2015-06-09 23:43 Roland Dreier
  2015-06-09 23:51 ` Roland Dreier
  0 siblings, 1 reply; 12+ messages in thread
From: Roland Dreier @ 2015-06-09 23:43 UTC (permalink / raw)
  To: LKML, Rafael J. Wysocki, George McCollister

Hi, I recently updated from 3.10.79 to 3.10.80, and my system wouldn't
boot any more.  I tracked this down to commit 92c934b10ec3 ("ACPI /
init: Fix the ordering of acpi_reserve_resources()").  With that
commit reverted, my system is OK again.

What happens is that ahci fails to initialize because
pcim_iomap_regions_request_all() fails with EBUSY, due to a resource
conflict on the first IO region of the ahci device.  Since my root
device is on ahci, that's the end of that.  I'm sure this is due to a
BIOS / ACPI table bug on my particular platform, but that's scant
comfort when the system won't boot :)

I patched 3.10.80 so that ahci continues to initialize after the
EBUSY, and relevant parts of the kernel log seem to be:

[    3.836643,26] system 00:06: [io  0x0400-0x047f] could not be reserved
...
[    3.844112,26] pci 0000:00:1f.2: BAR 0: assigned [io  0x0410-0x0417]
...
[    6.020040,00] ahci 0000:00:1f.2: BAR 0: can't reserve [io  0x0410-0x0417]

and /proc/ioports shows

    0410-0415 : ACPI CPU throttle

So if I'm understanding properly, for some reason we discover but fail
to reserve the region with the ACPI resources, then PCI decides to
assign ahci IO ports into that range, then ACPI loads and reserves
0x0410-0x0415, and then ahci fails to load.

If I fully revert the patch, then I see

[    3.853857,08] system 00:06: [io  0x0400-0x047f] has been reserved
...
[    3.861806,08] pci 0000:00:1f.2: BAR 0: assigned [io  0x0820-0x0827]

We're able to reserve the range, and then PCI assigns ahci into a
non-conflicting range.

I understand that the change here fixed another regression, but I'm
wondering if there's a way to make everyone happy here?  I can provide
debugging info from my system as required...

Thanks,
  Roland

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-06-17 21:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-09 23:43 Regression in 3.10.80 vs. 3.10.79 Roland Dreier
2015-06-09 23:51 ` Roland Dreier
2015-06-10 23:23   ` Rafael J. Wysocki
2015-06-11 19:01     ` Roland Dreier
2015-06-11 20:50       ` Rafael J. Wysocki
2015-06-12 15:01         ` Roland Dreier
2015-06-13  2:52           ` Rafael J. Wysocki
2015-06-13 16:56             ` Roland Dreier
2015-06-15 14:56               ` Roland Dreier
2015-06-15 23:00                 ` Rafael J. Wysocki
2015-06-17 12:42                   ` Rafael J. Wysocki
2015-06-17 21:53                     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome