From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH rdma-next 02/15] net/mlx5: Set software owner ID during init HCA Date: Wed, 27 Dec 2017 10:52:08 -0700 Message-ID: <20171227175208.GD31310@mellanox.com> References: <20171224125741.25464-1-leon@kernel.org> <20171224125741.25464-3-leon@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Daniel Jurgens Cc: Or Gerlitz , Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Parav Pandit , Saeed Mahameed , Leon Romanovsky List-Id: linux-rdma@vger.kernel.org On Wed, Dec 27, 2017 at 09:27:20AM -0600, Daniel Jurgens wrote: > On 12/24/2017 4:00 PM, Or Gerlitz wrote: > > On Sun, Dec 24, 2017 at 2:57 PM, Leon Romanovsky wrote: > >> From: Daniel Jurgens > >> > >> Generate a unique 128bit identifier for each host and pass that value to > >> firmware in the INIT_HCA command if it reports the sw_owner_id > >> capo ability. This value is used by FW to determine if functions are in > >> use by the same host. > > "capo ability"? > > > > did you want to say the same driver instance? b/c multiple instances > > of the driver can run on a host > No, we want to set the same SW owner ID set for all devices for that > host. Not per driver instance. This commit message is confusing, can you explain it better please? I'm guessing the owner_id is used to match individual port's PCI functions? So, any 'host' that can see multiple PCI function and share ports should set the same ID? What happens when a driver is detached? Eg I rebind the PCI function to VFIO. Does something reset the ID? Not entirely sure why this is being done at all, shouldn't the PCI functions be rather un-ambiguous? Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html