From patchwork Thu May 7 14:57:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gong X-Patchwork-Id: 6353201 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 585269F32E for ; Thu, 7 May 2015 02:03:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B4A020389 for ; Thu, 7 May 2015 02:03:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6C40203A0 for ; Thu, 7 May 2015 02:03:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751292AbbEGCDk (ORCPT ); Wed, 6 May 2015 22:03:40 -0400 Received: from mga09.intel.com ([134.134.136.24]:32261 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbbEGCDi (ORCPT ); Wed, 6 May 2015 22:03:38 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 06 May 2015 19:03:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,382,1427785200"; d="scan'208";a="567512099" Received: from gchen-sby.bj.intel.com (HELO localhost) ([10.238.158.211]) by orsmga003.jf.intel.com with ESMTP; 06 May 2015 19:03:36 -0700 From: "Chen, Gong" To: linux-acpi@vger.kernel.org Cc: Tomasz Nowicki , "Chen, Gong" , Tony Luck Subject: [PATCH 2/2] acpi, apei, bert: Clear error status at the end of error handling Date: Thu, 7 May 2015 10:57:31 -0400 Message-Id: <1431010651-23117-3-git-send-email-gong.chen@linux.intel.com> X-Mailer: git-send-email 2.3.2 In-Reply-To: <1431010651-23117-1-git-send-email-gong.chen@linux.intel.com> References: <1431010651-23117-1-git-send-email-gong.chen@linux.intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_12_24, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tomasz Nowicki Once error log is printed out clear error status so it would not be print during next boot again. Signed-off-by: Tomasz Nowicki Signed-off-by: Chen, Gong Tested-by: Jonathan (Zhixiong) Zhang Cc: Tony Luck --- 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 c35a748a2be5..3e608e8f2dd7 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, first = 0; } cper_estatus_print(KERN_INFO HW_ERR, estatus); + + /* Clear error status */ + estatus->block_status = 0; next: estatus = (void *)estatus + estatus_len; remain -= estatus_len;