Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3988776ybh; Tue, 17 Mar 2020 10:07:42 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt4zRxvJjUUPtAyCZ7ejoqGa4slxbQCXRGS/3epJlARjxfJqHlykcSthORCmLSVYCoTPXGs X-Received: by 2002:a9d:a51:: with SMTP id 75mr215393otg.112.1584464862283; Tue, 17 Mar 2020 10:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584464862; cv=none; d=google.com; s=arc-20160816; b=06MdKgHQenDCndDWgVP6oYPMChGX8F/uWwDL9Q2WpyACA8YaoaXY4qJB/KsKqXYF4B vDfWn38cC2MO6KRZJiaPTLTjoU9obe4kNZgGJpFFoT3NRghYtREZZwnyX1Fv0r84hnKu M1/VwLvCKPiedkKsYNlhBWwDGysRtqQwW067gSkR/wKC2IPZ7AdLadHQiM7mAe674QhG XOGBYCiLrYglRJzUGobspbtzn+PSs/T/uOCWW7VyI00DT+lXMiCQ92gb2QufpFmmkTkf clDSPZ8cnTEgp2bPz0/VybuUkVnvWvuVERXd2eI5td+E8ABKqZ8FsVHWEPGel/4pML1R JaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2BoGGEdNQTv247lOoGQWSuvht20oQxr110Feea+TlWs=; b=dDAqJGdaGtY/4jQ5WDbGbMnii7Xz3T1CHQAU2GBR5AssSAQTeyJ6Q8aXH3bllB7C+y 4QM5n4Kz2XEzLnjZrqdsa+E7u6BVayZWMmu7vBYm9DhUjVew52m4cm2xX0HF1Q7FV+GO QJrJ8O70yFd+8XT3BeyfToZVB3+K0EvCChecJOj2WbX3R5no/9TuiklKH9K5se+ghg+W uv+2ovnm/LEw+zvzGia3OD+cvPX6H933NVC5f674OXJ9DO+dkIKoeYUZhQQAQh5dEiUU m6jwpcTeRCQJci7QpB67v3kuqsUa5zWiqFE452p6l/U3YmHlv7/jk1cLxBIo+rTzebjk XW8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="q/CW7wqC"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q197si1789549oic.262.2020.03.17.10.07.28; Tue, 17 Mar 2020 10:07:42 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="q/CW7wqC"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbgCQRHB (ORCPT + 99 others); Tue, 17 Mar 2020 13:07:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43856 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbgCQRHB (ORCPT ); Tue, 17 Mar 2020 13:07:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2BoGGEdNQTv247lOoGQWSuvht20oQxr110Feea+TlWs=; b=q/CW7wqCHqnFnpmJV+W5tVWP4e QCWw6HRa29pZio3fs1qQwZn6DwftNjCAEoEpckv8LNzYmwsLLvL7Z10FJuhVCKvuuu20J9yReNFGr be4yOdRpocDxxoA6qxamS0Pk5E+pf841lrJN+vrkzFyseQOxWl5Ch0VD6CJ8B5gTMVj3re1ocF4fT R3qw+ty5i7fofRDHRmqBGJ6GrtH+NLeOeZNn8v0UPQ3zXfEqAvOINV0CuQg+adyZiFuYN5TUWi3yA UlQfJQlMAXu/BjFtbUwesx8L21ixKlHym8Vc6BRHBf1Xnq+T1gTW5FhNUL9aXxEIURAbTtYWmbpz4 J3Dhw+eQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jEFg6-00010h-7t; Tue, 17 Mar 2020 17:06:54 +0000 Date: Tue, 17 Mar 2020 10:06:54 -0700 From: Christoph Hellwig To: bjorn@helgaas.com Cc: Christoph Hellwig , "Kuppuswamy, Sathyanarayanan" , Bjorn Helgaas , linux-pci@vger.kernel.org, LKML , "Raj, Ashok" Subject: Re: [PATCH v17 06/12] Documentation: PCI: Remove reset_link references Message-ID: <20200317170654.GA23125@infradead.org> References: <20200317144203.GE23471@infradead.org> <20200317150735.GA653@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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 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. PCI/DPC: Move DPC data into struct pci_dev: - dpc_rp_extensions probable should be a "bool : 1" 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. 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. 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; ...