Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp844398ybj; Thu, 7 May 2020 08:53:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLxT8Ly30/Owd0AvLKJLJ6zdQXU7p8a42cD4dX2uI4uoMYNPJ+GP3izp0BhRLc1z7yPAhpP X-Received: by 2002:a05:6402:2293:: with SMTP id cw19mr12482191edb.351.1588866809858; Thu, 07 May 2020 08:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588866809; cv=none; d=google.com; s=arc-20160816; b=EJcHsWePrFZK0Epz9sOSrg6QVSPbiV8ukKxHWw1Ia9s1MOFQOAGoHpuiPFbKDIEIn/ Eauf9lQaUwJ+4J6PRfZXrOCksCt+J55srSKY48Kew7iOAXkzSC4TUAGVXEOFnoOe9FlD eOBQ8wd7b8Sl5LwMV5Yf6XGyyFdLIXXeL+zFys5pgZloyeTgpngn344+7HqlwIWhNcYu oF45CJdxuWO1Y1HNThw7yd0wHgYwflx3VPl/g+fdpYgQGbU/+ua61zz2aWOJQ96QFCR/ 6g2U0Fsm8V6orJUADUjvzlmXjrdd1A7FjI4tKJmGH3XukomlTe/KEMaN/+pt0+9nJM+s zvVw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=ZnphGsziydczujiTW2ioqH8ZYBAZpBiaG1QT7CLBeDE=; b=hgJXNj2C43xkfCpjG4OOAbINdy+HIm0NbSSkZ35aL+5O993KSBS+RvjFeSzZ36JIEf h5ZWh3VCl6RoCPJpjt8LsGarhPi91kGOUwYqTmE/pEHQfshEuCYJGowA0hCSAdOwRhY8 5ceeqIVO2+CqYxZnP7sWnshwRxpG6ERFmnU0cMVSw7N3JJATAwONozoKp0HRyX6ilSd7 pQFVVczcUag5N9sZGIbwvL6eEHP2afgfszkgVoRlXFBbi3/sg4eB28/vjNyFy4VQmI8t l4t4qHI66oGUseohPrN3bnNW5tOVO7uk1ZOVTjrs9o7LsdfyR7RFpOSc7JaAVoUIxqLU bpAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="O+QfpX/C"; 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 d16si3093352eds.428.2020.05.07.08.53.04; Thu, 07 May 2020 08:53:29 -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="O+QfpX/C"; 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 S1727770AbgEGPvf (ORCPT + 99 others); Thu, 7 May 2020 11:51:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:38404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbgEGPve (ORCPT ); Thu, 7 May 2020 11:51:34 -0400 Received: from localhost (mobile-166-175-190-200.mycingular.net [166.175.190.200]) (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 DF54A20659; Thu, 7 May 2020 15:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588866694; bh=1Q9VbK+JcufVG88INJmlPCjfx0C7wnoXRYXdD54VdV4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=O+QfpX/C/690T6tqapb1Dd6Z+sXEs6NySD2jiIFxIhM8Z49iD9rw38Bq/MHy20Hei Zi3pj6HAmRMao3K0gj1TyLUXXkd7Io3IbAOJDl52KIsXbq5EH9DOMpbDSLtPY5CNwq EZYjY5AUJ1K/7Mmfxx7Kq3iTaaq76DdczroJyJBI= Date: Thu, 7 May 2020 10:51:32 -0500 From: Bjorn Helgaas To: Niklas Schnelle Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Pierre Morel , Peter Oberparleiter Subject: Re: [RFC 1/2] PCI/IOV: Introduce pci_iov_sysfs_link() function Message-ID: <20200507155132.GA6568@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 09:48:30AM +0200, Niklas Schnelle wrote: > On 5/6/20 11:10 PM, Bjorn Helgaas wrote: > > On Wed, May 06, 2020 at 05:41:38PM +0200, Niklas Schnelle wrote: > >> currently pci_iov_add_virtfn() scans the SR-IOV bars, adds the VF to the > >> bus and also creates the sysfs links between the newly added VF and its > >> parent PF. > > > > s/currently/Currently/ > > s/bars/BARs/ > > > >> With pdev->no_vf_scan fencing off the entire pci_iov_add_virtfn() call > >> s390 as the sole pdev->no_vf_scan user thus ends up missing these sysfs > >> links which are required for example by QEMU/libvirt. > >> Instead of duplicating the code introduce a new pci_iov_sysfs_link() > >> function for establishing sysfs links. > > > > This looks like two paragraphs missing the blank line between. > > > > This whole thing is not "introducing" any new functionality; it's > > "refactoring" to move existing functionality around and make it > > callable separately. > You're right I'll keep it in the subject for easier reference > if that's okay with you. > > > >> Signed-off-by: Niklas Schnelle > > > > With the fixes above and a few below: > > > > Acked-by: Bjorn Helgaas > > Thank you for the very quick and useful feedback. > I've incorporated the changes and will resend with the PATCH prefix. > If/when accepted what tree should the first patch go to? I'd expect them both to go via the s390 tree so there's no dependency between the PCI merge and the s390 merge. > And yes I plan to let the second patch go via the s390 tree.