Mario Scheithauer has uploaded this change for review. ( https://review.coreboot.org/22552
Change subject: arch/x86: Write ACPI DBG2 table only if the device has been enabled
......................................................................
arch/x86: Write ACPI DBG2 table only if the device has been enabled
The commit https://review.coreboot.org/#/c/22452/ causes a crash on the
mainboard mc_apl1. On this mainboard all internal SOC UARTs in the
devicetree are switched off. As a result, no resources are allocated to
the UARTs. The function find_resource() expects an existing resource.
Otherwise, the CPU will stop. It should therefore not only be queried
whether a device is present, but also whether it has been enabled.
Change-Id: I56ce44ae0cf77916fcb640f79fb8944fe33177cd
Signed-off-by: Mario Scheithauer <mario.scheithauer(a)siemens.com>
---
M src/arch/x86/acpi.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/22552/1
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index 56f6408..5a29ac1 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -8,7 +8,7 @@
* Copyright (C) 2005-2009 coresystems GmbH
* Copyright (C) 2015 Timothy Pearson <tpearson(a)raptorengineeringinc.com>,
* Raptor Engineering
- * Copyright (C) 2016 Siemens AG
+ * Copyright (C) 2016-2017 Siemens AG
*
* ACPI FADT, FACS, and DSDT table support added by
* Nick Barker <nick.barker9(a)btinternet.com>, and those portions
@@ -734,6 +734,10 @@
printk(BIOS_ERR, "%s: Device not found\n", __func__);
return current;
}
+ if (!dev->enabled) {
+ printk(BIOS_ERR, "%s: Device not enabled\n", __func__);
+ return current;
+ }
res = find_resource(dev, PCI_BASE_ADDRESS_0);
if (!res) {
printk(BIOS_ERR, "%s: Unable to find resource for %s\n",
--
To view, visit https://review.coreboot.org/22552
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I56ce44ae0cf77916fcb640f79fb8944fe33177cd
Gerrit-Change-Number: 22552
Gerrit-PatchSet: 1
Gerrit-Owner: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Pratikkumar V Prajapati has posted comments on this change. ( https://review.coreboot.org/22549 )
Change subject: soc/intel/cannonlake: Invoke pmc and hard reset only if CSE fails to reset
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/22549/1/src/soc/intel/cannonlake/reset.c
File src/soc/intel/cannonlake/reset.c:
https://review.coreboot.org/#/c/22549/1/src/soc/intel/cannonlake/reset.c@83
PS1, Line 83: if(!send_heci_reset_message())
: return;
> We dont want to return from here if heci reset fails. we would try pmc and
Aah.. i see what you mean, but even if heci reset works then also there is no point to return.
--
To view, visit https://review.coreboot.org/22549
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5bb12554e5745d7704a1b684a3a51034bb35f787
Gerrit-Change-Number: 22549
Gerrit-PatchSet: 1
Gerrit-Owner: John Zhao <john.zhao(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: Lijian Zhao <lijian.zhao(a)intel.com>
Gerrit-Reviewer: Pratikkumar Prajapati <pratikkumar.v.prajapati(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Pratikkumar V Prajapati <pratikkumar.v.prajapati(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Tue, 21 Nov 2017 04:33:25 +0000
Gerrit-HasComments: Yes