Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp650437imm; Fri, 22 Jun 2018 03:00:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKE5R8JIdynS2LRavN+6JyrBUlV5rClWXY+MeKZAXl+/PxvRQvP94ymGZKjXm7YONwJSA5B X-Received: by 2002:a62:f948:: with SMTP id g8-v6mr985591pfm.107.1529661601177; Fri, 22 Jun 2018 03:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529661601; cv=none; d=google.com; s=arc-20160816; b=uZ2XueZlztWSpF4rv5JQ5SN0KT+gaeDbWofeuARH1s3LUyHs93ztb9MUGfg8V/Nk2v 5NRkBrJ3syHrJmyjP7F/cuGm4ArPLj2Ud1KA36HeANhAEQmkeNaj62gJ8zXWT+JTmwVO k7nKy5tRp+esrY4MqLClkMxBjLVsZZhSmI1keKv44Qp0xaryTe7zhJRsoThKWTI9x6Jj 8cHdhKE8bbI+rqTXQD5s+D44PeG7w2Y+2AGuKup+gZc1NmXVRhyW4FxXTtmu+jEFuRbc 2THjZBWrRKAswJYQrE7bK8lMM4rpoqhp1mPxSVN2oIt+hELawGE3MedQazqw9qPq0bnR gZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Wm3L+lJJ5tUv/Q3/0xrFJR1SBggvYz8gYBrxiYaOsxQ=; b=WkOzXLPGhLoly+il2xC87SyJkyF+nd5QXQblWa/E2ue1BRpBbKDN7ea24G7yqINdfX gQSLeKW3F+YP4BLtfj4LvsK4vMR8esE3DBO96HrK6IKJ3m6S4kmp7fdM5jjTjpSozXy+ 32K0bNFXJcn6PjKFCdyUCN9C6wC89mZTY7QKOxJKUYBNAfFzrgpiEH4ncSo2GQ5ehPYy z5vi7gLKt2LakBm7coEnBng1m1aCJYGofPtUTLnyiawjdQBIPqzaKXhrhzodaQNfme4q 5gcZmY+vFJdBxjutjnKWBnmFK9BrukEAboer/ZPgMm/45PedjoBX6AHeJnzdfAHrqcag BbsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1-v6si6963345pld.11.2018.06.22.02.59.46; Fri, 22 Jun 2018 03:00:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933473AbeFVJ7B (ORCPT + 99 others); Fri, 22 Jun 2018 05:59:01 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:39608 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbeFVJ6V (ORCPT ); Fri, 22 Jun 2018 05:58:21 -0400 X-IronPort-AV: E=Sophos;i="5.51,256,1526367600"; d="scan'208";a="5079202" Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 22 Jun 2018 02:58:21 -0700 Received: from westreach.qualcomm.com ([10.228.196.125]) by ironmsg02-sd.qualcomm.com with ESMTP; 22 Jun 2018 02:58:19 -0700 Received: by westreach.qualcomm.com (Postfix, from userid 467151) id 487741F31; Fri, 22 Jun 2018 05:58:18 -0400 (EDT) From: Oza Pawandeep To: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Cc: Oza Pawandeep Subject: [PATCH v2 5/6] PCI/AER: Fix correctable status bits clearing in device register Date: Fri, 22 Jun 2018 05:58:13 -0400 Message-Id: <1529661494-20936-6-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529661494-20936-1-git-send-email-poza@codeaurora.org> References: <1529661494-20936-1-git-send-email-poza@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case of correctable error Device Status Register sets Correctable Error Detected, which should be cleared after handling the error Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index d2d6868..a42b071 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -818,6 +818,7 @@ static void handle_error_source(struct pci_dev *dev, struct aer_err_info *info) if (pos) pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, info->status); + pci_cleanup_aer_error_device_status(dev); } else if (info->severity == AER_NONFATAL) pcie_do_nonfatal_recovery(dev); else if (info->severity == AER_FATAL) -- 2.7.4