Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp28653ybb; Thu, 19 Mar 2020 15:55:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvpEsAX7bmQntzc+DJYBXbzdI/w3RQrbX0Mq6V8Qawf+ty/D+4O34Ef6z20m97i2J0uO+2u X-Received: by 2002:a05:6830:1c7:: with SMTP id r7mr4476290ota.129.1584658516164; Thu, 19 Mar 2020 15:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584658516; cv=none; d=google.com; s=arc-20160816; b=IrfU0tcCppS4q7vetNAAGW8SkOP8hkjn+P0AEcbSy75nBCKPUCTXwxVKSsmZmRdSPb vieVe40yJNcxbtmZs40AJSAcLYF4zXcL2Is2DHPpoyi9PWrTgVW8iu4gNfQqrNvvdeAz ZM0bHiLHFIptlX6XgHaMep96WgQJQ5lLgCLsktpIDSmESdfW+uaO5IUe9PtLIEqEAOwk wnaroWIxUT0Fi1VPHYH5O8vPhgKEA6kNUY9kT44X1Ch4zSyhBAzeTEAZxcT619zZTFHm P4Id3o1rMo/VlBxMVIMxbPwdt8H/IpNKGjWPdCGxogun1+71F4oTr1Bx1qroLH/9DQuJ NTIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=qOP6ZfVwIVNWlLV9p4Lm9NUmXQBHr0prkOp2ZMIHKj4=; b=MNu+iQsSlxJ/czrp3SJTP7mQ5l3lLYBag+lEMassnu7KqTeQozsTeDDZh6vdnCKqsC UhqvM12HwxycbWyhLWRkQesPL0R+RqzUK9AX/qZl+SMEVzCxyR/HfVRiAV9dx7Qb6jdu hnpBvX+dbD/iBUHpYV0paaJff9LArIEQSD27BQGaiJmkfZ9KThxGM4VtOAuFz3m8hTpU aDAsMeF2mGUqInfeGEfoB8ovo1KNz14hHtLkudxkndvr4uxGRXYOAk/ftNOf4Ee4scwl CxRUyWnLhBQ4fr+xMFpq30cbMvKEB1lGBjNVOg8QVCMskq6vap/rSmesBUmbsuelCVLP 74tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nGS71f+C; 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 l13si1629441oib.268.2020.03.19.15.55.03; Thu, 19 Mar 2020 15:55:16 -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=nGS71f+C; 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 S1727599AbgCSWww (ORCPT + 99 others); Thu, 19 Mar 2020 18:52:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:59498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgCSWwv (ORCPT ); Thu, 19 Mar 2020 18:52:51 -0400 Received: from localhost (mobile-166-175-186-165.mycingular.net [166.175.186.165]) (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 4A1D3206D7; Thu, 19 Mar 2020 22:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584658370; bh=4iJFtuBMo87wnt6wZpaiJ+4GDnysLlZVMy3uErkY7YI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=nGS71f+Cp6K/f3h8pftZt6yFGhSxOmsB4UdOy/rTqcDXGOdoeG2TB1pompXBz2RPG D4B2TYl48sWzsbD5c6/UvfBsrJVewO3hpPiIX/wn+jvjzwsiiy7HG2zs4TGvg8kWEn YvUAD7vrOWbRRddyrmAPj53DST+AXScperyD2M9c= Date: Thu, 19 Mar 2020 17:52:48 -0500 From: Bjorn Helgaas To: Christoph Hellwig Cc: bjorn@helgaas.com, "Kuppuswamy, Sathyanarayanan" , linux-pci@vger.kernel.org, LKML , "Raj, Ashok" Subject: Re: [PATCH v17 06/12] Documentation: PCI: Remove reset_link references Message-ID: <20200319225248.GA12599@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200317170654.GA23125@infradead.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 17, 2020 at 10:06:54AM -0700, Christoph Hellwig wrote: > On Tue, Mar 17, 2020 at 11:03:36AM -0500, Bjorn Helgaas wrote: > > On Tue, Mar 17, 2020 at 10:09 AM Christoph Hellwig wrote: > > > On Tue, Mar 17, 2020 at 08:05:50AM -0700, Kuppuswamy, Sathyanarayanan wrote: > > > > > > From: Kuppuswamy Sathyanarayanan > > > > > > > > > > This should be folded into the patch removing the method. > > > > This is also folded in the mentioned patch. > > > > https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?h=review/edr&id=7a18dc6506f108db3dc40f5cd779bc15270c4183 > > > > > > I can't find that series anywhere on the list. What did I miss? > > > > We've still been discussing other issues (access to AER registers, > > synchronization between EDR and hotplug, etc) in other parts of this > > thread. The git branch Sathy pointed to above is my local branch. > > I'll send it to the list before putting it into -next, but I wanted to > > make progress on some of these other issues first. > > A few nitpicks: > > PCI/ERR: Update error status after reset_link(): > > - there are two "if (state == pci_channel_io_frozen)" > right after each other now, merging them would make the code a little > easier to read. Merged, thanks. > PCI/DPC: Move DPC data into struct pci_dev: > > - dpc_rp_extensions probable should be a "bool : 1" I actually had not seen "bool : 1" used, but you're right, there are several. There aren't any in drivers/pci, though, so I'm inclined to stay consistent with "unsigned int : 1" unless there's an advantage, and then I'd probably convert all of drivers/pci over. My rule of thumb has been [1], where Linus suggests "unsigned int percpu:1", but maybe that should be updated. > PCI/ERR: Remove service dependency in pcie_do_recovery(): > > - as mentioned to Kuppuswamy the reset_cb is never NULL, and thus > a lot of dead code in reset_link can be removed. Agreed, thanks, I removed that dead code. > Also reset_link should be merged into pcie_do_recovery. That > would also enable to call the argument reset_link, which might be > a bit more descriptive than reset_cb. I didn't do this because it sounds like it might be a separate patch. But maybe Sathy can do this in the next round? > PCI/DPC: Cache DPC capabilities in pci_init_capabilities(): > > - I think the pci_dpc_init could be cleaned up a bit to: > > ... > pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap); > if (!(cap & PCI_EXP_DPC_CAP_RP_EXT)) > return; > pdev->dpc_rp_extensions = true; > pdev->dpc_rp_log_size = (cap & PCI_EXP_DPC_RP_PIO_LOG_SIZE) >> 8; > ... Nice, thanks! I made this change, too. Thanks a lot for reviewing this! Bjorn [1] https://lore.kernel.org/linux-arm-kernel/CA+55aFxnePDimkVKVtv3gNmRGcwc8KQ5mHYvUxY8sAQg6yvVYg@mail.gmail.com/