Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp332140pxu; Fri, 4 Dec 2020 04:34:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLLbTcHBZXDxwpbANFoQ53KbILgHqfvEX0U1I2oWxu9M/+V+fF+Ej7uP/T7tCoTajb+L+H X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr6730706eje.6.1607085277205; Fri, 04 Dec 2020 04:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607085277; cv=none; d=google.com; s=arc-20160816; b=uNsSwz1NCeJdclOUN6DcNExh9Mtrk6YKPZt79DzuzkPOyImrHyXuysl+TmVjxzH35d YMJPBPMozJZ9YvJ9znnN84q/8i6q2r8980fVwe7E9x+eg4DFPmtaBRzby4KhDCm3510e ZtqnGhowYraC6q9Noipss9lNjE5EBJEY1y9N0uv81oWsfhB7RpT5oW6GLBe2NaKz+Zgh Mi5TVJGhxhZ1GwfQLQQxu7/i2jnEwGtsl1WgTqq83czNZurnyk+/CknyO8pIFz00llkh UCgS+MlxarQiLO+KIpekN3/7IcwsrcdLEZDCSRS3qUM59JWgQe3anHtViJArl7bVDOiC oBhQ== 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; bh=CSSPjbxHKemLl7MMOhyP/XEzy1YOoVmpX/K+cIQvuEg=; b=xK+M09SLhxLcBYnpThH6PLUG/avr+gmVgIDFvjZVBHPK7xogwuPjL2NYsTAucm2v9v mWV5tZkXkwnQowCd+odaLIroziJdKNeOOlIi8bYa8n7UlQFTLFXwXX/RG+kHjXEisnml jYjsaSFpeI5dwWO6Kxf/avvyl0R/8+9LiyT/qKzYby1Q1K6Ieen3Gp6Prg9lavF3gf/g YVnBymYG+ZkgpRppU3AetEXdgxQmk4hdPRHvnd0mACI2xJrPi3Ja+xfleGyo9rp47uAF CJ+GCxt8emHjFOOfmY4XHetseW09Taj/A58XZcIyCk33S6ZCIJ4r3jOqbYan6+qJh2E3 asjA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si2728982eds.215.2020.12.04.04.34.14; Fri, 04 Dec 2020 04:34:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728774AbgLDMcx (ORCPT + 99 others); Fri, 4 Dec 2020 07:32:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:49826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbgLDMcx (ORCPT ); Fri, 4 Dec 2020 07:32:53 -0500 Date: Fri, 4 Dec 2020 14:32:07 +0200 From: Leon Romanovsky To: Greg KH Cc: Dan Williams , broonie@kernel.org, lgirdwood@gmail.com, davem@davemloft.net, kuba@kernel.org, jgg@nvidia.com, Kiran Patil , Ranjani Sridharan , Fred Oh , Dave Ertman , Pierre-Louis Bossart , Shiraz Saleem , Parav Pandit , Martin Habets , linux-rdma@vger.kernel.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [resend/standalone PATCH v4] Add auxiliary bus support Message-ID: <20201204123207.GH16543@unreal> References: <160695681289.505290.8978295443574440604.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 12:42:46PM +0100, Greg KH wrote: > On Wed, Dec 02, 2020 at 04:54:24PM -0800, Dan Williams wrote: > > From: Dave Ertman > > > > Add support for the Auxiliary Bus, auxiliary_device and auxiliary_driver. > > It enables drivers to create an auxiliary_device and bind an > > auxiliary_driver to it. > > > > The bus supports probe/remove shutdown and suspend/resume callbacks. > > Each auxiliary_device has a unique string based id; driver binds to > > an auxiliary_device based on this id through the bus. > > > > Co-developed-by: Kiran Patil > > Co-developed-by: Ranjani Sridharan > > Co-developed-by: Fred Oh > > Co-developed-by: Leon Romanovsky > > Signed-off-by: Kiran Patil > > Signed-off-by: Ranjani Sridharan > > Signed-off-by: Fred Oh > > Signed-off-by: Leon Romanovsky > > Signed-off-by: Dave Ertman > > Reviewed-by: Pierre-Louis Bossart > > Reviewed-by: Shiraz Saleem > > Reviewed-by: Parav Pandit > > Reviewed-by: Dan Williams > > Reviewed-by: Martin Habets > > Link: https://lore.kernel.org/r/20201113161859.1775473-2-david.m.ertman@intel.com > > Signed-off-by: Dan Williams > > --- > > This patch is "To:" the maintainers that have a pending backlog of > > driver updates dependent on this facility, and "Cc:" Greg. Greg, I > > understand you have asked for more time to fully review this and apply > > it to driver-core.git, likely for v5.12, but please consider Acking it > > for v5.11 instead. It looks good to me and several other stakeholders. > > Namely, stakeholders that have pressure building up behind this facility > > in particular Mellanox RDMA, but also SOF, Intel Ethernet, and later on > > Compute Express Link. > > > > I will take the blame for the 2 months of silence that made this awkward > > to take through driver-core.git, but at the same time I do not want to > > see that communication mistake inconvenience other parties that > > reasonably thought this was shaping up to land in v5.11. > > > > I am willing to host this version at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/djbw/linux tags/auxiliary-bus-for-5.11 > > > > ...for all the independent drivers to have a common commit baseline. It > > is not there yet pending Greg's Ack. > > > > For example implementations incorporating this patch, see Dave Ertman's > > SOF series: > > > > https://lore.kernel.org/r/20201113161859.1775473-2-david.m.ertman@intel.com > > > > ...and Leon's mlx5 series: > > > > http://lore.kernel.org/r/20201026111849.1035786-1-leon@kernel.org > > > > PS: Greg I know I promised some review on newcomer patches to help with > > your queue, unfortunately Intel-internal review is keeping my plate > > full. Again, I do not want other stakeholder to be waiting on me to > > resolve that backlog. > > Ok, I spent some hours today playing around with this. I wrote up a > small test-patch for this (how did anyone test this thing???). We are running all verifications tests that we have over our mlx5 driver. It includes devices reloads, power failures, FW reconfiguration to emulate different devices with and without error injections and many more. Up till now, no new bugs that are not known to us were found. <...> > Note, I'm still not comfortable with a few things here. The > documentation feels odd, and didn't really help me out in writing any > test code, which doesn't seem right. Also the use of strings and '.' as > part of the api feels awkward, and messy, and of course, totally > undocumented. Agree, I didn't look on the documentation at all when implemented mlx5. But from driver perspective the usage is quite straightforward. <...> > Thanks for everyone in sticking with this, I know it's been a long slog, > hopefully this will help some driver authors move forward with their > crazy complex devices :) Thanks a lot. > > thanks, > > greg k-h