Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1491375pxf; Fri, 12 Mar 2021 10:42:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxg3+N81Jr8tBhaCHO/yVCPmPF1DqqHPdXVs0XyXq4L1Pvmt/ymLp3w3cJRoRWP/1wzrMIj X-Received: by 2002:aa7:da0f:: with SMTP id r15mr15719829eds.111.1615574573267; Fri, 12 Mar 2021 10:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615574573; cv=none; d=google.com; s=arc-20160816; b=o1sbHKWL62AfReI6qp7/pY2wnE8xevSyg1YS2dcZi05bozd6wTFjxQfNMvluSHwWLK GVyyx2raqUYmYZFF5fWPN/xBnNochztPcpvJbnmENQTOxALcGw5Etvox9PPHGZjKvpuz ssliSJQ5TZvpewrDT61M6TMr7cSPdFuFb//qTctUwbW8qdXC9Bt18RoyujKZLGy3Z5mh aSGYRb4XKPDIu3bUxwzNdaKL/HPSH7WNSJ0/2uSoakbDJm+ePCDKx+Z7q5MhGvYpuadF nUuBIOV4sHs3RzBtqzsv20wflqVfZShdFU26EYCYSIA8CCnnFhhN4yT04DPKmKZzH5C7 zIhw== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4yRPxufzWT3thQ7Bv+f09drpbgtD2Z1Oj1m47AWLtpw=; b=vg6wVGMlpj91eBXzHwMdnoUwXD4HXoCk7oJ6Tx5IJDj7d/54oD7wUeqWTdE74+89vG AYXtK0G5/fp/mnwDZwHi4hDWn/05Dl/oPimSz6qYJxiVxR/0umZAnIGz//qXfUJBBqPg 5/SXLLY3rqtIf23DATL1eUzlNKUc7f2jWKjjOj4exU0svCEHSLNTjq2tiFIaJwfiMlTM WikKuRC56pdSiH2CdKE4aRNz4PVShRKw8oHcNjfrTvVw5Uq2Kjrh6ZKlxnXSE3+DxQDt 2xQblEpTqdQyNoqzZn8WyMDRgNXTp/bORxUPFGZXgw5Sm8rxEn/ntRE6uj8sQrhzewL2 ga4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XW4UHta5; 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 r1si4610433edt.394.2021.03.12.10.42.30; Fri, 12 Mar 2021 10:42:53 -0800 (PST) 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=XW4UHta5; 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 S233680AbhCLSl0 (ORCPT + 99 others); Fri, 12 Mar 2021 13:41:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233036AbhCLSlT (ORCPT ); Fri, 12 Mar 2021 13:41:19 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FAE1C061574; Fri, 12 Mar 2021 10:41:18 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id s21so2471876pfm.1; Fri, 12 Mar 2021 10:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4yRPxufzWT3thQ7Bv+f09drpbgtD2Z1Oj1m47AWLtpw=; b=XW4UHta53j/lMCQhf6ZIWbHCTtIkoPjRHjL0Y3ZT9eSjftYN418B5pVvbexerz/rb/ JwRTG+v8LcqiY409epXxWGrojOVTZ14YZZ4clda2vG4nm9mnUv+gimOj+xaQ1GZKyE4e Kk09hRUU1VvtrMrWFPkKxgm1epfBndvbr7D6zKWoCZowENAXebbGCVyTdZ6oU4/pFUJ5 8fxlIg07MF7F9r0Ae3cj9DvkZWBZvjuxz9DE37hdhfGADWJEgQz5uO2laQ+5iOBvNhCk 4OvAoGNmYmydYS9uHLJBk6tt71cV8HYBXghCyDS9NN+J83/uO4LMKC5dt5sAQVOItXa0 3bQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4yRPxufzWT3thQ7Bv+f09drpbgtD2Z1Oj1m47AWLtpw=; b=Ae6raJVoLRsXXkoHAC+hLIbcquRZqvNqfjVj1rv5mVPYL6G9NLF3eqY8OAMU1QJfb4 sAIP0ZbJYzGThKTSOK50DDgHd2LQES2l2st7jBJ1ZXuCSMhYJdo59kklQM7VpKswIFPD V0weauXLOcHD4wCV3NnTjqq1i8YXyDF3lBzlyssTEZQ67kSYFvUXdRmIvmlacjY6bfXZ vtBtM2EG4Y13Y6aipb0GdJ+PIfrqhBftOGPqHmYhD3ichAwEzn3cRvAKv55sVAlVW1b4 9xqH38gTbg293SBWP68YsqhKAwvJfaYry4UZq++1ymTO76xOoGonBX6trSmWytdW/dCE IiEA== X-Gm-Message-State: AOAM5304EqVwNw2vB8EBd/3LwLE+TH7ti+BeEBPUZns4fQVeBrPuCbi3 aB6ZHFUrMUlyE2v9CESJfX9hHnuea0dPHw== X-Received: by 2002:a63:7885:: with SMTP id t127mr12651569pgc.237.1615574477523; Fri, 12 Mar 2021 10:41:17 -0800 (PST) Received: from localhost ([103.248.31.144]) by smtp.gmail.com with ESMTPSA id v27sm6104554pfi.89.2021.03.12.10.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 10:41:17 -0800 (PST) Date: Sat, 13 Mar 2021 00:10:38 +0530 From: Amey Narkhede To: Alex Williamson Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, raphael.norwitz@nutanix.com Subject: Re: [PATCH 0/4] Expose and manage PCI device reset Message-ID: <20210312184038.to3g3px6ep4xfavn@archlinux> References: <20210312173452.3855-1-ameynarkhede03@gmail.com> <20210312112043.3f2954e3@omen.home.shazbot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210312112043.3f2954e3@omen.home.shazbot.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/03/12 11:20AM, Alex Williamson wrote: > On Fri, 12 Mar 2021 23:04:48 +0530 > ameynarkhede03@gmail.com wrote: > > > From: Amey Narkhede > > > > PCI and PCIe devices may support a number of possible reset mechanisms > > for example Function Level Reset (FLR) provided via Advanced Feature or > > PCIe capabilities, Power Management reset, bus reset, or device specific reset. > > Currently the PCI subsystem creates a policy prioritizing these reset methods > > which provides neither visibility nor control to userspace. > > > > Expose the reset methods available per device to userspace, via sysfs > > and allow an administrative user or device owner to have ability to > > manage per device reset method priorities or exclusions. > > This feature aims to allow greater control of a device for use cases > > as device assignment, where specific device or platform issues may > > interact poorly with a given reset method, and for which device specific > > quirks have not been developed. > > > > Suggested-by: Alex Williamson > > Reviewed-by: Alex Williamson > > Reviewed-by: Raphael Norwitz > > Reviews/Acks/Sign-off-by from others (aside from Tested/Reported-by) > really need to be explicit, IMO. This is a common issue for new > developers, but it really needs to be more formal. I wouldn't claim to > be able to speak for Raphael and interpret his comments so far as his > final seal of approval. > > Also in the patches, all Sign-offs/Reviews/Acks need to be above the > triple dash '---' line. Anything between that line and the beginning > of the diff is discarded by tools. People will often use that for > difference between version since it will be discarded on commit. > Likewise, the cover letter is not committed, so Review-by there are > generally not done. I generally make my Sign-off last in the chain and > maintainers will generally add theirs after that. This makes for a > chain where someone can read up from the bottom to see how this commit > entered the kernel. Reviews, Acks, and whatnot will therefore usually > be collected above the author posting the patch. > > Since this is a v1 patch and it's likely there will be more revisions, > rather than send a v2 immediately with corrections, I'd probably just > reply to the cover letter retracting Raphael's Review-by for him to > send his own and noting that you'll fix the commit reviews formatting, > but will wait for a bit for further comments before sending a new > version. > > No big deal, nice work getting it sent out. Thanks, > > Alex > Raphael sent me the email with Reviewed-by: Raphael Norwitz that is why I included it. So basically in v2 I should reorder tags such that Sign-off will be the last. Did I get that right? Or am I missing something? Thanks, Amey > > Amey Narkhede (4): > > PCI: Refactor pcie_flr to follow calling convention of other reset > > methods > > PCI: Add new bitmap for keeping track of supported reset mechanisms > > PCI: Remove reset_fn field from pci_dev > > PCI/sysfs: Allow userspace to query and set device reset mechanism > > > > Documentation/ABI/testing/sysfs-bus-pci | 15 ++ > > drivers/crypto/cavium/nitrox/nitrox_main.c | 4 +- > > drivers/crypto/qat/qat_common/adf_aer.c | 2 +- > > drivers/infiniband/hw/hfi1/chip.c | 4 +- > > drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- > > .../ethernet/cavium/liquidio/lio_vf_main.c | 4 +- > > .../ethernet/cavium/liquidio/octeon_mailbox.c | 2 +- > > drivers/net/ethernet/freescale/enetc/enetc.c | 2 +- > > .../ethernet/freescale/enetc/enetc_pci_mdio.c | 2 +- > > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 +- > > drivers/pci/pci-sysfs.c | 68 +++++++- > > drivers/pci/pci.c | 160 ++++++++++-------- > > drivers/pci/pci.h | 11 +- > > drivers/pci/pcie/aer.c | 12 +- > > drivers/pci/probe.c | 4 +- > > drivers/pci/quirks.c | 17 +- > > include/linux/pci.h | 17 +- > > 17 files changed, 213 insertions(+), 117 deletions(-) > > > > -- > > 2.30.2 > > >