Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8572024ybl; Thu, 16 Jan 2020 19:55:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwcgbjAVJa6pswlM577HYGfm5Bj6Oeib3ldThWcHpGalIdL2HvD4dq3+ewEARgBeONp/NiG X-Received: by 2002:a9d:3f61:: with SMTP id m88mr4550693otc.56.1579233324351; Thu, 16 Jan 2020 19:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579233324; cv=none; d=google.com; s=arc-20160816; b=mdFlgl5d6/KWbTKU8nT0tS/4YsrBM6ozHk/6+slI/Y3E8oqsHq1nITSYSpMiz8QZKN RDwpbUe8/Zus8GZxEqDwOLZQsbmgk035SaLIZfLRJd5aJXSrqikbRg7pHoQBerA8MlKF jULXskyjVrwPnkAUZnZ6+/P8J1+VX4T34h7l/GVi3PutShrFa4Gvqy1hlPjCB0jP/9V9 lEIz4ivAK0AFoFEWruTtQyz0rwYZhEvfUt9sgLDiX08rCCMFg704NK1WBZlZEh/QAzpE xSLJKQgVWTrdBYGc1SxPAnk+HMolfCnEjaG2qqctXoaSiF0u+lc6WiAwk6YkpkcfWx3p qWlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=tdIgKOy1y/NI5Q5YdxR6Po3FdFCIq5dwectZFaPZNLE=; b=ku9itq8bk/7Q+jD9XVabL0pjjmG4jvcKCSE0FsZvlxvj+E/ezzqHClxWbX+fawAVv+ xWdt1uyFokaZPzw2azrOq/4oeez9Ln8FaLEcKLbZ7ZC4IqoTfaC2cQHNlPIMasgwZhLc NwVYCA4A27KHF21TJyf0jRTxsIGhX8YajlHk64pJgCXhF6OF8540LNIerOS09J890sjc X2KlmDTfwXa9MWVCsOlPvDQiUvmGryyOl2ZI+L26l/1DoaGGq1kxBFqSTj3WA0QD5rB2 tk/QV7s4HxZ+PNib2bKCkYfazGToi1qnxotWeKtMe/zSgw7bXI2ICwW5WpPgTZ+BK1VU P1mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D6cN098t; 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 n8si14493962otr.102.2020.01.16.19.55.12; Thu, 16 Jan 2020 19:55:24 -0800 (PST) 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=D6cN098t; 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 S2388102AbgAQB0f (ORCPT + 99 others); Thu, 16 Jan 2020 20:26:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:40136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729031AbgAQB0f (ORCPT ); Thu, 16 Jan 2020 20:26:35 -0500 Received: from cakuba.hsd1.ca.comcast.net (c-73-93-4-247.hsd1.ca.comcast.net [73.93.4.247]) (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 BC3B220728; Fri, 17 Jan 2020 01:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579224394; bh=1UISYqwUWwwvH3mbOBovGUNJcB5XciuC3YEepxg/Bf8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D6cN098tabZVxo7SMVeGKvnnu3yV9fwo+82Qva+iU8PPpY92q3k9BrZfAbVhWvzn7 Op/SgR2RlYW5aye0SA/jvykHAbEPtEQ6Z+f+Jvs/iVukJv0B/xa6fi/I3WAFMaYeJc uzQr4zci/ZlQcyIQejISiirGCGwRhav/Fpwng7x0= Date: Thu, 16 Jan 2020 17:26:33 -0800 From: Jakub Kicinski To: Moshe Shemesh Cc: "David S. Miller" , Alexander Duyck , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next RFC 3/3] net/mlx5: Add FW upgrade reset support Message-ID: <20200116172633.5d873c17@cakuba.hsd1.ca.comcast.net> In-Reply-To: <2f7a4d81-6ed9-7c93-1562-1df4dc7f9578@mellanox.com> References: <1579017328-19643-1-git-send-email-moshe@mellanox.com> <1579017328-19643-4-git-send-email-moshe@mellanox.com> <20200115070145.3db10fe4@cakuba.hsd1.ca.comcast.net> <2f7a4d81-6ed9-7c93-1562-1df4dc7f9578@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 16 Jan 2020 14:52:35 +0000, Moshe Shemesh wrote: > > If multiple devices under one bridge are a real concern (or otherwise > > interdependencies) would it make sense to mark the devices as "reload > > pending" and perform the reloads once all devices in the group has this > > mark set? > > All mlx5 current devices support PCI - Express only. > > PCI-Express device should have its own PCI-Express bridge, it is 1x1 > connection. > > So the check here is just to verify, all functions found under the > bridge are expected to be the same device functions (PFs and VFs). Ah, good, I couldn't confirm that PCIe fact with google fast enough :) The check sounds good then, with perhaps a small suggestion to add a helper in PCIe core if it's already done by two drivers? Can be as a follow up..