* [PATCH] ACPI, APEI, EINJ: Add missed ACPI5 support error trigger table
@ 2012-11-30 9:47 Chen Gong
0 siblings, 0 replies; only message in thread
From: Chen Gong @ 2012-11-30 9:47 UTC (permalink / raw)
To: tony.luck; +Cc: ying.huang, linux-acpi, Chen Gong
To handle error trigger table correctly, memory region must be
removed from request region. We ever have a patch to do this
work (commit id: b4e008dc5) but at that time ACPI5 is unrevealed
so this option is missed. When using EINJ table on an ACPI5
enabled machine, we get following error:
APEI: Can not request [mem 0x526b80000-0x526b80007] for APEI EINJ
Trigger registers
This patch fixes this issue.
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
---
drivers/acpi/apei/einj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 8e17936..8d457b5 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -367,7 +367,7 @@ static int __einj_error_trigger(u64 trigger_paddr, u32 type,
* This will cause resource conflict with regular memory. So
* remove it from trigger table resources.
*/
- if (param_extension && (type & 0x0038) && param2) {
+ if ((param_extension || acpi5) && (type & 0x0038) && param2) {
struct apei_resources addr_resources;
apei_resources_init(&addr_resources);
trigger_param_region = einj_get_trigger_parameter_region(
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-30 9:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30 9:47 [PATCH] ACPI, APEI, EINJ: Add missed ACPI5 support error trigger table Chen Gong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).