Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1832416pxk; Fri, 2 Oct 2020 22:48:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiFZc1ArWqy4dzee1Wh/mCojJMApifDjCaYjsl/FsCc14yvjyNBNDcudGbPgXERiF+Gc1/ X-Received: by 2002:a50:9505:: with SMTP id u5mr3583846eda.316.1601704135558; Fri, 02 Oct 2020 22:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601704135; cv=none; d=google.com; s=arc-20160816; b=SKQMTqcHLujmE4KNWjS3U6EMHGvjxvwCL3pGjFFb4WXtebWHbLMnB1ttMDiVoPMwaq oBHv0+pyKxC9sufuoRDuE+9V3GJtCC5KygpnmPOOxbhPd+lOgUvSREDTszhNMs9DtgK4 CuN1UHWq7sg+UFvqBpIxkH2vSLgYQbqjlKSJHYJgqLASgZCv+1NzTRTjd78bjiJa0cSF 4ldtdtE4KMa4b3qRxCZ3zdZ/NhXTry3Us3WQDPARG+iaPdCZhBhn8pMYWPKDboyXaxMK gg1sfLJzxRLPnq1fJD4ZDcWK+bGU4uHgP6Cwn/Q853gEaudbYLBO0k02XuCnkZbbc8Sj PLWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hawXaGws1MU6sDkakK3AdQ7Q2ZSpEooEcbwe9eB+DI4=; b=linN05NkPwuql2TQmVeMhJBM3AYbBYudZciIa/or63HGXeDUympQuqyldKw2D69jXA NXY9QVWG4pbfwEOqJ/5yGrXnLkzFh/UEXZjQ/SC2O4GptG65FPge58rchzO6awtNlEUn 1ncyFd/YklVTz4wt24KXynIVrigCNsMvqGwRQqbMJ9xLgFveWtjdDYnrQlwXik8oym8K XxXs9hTPA5T24WpQkKVhL8mwdmIDsrrapA10XjfkRJ60NS057ksI3EQElgU1h10+qDxh cSgStDnq6ZXP1SYBT72QYBDXuAZJEAiyp9VgH78zUWu8vZfEe5WkT7sdYNSmillpf8zv nNzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IJqZsshU; 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 a16si2987563ejk.665.2020.10.02.22.48.33; Fri, 02 Oct 2020 22:48:55 -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=IJqZsshU; 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 S1725792AbgJCFqT (ORCPT + 99 others); Sat, 3 Oct 2020 01:46:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgJCFqT (ORCPT ); Sat, 3 Oct 2020 01:46:19 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60AD2C0613D0; Fri, 2 Oct 2020 22:46:17 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id i26so4617804ejb.12; Fri, 02 Oct 2020 22:46:17 -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=hawXaGws1MU6sDkakK3AdQ7Q2ZSpEooEcbwe9eB+DI4=; b=IJqZsshUb/VtWXvu3gAVH+H/lOqFcQCbt02rZY/vQn5rQT8hOGnAOAwrVxK6X2zObs d5rfqYdcNlJ1fr9CmrRZym2wwYG7EhtZdKB8fO6X2s0DhWFthuSNqu2uqLYcDUxQMhXu IPCuHZZvXIbieYw2Zrds6+xpKrYy3QvMy53ffAZDtCb9eAyxbQyReNxiQUcrrmk585g5 jIGSRaL+EchFyCS33FebRzWd7QRKUKnvdS+QQU+2FScmw+Xzwd7FnO+OKNO8bzLMOyXH BJ9nB1Xn0P4RYU5+xMuV/QbO9n6UbHVsPcKoG2dJryEnmPAwakDlNNk9NcPh1yObzBFr P+BQ== 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=hawXaGws1MU6sDkakK3AdQ7Q2ZSpEooEcbwe9eB+DI4=; b=TKIL3bINcc3zvQZzpcs/24Bec/w/UkRpcUda9Bk6876d0R65J045DSS2To0bezKi8N 2CoKa9BAXJRAY4QF0trfEWovFdFHO/Ihlm8uKDAk5wikmNmG1kB9ppGxE0rRjKdNJmRs 5KVDJl6nAFxQD/4rDwuDy3+D1MMBwn5WX/pz26rZr/bBR5F5TVgX3MrZk5RwzkVV0knV i9vFg1rxX66379h3jQcUZfaDQj/A9h3v4+Lr/nT7Gbx41vxtByfaLN3vdiriuIke+7Vb Bu6qclgaPPgzYEgrb38zu80waYOofroekSwaDEkR/aw6maWR4kbyY1+wZ+f2O0PloJAf 3pNg== X-Gm-Message-State: AOAM532CmCq+/HBgbeW7qQdj5JzmJ+AHrL2xcVkWwxgl43J4GDFYs2iL RN66kJOKiDx2ckAKE/MXRBCT89Qow0j/6ziobYE= X-Received: by 2002:a17:906:6409:: with SMTP id d9mr5265403ejm.344.1601703976062; Fri, 02 Oct 2020 22:46:16 -0700 (PDT) MIME-Version: 1.0 References: <20200930070537.30982-1-haifeng.zhao@intel.com> <20200930070537.30982-5-haifeng.zhao@intel.com> <52e9ba48-2789-31b8-b80c-23854190c4d4@kernel.org> In-Reply-To: <52e9ba48-2789-31b8-b80c-23854190c4d4@kernel.org> From: Ethan Zhao Date: Sat, 3 Oct 2020 13:46:04 +0800 Message-ID: Subject: Re: [PATCH v6 4/5] PCI: only return true when dev io state is really changed To: Sinan Kaya Cc: Ethan Zhao , Bjorn Helgaas , Oliver , ruscur@russell.cc, Lukas Wunner , Andy Shevchenko , Stuart Hayes , Alexandru Gagniuc , Mika Westerberg , linux-pci , Linux Kernel Mailing List , ashok.raj@linux.intel.com, Sathyanarayanan Kuppuswamy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sinan, On Sat, Oct 3, 2020 at 12:08 AM Sinan Kaya wrote: > > On 9/30/2020 3:05 AM, Ethan Zhao wrote: > > When uncorrectable error happens, AER driver and DPC driver interrupt > > handlers likely call > > > > pcie_do_recovery() > > ->pci_walk_bus() > > ->report_frozen_detected() > > > > with pci_channel_io_frozen the same time. > > We need some more data on this. If DPC is supported by HW, errors > should be triggered by DPC not AER. > > If I remember right, there is a register that tells which AER errors > should be handled by DPC. When uncorrectable errors happen, non-fatal severity level, AER and DPC could be triggered at the same time. Thanks, Ethan >