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: 48073 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E56C20553 for ; Thu, 7 May 2015 02:03:45 +0000 (UTC) Received: by labgx2 with SMTP id gx2sf8762627lab.1 for ; Wed, 06 May 2015 19:03:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Oo8J1L9083VCQ38avXeOVeewRHWavPJ02USWAvsC7bM=; b=JpF5sbdEXQCjs8WSb9c4iSn1ZQ8tQzrPRAFTvnh1s3djFxUo+Rpy3VLLq/LLyfCKso UP85GUuO925B/PT4Nf3hj5IdR4+V+vmpWSQ5qGdljj88n22sNIqzjABo7kR7jMY2/qWP bpMaqv0f7pGcjJIN8uxid26dlqJfxoFwUGZqjii5ZjInksdUGHqH/XId4KIkERLPSaf1 /cXMNlWu5yrIF0ED8mrp4VPMMJtFqxUOrB1n05Yhf2TCNAkoqsFGLVtRL0wpOcqKtgHq 5wUnKjMb9LNg7ysLgB1dnC1Em2JD5i23V9irGyKHbEgtsQ0FLw0es3DZluYZAiieGPGf xczQ== X-Gm-Message-State: ALoCoQkCHc7+/qp2JaeK8jLv8eEycDIH+/XSSUyHbn6vkLXQtmcVnL7qqCdEDIh9NTctRs2U5fPz X-Received: by 10.180.11.101 with SMTP id p5mr738323wib.3.1430964224055; Wed, 06 May 2015 19:03:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.38 with SMTP id jt6ls150536lab.101.gmail; Wed, 06 May 2015 19:03:43 -0700 (PDT) X-Received: by 10.112.139.1 with SMTP id qu1mr1213169lbb.8.1430964223683; Wed, 06 May 2015 19:03:43 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id ci12si345009lad.37.2015.05.06.19.03.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 19:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labbd9 with SMTP id bd9so20334835lab.2 for ; Wed, 06 May 2015 19:03:43 -0700 (PDT) X-Received: by 10.112.204.104 with SMTP id kx8mr1169950lbc.72.1430964223368; Wed, 06 May 2015 19:03:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp3173096lbt; Wed, 6 May 2015 19:03:42 -0700 (PDT) X-Received: by 10.66.117.233 with SMTP id kh9mr2693426pab.103.1430964221644; Wed, 06 May 2015 19:03:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gi6si702412pbd.142.2015.05.06.19.03.40; Wed, 06 May 2015 19:03:41 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751292AbbEGCDk (ORCPT + 7 others); 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: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: gong.chen@linux.intel.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;