Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp912521imu; Fri, 16 Nov 2018 12:18:06 -0800 (PST) X-Google-Smtp-Source: AJdET5ez2g2Uau1n31fWZ01Jo6RMVoxkzfRqpfD0x5JhmVJ+BIUR2Hk/uLkP1+ZfEJ8gBVRBKkOf X-Received: by 2002:a63:235f:: with SMTP id u31mr11232950pgm.122.1542399486044; Fri, 16 Nov 2018 12:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542399486; cv=none; d=google.com; s=arc-20160816; b=a0eRAcfSIwuoweaID+oj3io9/JXwmW9Jn+ER9eLr80vc2BuwzLjBLhODGE39MTVCv6 pkF2E8RsQ8PF+747VzH4hwPAZI04SyoRDoiAf1GU16HJ7KtFlMgCaFFx50bLNENzSkNQ 2mlyiIi5DyJfWtkBYlnapEJLOVOUfyOZ1F/r6QicmzhDwQdEt+G41e39DiFcSUzddBap XZj3sHGPAULTjgFEB2ohlFeFE1TLzKp46e+tidPGsVDwvI2VPYEuSb5JBMUi6NF97DsP +AIp0N+4ZTON+n0hv2hxjFvKtyi+dz102ddmoElvwAPbAgcTOtS+MP0gmXKGahjMjQjB vwmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=IUE7WJjcjjswA6hKWqswWB38KgzQb3OZ/YEZ/d1Grv0=; b=ejBauttB8YqXnWVWoqJhpmxdNQVIuYc63jsKcAzyEPoMV1S/B9RJoWj82f57DgQOcD Rhh7JSN0KRdAsR2rxzevtQHEqlxcg7E5JwE+b/qVsWVVQ290ee88eqTQuyK4YZ8Q50V0 RIM+YmfqtDS5PyHuL2jE68aAzGUA4Qs/jTgAqnKenBUWc2g8w4o88HWkMNIhuUsuWYBX dhkg4srzbSaL3TMYeaN9KLqDGB7zxU3uxakGKUD11XYDI57TqlcVbA9OOh7Fk948bh2L A7Z9y3biezmaBIFElG5OtGdmwwsMpwjgfotkktzRp30k3OXZyamGeKRAw5EWWMy7+RGF Xo2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@dell.com header.s=smtpout header.b=lNNhsuzu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16-v6si18092775pfm.51.2018.11.16.12.17.50; Fri, 16 Nov 2018 12:18:06 -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=fail header.i=@dell.com header.s=smtpout header.b=lNNhsuzu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbeKQGbC (ORCPT + 99 others); Sat, 17 Nov 2018 01:31:02 -0500 Received: from esa3.dell-outbound.iphmx.com ([68.232.153.94]:49506 "EHLO esa3.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbeKQGbC (ORCPT ); Sat, 17 Nov 2018 01:31:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1542399399; x=1573935399; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=q9rr5wDASznNv+VIvUkbahSjY7vRiRq+kazY61dM4eQ=; b=lNNhsuzu3pKJGLGnhNlm+M9JtmylImlqvJ1RsNYZBVYVoGKzPXZw8Bj3 FPPCiWGKYCLOL3GSJ0hXK306M8OhdfAjxPThZWMtOrrCtXFer9q+s2xA8 259ciYD+r7904iAG8y/5mOf36+DE/ecEAjEuLlfs3KnBHHiWxzRvIdIEy s=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EYAAC7JO9bhiWd50NlHQEBBQEHBQG?= =?us-ascii?q?BUQgBCwGBVYIWJwqMBl+LH4INlzYUgWYLAQGEbAKDVSI0CQ0BAwEBAgEBAgE?= =?us-ascii?q?BAhABAQEKCQsIKS+CNiKCZQEBAQMBEig/BQsCAQg2EFcCBAENBQgagn+Begi?= =?us-ascii?q?dPAKBEIlYAQEBgh2KIowFghaBEYMShGeFcgKBKgGHTCAElk8GAQKRHyCBWIU?= =?us-ascii?q?HihuXaQIEAgQFAhSBRoIOcIFugU6CNRuOCkABMYsYKYEFgR8BAQ?= X-IPAS-Result: =?us-ascii?q?A2EYAAC7JO9bhiWd50NlHQEBBQEHBQGBUQgBCwGBVYIWJ?= =?us-ascii?q?wqMBl+LH4INlzYUgWYLAQGEbAKDVSI0CQ0BAwEBAgEBAgEBAhABAQEKCQsIK?= =?us-ascii?q?S+CNiKCZQEBAQMBEig/BQsCAQg2EFcCBAENBQgagn+BegidPAKBEIlYAQEBg?= =?us-ascii?q?h2KIowFghaBEYMShGeFcgKBKgGHTCAElk8GAQKRHyCBWIUHihuXaQIEAgQFA?= =?us-ascii?q?hSBRoIOcIFugU6CNRuOCkABMYsYKYEFgR8BAQ?= Received: from mx0b-00154901.pphosted.com ([67.231.157.37]) by esa3.dell-outbound.iphmx.com with ESMTP/TLS/AES256-SHA256; 16 Nov 2018 14:16:38 -0600 Received: from pps.filterd (m0089483.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAGK7udk003828; Fri, 16 Nov 2018 15:17:10 -0500 Received: from esa2.dell-outbound2.iphmx.com (esa2.dell-outbound2.iphmx.com [68.232.153.202]) by mx0b-00154901.pphosted.com with ESMTP id 2nsv69jxpv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 16 Nov 2018 15:17:09 -0500 From: Received: from ausxippc101.us.dell.com ([143.166.85.207]) by esa2.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA256; 17 Nov 2018 02:16:48 +0600 X-LoopCount0: from 10.166.135.94 X-IronPort-AV: E=Sophos;i="5.56,241,1539666000"; d="scan'208";a="1162006700" To: , CC: , , Subject: RE: [PATCH net-next v4 0/6] net/ncsi: Allow enabling multiple packages & channels Thread-Topic: [PATCH net-next v4 0/6] net/ncsi: Allow enabling multiple packages & channels Thread-Index: AQHUfWg1dcgy1q1MWUOagrTe9pjUGqVS0K7Q Date: Fri, 16 Nov 2018 20:17:06 +0000 Message-ID: References: <20181116045159.4980-1-sam@mendozajonas.com> In-Reply-To: <20181116045159.4980-1-sam@mendozajonas.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.242.75] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-16_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=808 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811160179 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Samuel, I have reviewed/tested it. It works well. Thanks for supporting these featu= res! Justin Reviewed-by: Justin Lee Tested-by: Justin Lee > This series extends the NCSI driver to configure multiple packages and/or= channels simultaneously. Since the RFC series this includes a few extra ch= anges to fix areas in the driver that either made this harder or were roadb= locks due to deviations from the NCSI specification. >=20 > 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, co= nfigured via the Netlink interface. >=20 > Readers who have an interesting NCSI setup - especially multi-package wit= h HWA - please test! I think I've covered all permutations but I don't have= infinite hardware to test on. >=20 > 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 p= ackages. > 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 op= eration. >=20 > Samuel Mendoza-Jonas (6): > net/ncsi: Don't enable all channels when HWA available > net/ncsi: Probe single packages to avoid conflict > net/ncsi: Don't deselect package in suspend if active > net/ncsi: Don't mark configured channels inactive > net/ncsi: Reset channel state in ncsi_start_dev() > net/ncsi: Configure multi-package, multi-channel modes with failover >=20 > include/uapi/linux/ncsi.h | 15 ++ > net/ncsi/internal.h | 19 +- > net/ncsi/ncsi-aen.c | 75 ++++-- > net/ncsi/ncsi-manage.c | 522 +++++++++++++++++++++++++++----------- > net/ncsi/ncsi-netlink.c | 233 ++++++++++++++--- > net/ncsi/ncsi-rsp.c | 2 +- > 6 files changed, 660 insertions(+), 206 deletions(-) >=20 > -- > 2.19.1