Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3014190pxu; Sat, 10 Oct 2020 16:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCBFJKfcb0qHcrazgVoWOye7TTNn5Y5OjNi3n/v4/Os8kwZ40DqQYzF5IQYO6p4oBAkSnN X-Received: by 2002:a17:906:dc9:: with SMTP id p9mr21260527eji.403.1602371308479; Sat, 10 Oct 2020 16:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602371308; cv=none; d=google.com; s=arc-20160816; b=aX6hVGSid5iR5L/bWmrkY4nMYPovb+OSY6m1MNRS42oXyRH0BIwL/bNNAe3tAb0WBR rV95z5LYdyidfzFZbPwaZUCMRJIziWEvEdEA1SYhhPFISQwn47kQ5LzbOP9z/Un5UbxG SCEOTP4bs3C81j3BJ9SCbv2eKEMhNAIozCgUI7MFPIf7MzOY34hz2WdlEnLO287IRCul yjSphruHrIQyEkcSnUIyzbymtoDk4C1G545dxqgkqT+YyvCeMzXIfO90VDg2K7TPAHGW te3NuWFQoJDlwmZc0teU7PoDNKHtIzoXkwdGA9AuMUDd+dJH2PUaZctZzgF2KFOSwDpT LFng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ECq6xELVDsr8lYsu7huKMW66NXHdSUrpUkYwuYZ8tGo=; b=MtpBVYwDZaayrShTfceh25xInqRECZSwdvLoiBlPseZ0Te11OXnryAaTkWepPpk70e QB7SZUasBSiL36f91WVtLVLb9OmOspZkFjLKp9CZiI6f8u3g56iOV0St0ePE5jRLf7wh Vk8B7U3pMYwPWVBiPZwb2EhGr2i4UEQMl3S5TNQwr3RK9LeyHqwR70q//3jZSeU42maA ZOrDR7yFIF2vkHmvIdyIzmSOIiwBcSiRdaAUD5ORjLYKky/xF1/exIo3/gzwELWrl015 +6Dl74vTlNwaR/nK74l0RnNQQkCKqAJbMT8tTJnubPJxzvKbzHkkQQBZoN5vW9WolGlf tvnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=k3K5FKhZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si10776325ejs.725.2020.10.10.16.08.06; Sat, 10 Oct 2020 16:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=k3K5FKhZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387440AbgJJW54 (ORCPT + 99 others); Sat, 10 Oct 2020 18:57:56 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:14930 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730012AbgJJTvB (ORCPT ); Sat, 10 Oct 2020 15:51:01 -0400 Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09AFE2FQ021425; Sat, 10 Oct 2020 15:17:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=ECq6xELVDsr8lYsu7huKMW66NXHdSUrpUkYwuYZ8tGo=; b=k3K5FKhZ53zKbunEp2XeYuiMmZwrm8ipKu/IyZdctf5/+WOp3cnHI5h8WHRT/29XDgwC WeoMQfmU6wD+vuljmLHKXtlSMPW5sRs05LJtv/QJj52m6Mvyt7tp+5QU76JS0YOgLKTW MVmJV01GZzUpq94lQrAkwe2JuG/jZ9uj/FMkEeclkvq4Bk3awG4FMayvhpCmgJGhTkWQ 44mrKxNQbWno3ma9tzTwhYOCKaMWRSpssQBQpMprtRBATIN9EQfsMRLvWyp9dzRrxvfJ T3Sav2bZ43qCprCR81v2NQvdYDjlW/uycHXlqLsFi4051eigAOfeBitIh7fzHLf6f76D uw== Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0a-002e3701.pphosted.com with ESMTP id 34366dt707-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 10 Oct 2020 15:17:17 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 9373661; Sat, 10 Oct 2020 15:17:16 +0000 (UTC) Received: from sarge.linuxathome.me (unknown [16.29.167.198]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id A2D7648; Sat, 10 Oct 2020 15:17:14 +0000 (UTC) From: Hedi Berriche To: sathyanarayanan.kuppuswamy@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Hedi Berriche , Russ Anderson , Bjorn Helgaas , Ashok Raj , Joerg Roedel , stable@kernel.org Subject: [PATCH v3 0/1] PCI/ERR: fix regression introduced by 6d2c89441571 ("PCI/ERR: Update error status after reset_link()") Date: Sat, 10 Oct 2020 16:16:53 +0100 Message-Id: <20201010151654.2707914-1-hedi.berriche@hpe.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-10_07:2020-10-09,2020-10-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 mlxlogscore=809 mlxscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 suspectscore=1 malwarescore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010100143 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Changes since v2: * set status to PCI_ERS_RESULT_RECOVERED, in case of successful link reset, if and only if the initial value of error status is PCI_ERS_RESULT_DISCONNECT or PCI_ERS_RESULT_NO_AER_DRIVER. - Changes since v1: * changed the commit message to clarify what broke post commit 6d2c89441571 * dropped the misnomer post_reset_status variable in favour of a more natural approach that relies on a boolean to keep track of the outcome of reset_link() After commit 6d2c89441571 ("PCI/ERR: Update error status after reset_link()") pcie_do_recovery() no longer calls ->slot_reset() in the case of a successful reset which breaks error recovery by breaking driver (re)initialisation. Cc: Russ Anderson Cc: Kuppuswamy Sathyanarayanan Cc: Bjorn Helgaas Cc: Ashok Raj Cc: Joerg Roedel Cc: stable@kernel.org # v5.7+ --- Hedi Berriche (1): PCI/ERR: don't clobber status after reset_link() drivers/pci/pcie/err.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.28.0