Attention is currently required from: Michał Żygowski, Christian Walter.
Hello Michał Żygowski,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/62493
to review the following change.
Change subject: drivers/pc80/tpm/tis.c: Use fixed TPM ACPI path
......................................................................
drivers/pc80/tpm/tis.c: Use fixed TPM ACPI path
Windows 11 expect the TPM to reside under \\_SB_.PCI0 in ACPI device
hierarchy, otherwise the TPM is not detected. Hardcode the path to
fix the issue
TEST=Boot Windows 11 on Clevo NV41MZ and see the TPm is detected
correctly
Signed-off-by: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Change-Id: If0b3136e3eb8eb1bb132132a5f3a7034bdd3b424
---
M src/drivers/pc80/tpm/tis.c
1 file changed, 2 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/62493/1
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index 455bcf9..cf46f76 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -779,12 +779,8 @@
#if CONFIG(HAVE_ACPI_TABLES)
static void lpc_tpm_fill_ssdt(const struct device *dev)
{
- const char *path = acpi_device_path(dev->bus->dev);
-
- if (!path) {
- path = "\\_SB_.PCI0.LPCB";
- printk(BIOS_DEBUG, "Using default TPM ACPI path: '%s'\n", path);
- }
+ /* Windows 11 requires the following path for TPM to be detected */
+ const char *path = "\\_SB_.PCI0";
/* Device */
acpigen_write_scope(path);
--
To view, visit https://review.coreboot.org/c/coreboot/+/62493
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If0b3136e3eb8eb1bb132132a5f3a7034bdd3b424
Gerrit-Change-Number: 62493
Gerrit-PatchSet: 1
Gerrit-Owner: Michał Kopeć <michal.kopec(a)3mdeb.com>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Attention: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-MessageType: newchange
Michał Kopeć has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62492 )
Change subject: soc/intel/tigerlake: Hide PMC and IOM devices
......................................................................
soc/intel/tigerlake: Hide PMC and IOM devices
Windows complains on missing drivers for these ACPI devices. Hide them
from OS as it doesn't influence the hardware operation. Linux can
still probe the drivers correctly.
TEST=Boot Windows 11 and see there are no devices with missing drivers.
Boot Ubuntu 20.04 and check that drivers corresponding to ACPI HIDs are
still probed.
Signed-off-by: Michał Kopeć <michal.kopec(a)3mdeb.com>
Change-Id: I6c30c08ab730749bddef7ea67c7470c1554bd572
---
M src/soc/intel/tigerlake/acpi/tcss.asl
M src/soc/intel/tigerlake/pmc.c
2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/62492/1
diff --git a/src/soc/intel/tigerlake/acpi/tcss.asl b/src/soc/intel/tigerlake/acpi/tcss.asl
index 1d58bfb..b349d54 100644
--- a/src/soc/intel/tigerlake/acpi/tcss.asl
+++ b/src/soc/intel/tigerlake/acpi/tcss.asl
@@ -336,6 +336,8 @@
Name (_CRS, ResourceTemplate () {
Memory32Fixed (ReadWrite, IOM_BASE_ADDRESS, IOM_BASE_SIZE)
})
+ /* Hide the device so that Windows will nto complain on missing driver */
+ Name (_STA, 0xB)
}
/*
diff --git a/src/soc/intel/tigerlake/pmc.c b/src/soc/intel/tigerlake/pmc.c
index 937943a..9ab28c2 100644
--- a/src/soc/intel/tigerlake/pmc.c
+++ b/src/soc/intel/tigerlake/pmc.c
@@ -106,6 +106,8 @@
acpigen_write_name_string("_HID", PMC_HID);
acpigen_write_name_string("_DDN", "Intel(R) Tiger Lake IPC Controller");
+ /* Hide the device so that Windows will nto complain on missing driver */
+ acpigen_write_STA(ACPI_STATUS_DEVICE_HIDDEN_ON);
/*
* Part of the PCH's reserved 32 MB MMIO range (0xFC800000 - 0xFE7FFFFF).
--
To view, visit https://review.coreboot.org/c/coreboot/+/62492
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6c30c08ab730749bddef7ea67c7470c1554bd572
Gerrit-Change-Number: 62492
Gerrit-PatchSet: 1
Gerrit-Owner: Michał Kopeć <michal.kopec(a)3mdeb.com>
Gerrit-CC: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-MessageType: newchange