Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2696505pxk; Sun, 27 Sep 2020 18:48:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjqmYI7bK2ucvflKLm+JEfRrl+IGKoq4oF2HYCVsWX/ncaM5GwJzAn+JjwoYD5B8r+7qnB X-Received: by 2002:a17:906:37c6:: with SMTP id o6mr13866237ejc.404.1601257716049; Sun, 27 Sep 2020 18:48:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601257716; cv=none; d=google.com; s=arc-20160816; b=hyuytWXvNCa3cXbXWDBWElGjHe3QFvFdjWj8qDLbuZRpqZaWzaHN1Lk5FXJd7r8P5F T/DPRqchbtUPwi9uDtDLAOh4/osQ1FeH85Egm3j+pIWZ27yNe5e5sCMnYHnOJwSQjoBy b4DlK45cQZnOBpJBFJSoFAN4sg2+NJKrnZlsohP71kCFFFHJ/TIFt/lCo2+GzNgFpNbN /qURucYCypcSTdmkjb/M5dCMQJmAz70Yv5oYJASZbqmakdjmnnBug7PVdYC90t14IDhw HZekx+BjQHa3da+qJ3IqJqn6IticuC33rWf0GB6g9BNv9mccVuicpVzH5z8W5ZQmzHEH 14Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=CYt4w3DEIpC/SW3AfP4wIGGINFJKsDh2jutnuKnsNRA=; b=vfUmgYXjmoiAezv0PGIwgCxMQDYVVyxAx9yz0Q6ASdASSIAvF7NSSLiRNKDBWtWPbE p141NvcnHIXDMzCkLMhvHbRgtPN5GKDsJKbTtR3QLr4mhiE5xOqbNBiQo5hA5IzxtF5N fzFJfKwSXKJlWi0sZ/hq2KTD60Rw2CT7gonLyU9sF33yFbQRbrRKUmlmKjbAAieaVFk4 jMm08tKQmrshvCvh12t7beH5/7VD+Ryk+gDuyOBSggcumtCKRC7aLjPKNIPCoFh6GVbR MhVW+tqDrF62faGcU4pfscfClNgUeDmQgeZrIbBrISEbkBhlgdWmyTBOsgg9jpSwvhF7 9svQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2lh1duhW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd6si6440780ejb.207.2020.09.27.18.48.12; Sun, 27 Sep 2020 18:48:36 -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=@kernel.org header.s=default header.b=2lh1duhW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbgI1BrP (ORCPT + 99 others); Sun, 27 Sep 2020 21:47:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:53786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbgI1BrP (ORCPT ); Sun, 27 Sep 2020 21:47:15 -0400 Received: from localhost (52.sub-72-107-123.myvzw.com [72.107.123.52]) (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 00F2D23A33; Mon, 28 Sep 2020 01:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601257634; bh=wl9uadR/O5hDseMDXPYnhwPCJojmECIbpMp6D1e2udM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=2lh1duhWFfmHf4NlNWF5s1sBothSPDiDnXOIV05ed6sS2F4L1+EV9Z1bw/fotNr03 /Kqsip5Z0Ud9FPrO+RpeSA9OQoyLEt8awlo40L4Hau3C32yoaRtNVTdAHoBl59f4ku N7ULaS+CMARBTW9dBIQLiIJ5dLAvGqEP5uA720cM= Date: Sun, 27 Sep 2020 20:47:11 -0500 From: Bjorn Helgaas To: Sean V Kelley Cc: bhelgaas@google.com, Jonathan.Cameron@huawei.com, rafael.j.wysocki@intel.com, ashok.raj@intel.com, tony.luck@intel.com, sathyanarayanan.kuppuswamy@intel.com, qiuxu.zhuo@intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sean V Kelley Subject: Re: [PATCH v6 07/10] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR Message-ID: <20200928014711.GA2475864@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200927234545.GA2470139@bjorn-Precision-5520> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 27, 2020 at 06:45:45PM -0500, Bjorn Helgaas wrote: > On Tue, Sep 22, 2020 at 02:38:56PM -0700, Sean V Kelley wrote: > > From: Qiuxu Zhuo > > pci_dbg(dev, "broadcast error_detected message\n"); > > if (state == pci_channel_io_frozen) { > > - pci_bridge_walk(bridge, report_frozen_detected, &status); > > + pci_bridge_walk(bridge, dev, report_frozen_detected, &status); > > if (type == PCI_EXP_TYPE_RC_END) { > > + /* > > + * The callback only clears the Root Error Status > > + * of the RCEC (see aer.c). > > + */ > > + if (bridge) > > + reset_subordinate_devices(bridge); > > It's unfortunate to add yet another special case in this code, and I'm > not thrilled about the one in aer_root_reset() either. It's just not > obvious why they should be there. I'm sure if I spent 30 minutes > decoding things, it would all make sense. Guess I'm just griping > because I don't have a better suggestion. I'm sorry, this was unkind of me. If I don't have a constructive idea, there's no reason for me to complain about this. I apologize. Bjorn