Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1269800imu; Sat, 17 Nov 2018 21:12:25 -0800 (PST) X-Google-Smtp-Source: AJdET5c9Gw/IQMVMSMth1By/fgg2TwqsJHuvlz7FLcP4twIRJZ9cMGgrNl1/xdg+kQBZ8zFWuR9m X-Received: by 2002:a17:902:2943:: with SMTP id g61-v6mr17565794plb.82.1542517945508; Sat, 17 Nov 2018 21:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542517945; cv=none; d=google.com; s=arc-20160816; b=Cq28XnTEvGnadYcDy1g/+DWxzDJLpvjayv4dEX7UvbP1zaeKCh9hoaWw22jPE9Qq/t BLFx58tO0UvaTS9vk/NkR4mhQHLImDh+FyRBNMDyEcheXPvblTGJ88xgaHBAPuA9GDTS GEzrudZ5/P3krpUgZDGu0lDmnObzd06KdsoJDveYwJrRNrXiHnyRLnRgHOpGRSnSp134 9M7+BtrIXjENkLScO6NiFSvSBtqAmjI3wthmw/mxMrelWwmxrjn/EOC1KFa6B7Yj9aDV +yvRd+UlXgg5DfHATUwZT+Uhla44ElqVZFUHQ4zahyhFuxqUDLSSy15dVwT3AVeTb7x8 Y75g== 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:from:subject:cc:to:message-id:date; bh=cxaKSAV2zOpACCBfGgwTTi4TxlcGlVmSHLOc218jOQo=; b=EgCUgRFEr5fAvowPDz7mVw5/2/5XNVOu/MQ0OvFNfF0ol6ZgU0WPD5yAWznqBxICnG HCcDPEEPraWt2aoH2DGBDhuH7gM54DFoX4duSOPridgbwDVvTUiUbLAvanIDiEvQAfPO yRh2Yt74HF38dJS23fA3i1y0u0c7QVTvpCI4U3Pmr3BWQnnShiyMjS0lH7yk8G0U9utG pwerllip6K/CA6vlywthtT2nU07shHoPtq3cBvc0hhDa0D2iY1MYcDfIPx2sP6zxZCN9 BYisYhMwvDUDkeSWvGKHVOAKbM1kYPUL9DEQU/NMgh7HGX/w0YPfTkfGKGdEI/62nh84 ZmmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si15634033pfn.26.2018.11.17.21.12.10; Sat, 17 Nov 2018 21:12:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726822AbeKRP3R (ORCPT + 99 others); Sun, 18 Nov 2018 10:29:17 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:41354 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbeKRP3R (ORCPT ); Sun, 18 Nov 2018 10:29:17 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B5E29148BBD60; Sat, 17 Nov 2018 21:10:09 -0800 (PST) Date: Sat, 17 Nov 2018 21:10:06 -0800 (PST) Message-Id: <20181117.211006.376669879094627607.davem@davemloft.net> To: sam@mendozajonas.com Cc: netdev@vger.kernel.org, Justin.Lee1@Dell.com, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH net-next v4 0/6] net/ncsi: Allow enabling multiple packages & channels From: David Miller In-Reply-To: <20181116045159.4980-1-sam@mendozajonas.com> References: <20181116045159.4980-1-sam@mendozajonas.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 17 Nov 2018 21:10:09 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samuel Mendoza-Jonas Date: Fri, 16 Nov 2018 15:51:53 +1100 > This series extends the NCSI driver to configure multiple packages > and/or channels simultaneously. Since the RFC series this includes a few > extra changes to fix areas in the driver that either made this harder or > were roadblocks due to deviations from the NCSI specification. > > Patches 1 & 2 fix two issues where the driver made assumptions about the > capabilities of the NCSI topology. > Patches 3 & 4 change some internal semantics slightly to make multi-mode > easier. > Patch 5 introduces a cleaner way of reconfiguring the NCSI configuration > and keeping track of channel states. > Patch 6 implements the main multi-package/multi-channel configuration, > configured via the Netlink interface. > > Readers who have an interesting NCSI setup - especially multi-package > with HWA - please test! I think I've covered all permutations but I > don't have infinite hardware to test on. > > Changes in v2: > - Updated use of the channel lock in ncsi_reset_dev(), making the > channel invisible and leaving the monitor check to > ncsi_stop_channel_monitor(). > - Fixed ncsi_channel_is_tx() to consider the state of channels in other > packages. > Changes in v3: > - Fixed bisectability bug in patch 1 > - Consider channels on all packages in a few places when multi-package > is enabled. > - Avoid doubling up reset operations, and check the current driver state > before reset to let any running operations complete. > - Reorganise the LSC handler slightly to avoid enabling Tx twice. > Changes in v4: > - Fix failover in the single-channel case > - Better handle ncsi_reset_dev() entry during a current config/suspend > operation. Series applied.