Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp440909ybm; Tue, 26 May 2020 22:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1KK9iFBFpFUhbnyzvNIVEwZxCjJjO4fLglGXrMEzcnDd/Vy5VbXue87M9MXdqI60kOpLR X-Received: by 2002:a17:906:4d82:: with SMTP id s2mr4110848eju.542.1590557114904; Tue, 26 May 2020 22:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590557114; cv=none; d=google.com; s=arc-20160816; b=NX+b+BORrlSlN4xLOQah+jBcX5+7dmbsJtQFKDUyYmz7c7o9uTjiKD1Wo19Z/CIqJa OK2bLamRpQzbp75ETsLPpK7vkV0c/uxF9vvAd4JKl3qGFGmeHQXuiKS3VgMaAxmLC5Dq LIKcBPWPplaHr53kiPgAKReL0I5ay31g+8cPTREr5UMDqf22PgIcTMmYM2/lmcpCCwDC HYeazlzryaZ5fS2t6Dx6ImAhyUjs1Ne0nAOBKW77tRgZKwuWBedwUD7mBsae/wRp7B8Z 5zWktZK9ezK8WcazyF66ZNi4yoGu+DKyd1TErQw4ktaDwllPUyNKAiEuXG1T85RFfmhc teqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mTw88palFD7+SjbmvqrQhtUBYE0y0z+9wugbJffOnsM=; b=XQOpGSY3Iu0JDkP7yKQvXPGdXjOqZQBSdz8K85zClpRX4pggqNE+AxO8LL0MHJuo6M H3hHiwVkl0ow2kSX42F2UWNphpTjyy5Ky8unhfxo/eacSH1ufrBdohe4vtUYZuM9U1pz AcWgq+rIRY7aQHusMygTQTNRI99M1eLfqh77QJHjMH9KR1y35ZzLS1Kc8I8WHW76IjMJ eFCUJ4ZHrAexI/nQbW4SWHZpuz/ygiYuTwIFbuDbgHDvths8WcEjQG69jj9bZP794hyg J9ZUS2K2OoxaD+iVv8mZUEpN3iKbaxoTwAA9GRD6hdXB88n5pG6K4fBQvEoboT/EHkwx nT+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jgmuK+af; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si1107400edg.244.2020.05.26.22.24.52; Tue, 26 May 2020 22:25:14 -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=@gmail.com header.s=20161025 header.b=jgmuK+af; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728564AbgE0DfT (ORCPT + 99 others); Tue, 26 May 2020 23:35:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgE0DfT (ORCPT ); Tue, 26 May 2020 23:35:19 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4338EC061A0F; Tue, 26 May 2020 20:35:18 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id h10so24413268iob.10; Tue, 26 May 2020 20:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mTw88palFD7+SjbmvqrQhtUBYE0y0z+9wugbJffOnsM=; b=jgmuK+af4ey5mHa7nJqETfNgp4IoLT/AyXeGzZm+6Oo4QQ10env2fI2sARC4LowYfz EMMj3MD1UCuqQVCsCqsR/LkA19r5SyjGgMDUkH8cjy93pFywkzMzKBYcxLNpMp6yoY/X 4cCif0OIVXqe16dHzhowIdkJ8BTHncYtmeLV87aoEFJR96jX9MfcakeWi13Foz5Ctois 3fWulGiU0uOkct07PQJ5Nwj9aCoNdMfhe2oZxYlSzACdDOBJ/vSyIr4wj9zDOuY587v+ 9qqs8aOt0CCR8kKKuUrEhpf/UH8r+THMi3oFOohOXchE9p1hzXthqPl/UNg3SkEgKdvA mQJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mTw88palFD7+SjbmvqrQhtUBYE0y0z+9wugbJffOnsM=; b=Z8Wp94hA56YIB/NiymCWqcpuULQNXUuhROFVen6WoNWxDq+wBZ76HXsdrExF659C18 AHopkmxiJpUaXgWr+8rSDCWGysUrNZqiOdElvZqbBlLCBVuMSqTB65gsyfyjxiwf/kjG 8I5cbDaj4nQRInDDqUfyLlbpyUTx52stjfXZL8BdNogQzvRVCL+dSeHADZP7BZ9km6o8 B/csP606a4xhnLKIQHTTJLX5q5espFtwvsdJusuwUc86z6dyVBqj8bcmMD7bT1PRsio+ FXNuJjCW3ZW26xqGMLCZA+JC2y7Hiecd+89sA9ftM3ponuyph+5Ydveqm9inEf2CEgSP 81jQ== X-Gm-Message-State: AOAM533gI8ZjZYuqSzQt9YyzsmvTu+jsXGFuVEJ2Q0Tcv27MasMsr3Ej KYLkXMs6+d5XIaazhIoOJGRrKhuK3OgDoL0ld74= X-Received: by 2002:a6b:750c:: with SMTP id l12mr20150950ioh.66.1590550517652; Tue, 26 May 2020 20:35:17 -0700 (PDT) MIME-Version: 1.0 References: <18609.1588812972@famine> <2569c75c-41a6-d0f3-ee34-0d288c4e0b61@linux.intel.com> <8dd2233c-a636-59fa-4c6e-5da08556d09e@hisilicon.com> <55b3a469-c306-acf1-f97e-f07f40054974@linux.intel.com> In-Reply-To: <55b3a469-c306-acf1-f97e-f07f40054974@linux.intel.com> From: "Oliver O'Halloran" Date: Wed, 27 May 2020 13:35:06 +1000 Message-ID: Subject: Re: [PATCH v1 1/1] PCI/ERR: Handle fatal error recovery for non-hotplug capable devices To: "Kuppuswamy, Sathyanarayanan" Cc: Yicong Yang , Bjorn Helgaas , jay.vosburgh@canonical.com, linux-pci@vger.kernel.org, Linux Kernel Mailing List , ashok.raj@intel.com, Sam Bobroff Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 27, 2020 at 1:06 PM Kuppuswamy, Sathyanarayanan wrote: > > Yes, in case of DPC (Fatal errors) link is already reset. So we > don't need any special handling. This reset logic is mainly for > non-fatal errors. Why? In our experience most fatal errors aren't all that fatal and can be recovered by resetting the device. The base spec backs that up (see gen5 base, sec 6.2) too saying the main point of distinction between fatal and non-fatal errors is whether handling the error requires a reset or not. For EEH we always try to recover the device and only mark it as permanently failed once the devices goes over the max error threshold (5 errors per hour, by default). Doing something similar for (native) DPC would make sense IMO.