Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1209344

[PATCH v2 2/2] acpi, apei, bert: Clear error status at the end of error handling

From fu.wei@linaro.org
Newsgroups linux.kernel
Subject [PATCH v2 2/2] acpi, apei, bert: Clear error status at the end of error handling
Date 2015-08-18 18:50 +0200
Message-ID <pYSfg-3x6-1@gated-at.bofh.it> (permalink)
References <pqlF8-659-23@gated-at.bofh.it> <pYSfg-3x6-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Tomasz Nowicki <tomasz.nowicki@linaro.org>

Once error log is printed out clear error status so it would not be
print during next boot again.

Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Tested-by: Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
---
 drivers/acpi/apei/bert.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c
index 1426227..dc2b79f 100644
--- a/drivers/acpi/apei/bert.c
+++ b/drivers/acpi/apei/bert.c
@@ -65,6 +65,9 @@ static void __init bert_print_all(struct acpi_hest_generic_status *region,
 		}
 
 		cper_estatus_print(KERN_INFO HW_ERR, estatus);
+
+		/* Clear error status */
+		estatus->block_status = 0;
 next:
 		estatus = (void *)estatus + estatus_len;
 		remain -= estatus_len;
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 2/2] acpi, apei, bert: Clear error status at the end of error handling fu.wei@linaro.org - 2015-08-18 18:50 +0200

csiph-web