Skip to contentSkip to conversation

Backport of ACPI GPE fixes for v4.13

DISCUSSION Mika Westerberg 2 participants 2 messages Nov 6, 2017 – Nov 10, 2017 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi,

Currently there is an issue in v4.13 where booting system with Thunderbolt device connected causes problems. Typically the device will not be tunneled properly and will not function as expected.

The issue has been root caused to the way Linux initializes and handles ACPI GPEs (General Purpose Events). In summary we enable them too late and that results the PCI core finds upstream PCIe port of the Thunderbolt host controller too early (it is not fully configured by the BIOS SMI handler yet).

This has been fixed in mainline starting from v4.14-rc1 by the following commits:

ecc1165b8b74 ("ACPICA: Dispatch active GPEs at init time") 1312b7e0caca ("ACPICA: Make it possible to enable runtime GPEs earlier") eb7f43c4adb4 ("ACPI / scan: Enable GPEs before scanning the namespace")

In order to get Thunderbolt working even when there is a device connected during boot, can the above 3 commits be included in stable for v4.13?

Thanks in advance!

#1 lore raw
Quoted 15 lines · Mika Westerberg

Hi,

Currently there is an issue in v4.13 where booting system with Thunderbolt device connected causes problems. Typically the device will not be tunneled properly and will not function as expected.

The issue has been root caused to the way Linux initializes and handles ACPI GPEs (General Purpose Events). In summary we enable them too late and that results the PCI core finds upstream PCIe port of the Thunderbolt host controller too early (it is not fully configured by the BIOS SMI handler yet).

This has been fixed in mainline starting from v4.14-rc1 by the following commits:

Quoted 7 lines

ecc1165b8b74 ("ACPICA: Dispatch active GPEs at init time") 1312b7e0caca ("ACPICA: Make it possible to enable runtime GPEs earlier") eb7f43c4adb4 ("ACPI / scan: Enable GPEs before scanning the namespace")

In order to get Thunderbolt working even when there is a device connected during boot, can the above 3 commits be included in stable for v4.13?

Now all queued up, thanks.

greg k-h