Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp905281imm; Wed, 18 Jul 2018 12:49:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcCVaqiwD8mQig35wOw57tr1sWx5eVW4XilqTHPMLRGoZEn/hkH2v/c2ZtP8fLgDx9qgqvL X-Received: by 2002:a63:4857:: with SMTP id x23-v6mr7229664pgk.30.1531943353617; Wed, 18 Jul 2018 12:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531943353; cv=none; d=google.com; s=arc-20160816; b=s3MJPadqDJjmBJOvx2+EDn7LixoHUeFmF56R58E5ifs3bo4ezgHBODoTyZpDBQFhAC GmPXns9Gzr7rR93yj4iu4m1HabnzUEoe2Dyazup6IJF6sqDfJlkOOSGchVkgheX1+fS7 jpBAZbY8MEOsH2xrQK20ciitX9B1EwurG9ICnID5rSK0200gVkdfgG8xjo89ue7gdvrY 0tN8aZpS9j3QSb5+8A1CCtUNu1e/2pxWf5M68AeDidnantdf3QyATtUXnuP3AWYH3c5Q 2DGmhODLPJ8TX21BeSBxDJLTI53hVlRymFboX6Yg4Ve70Vz3XlkqOXHv4TeVxrR+qEDp 9Wfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature:arc-authentication-results; bh=dIl1cD3hkpMDxKIO/Mrpl2zBaZgsXiYSU0JYoBISJus=; b=MKkrGbuCdd7jpY8TlO1B+WyWrl1CXUPgXX13vG6hz75RvlnpIqR2PBTFH8JHJ0ljT9 +bPJonjsFQon/YRRGNlLbrUKItmXaFFs9zGmFT+F+zZ+Q8/OmWkJ0QaFxGFkaxse8lFb 8W4FQzFD/SExgTFYGWgsrsM7XQuD3he9n4ndwlCShsg92wfJ0W2791tBATvQHD/OMvAi /UDFExd8GWxK5ViWrLmJsHnqgugOs/rZ+Rj0kWoggKYwaMviSnViHoN/RRqsWlGE3YsG tm0/YroDp+gqcBh1Zcq8AXjQumudYSBxrjFV9GeVTRCio2NN6Z/ebWPxYPUENQF7qNI/ Kn/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h0CbnkeZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92-v6si4015522pli.518.2018.07.18.12.48.35; Wed, 18 Jul 2018 12:49:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=h0CbnkeZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730947AbeGRUYW (ORCPT + 99 others); Wed, 18 Jul 2018 16:24:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728912AbeGRUYV (ORCPT ); Wed, 18 Jul 2018 16:24:21 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE3C82084E; Wed, 18 Jul 2018 19:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531943099; bh=c10G4CsHwEp3HNS8snXQ8KYHQeIMXDd2fKdx878Sj7g=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=h0CbnkeZDSjGthpz+YC2i4CC1QtHzUgRtlJm/jLK5oJtmoxkMjcUBEZiI4R1NgiAU uEVVTnERrMs6elcORZA/v72HK1y1yOyDPxBz8t2Fw89L41HElxpRgbsrVC7iqLl+sC oMVKfs4iMc4R0/ULjsRedyXxt42i0oB62hD+IGxc= Subject: [PATCH v3 6/7] PCI/AER: Clear device status bits during ERR_COR handling From: Bjorn Helgaas To: Oza Pawandeep Cc: Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 18 Jul 2018 14:44:57 -0500 Message-ID: <153194309786.191586.2771045363400479470.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <153194245964.191586.14782253252654776509.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <153194245964.191586.14782253252654776509.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oza Pawandeep In case of correctable error, the Correctable Error Detected bit in the Device Status register is set. Clear it after handling the error. Signed-off-by: Oza Pawandeep Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/aer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c index dc67f52b002f..2accfd7a4c9d 100644 --- a/drivers/pci/pcie/aer.c +++ b/drivers/pci/pcie/aer.c @@ -827,6 +827,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_aer_clear_device_status(dev); } else if (info->severity == AER_NONFATAL) pcie_do_nonfatal_recovery(dev); else if (info->severity == AER_FATAL)