From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BDB0CA0C47; Tue, 10 Aug 2021 06:44:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A0FC04068E; Tue, 10 Aug 2021 06:44:05 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 7D60340683 for ; Tue, 10 Aug 2021 06:44:03 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="275868435" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="275868435" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2021 21:44:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="502996905" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga001.jf.intel.com with ESMTP; 09 Aug 2021 21:44:02 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 9 Aug 2021 21:44:02 -0700 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 9 Aug 2021 21:44:01 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Mon, 9 Aug 2021 21:44:01 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Mon, 9 Aug 2021 21:44:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LhSznHBXOxxri6VLZ39p/bdqFPsX5dxk2InjLputpJiAYw1C/a5GVxTg2xLPhs8psZGKeew1Uti0uqQLwI3b4a31WzfkdJXIhkaOZ6iz5ydMAfYdT1OC8xQN5rH2TVsExCKRNMN5YBltbABNUOHFnlEpBXLFi5Xd/tlNeuC0rjerQVmAgx0eRFVDev3V0hgfDI+vbyCSa6WceIA0cZYm7qChLyG2yJyK3kckzUnvm0U9eHHR3M7B7UDyoQ7Rn16PloE9s2Me2/fE0avKtbhj7UM6DBvdhJPa+LhSB1vEvNhWEIB+ZziEKQZwYUWra+LFMwrrC52WUQz+SImlbc/Zpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hmPJ+D+RCxCg5kJIqRUoO2+X1n0kNx53PxF2x7dhMcI=; b=DHmVxYZpqql/dbImGNYXUvjWvAv+RwK+FW1Z0LpTkMVNRe4SpXIyPUOlmi1f1wB6JVZ0x2jWIyl6CXL8Em+4+E0X8ZG+SqiXYbaPSUnchE/WcLGFTm1M8ZQ1/n4tm7rixSd+yLF407AF1t6OQg4UHzKaZq9J+OyAm1q2KPiFdt241I6Qpv8DiXGuYPgAx/xZ2UrFlu1yGp4ibAnfRRIc9jUGAYnKf/i8Y4qdAyEFkKF9nbboHZV87+8Im3hzklT4p1bPGx1W6+Pmu9U8lM+MO4y+AJ0+sEabnWYdl6GnahGLCdZM7EXbspPqwXEzvj25oPnGlzU+SNTOT07fKVrGhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hmPJ+D+RCxCg5kJIqRUoO2+X1n0kNx53PxF2x7dhMcI=; b=OVAFE7DfIhsrdsS4gmJi2sqFAUZRYV7uwIdDA/CZ6BCrU7c6ZRFhb2eSE7HwuljTJinCoVaaRWFoP5SKp6TQM+SwZ+oCQS8QGGLNeWdg8zUi2sB92joVb9sj82JQt3W4wZxWco419ar4ws6oSuf+bl1qNvF6FvMsoNLUu3u40cE= Received: from DM6PR11MB3723.namprd11.prod.outlook.com (2603:10b6:5:13f::25) by DM6PR11MB3322.namprd11.prod.outlook.com (2603:10b6:5:55::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Tue, 10 Aug 2021 04:43:58 +0000 Received: from DM6PR11MB3723.namprd11.prod.outlook.com ([fe80::1c0c:7480:b096:196d]) by DM6PR11MB3723.namprd11.prod.outlook.com ([fe80::1c0c:7480:b096:196d%5]) with mapi id 15.20.4394.023; Tue, 10 Aug 2021 04:43:58 +0000 From: "Guo, Junfeng" To: "Zhang, Qi Z" , "Yang, Qiming" CC: "dev@dpdk.org" , "Keller, Jacob E" Thread-Topic: [PATCH 21/28] net/ice/base: enable NVM update reset capabilities Thread-Index: AQHXjZJZ3e4aE7pXUEGx4g0TpTVfm6tsKW0Q Date: Tue, 10 Aug 2021 04:43:58 +0000 Message-ID: References: <20210810025140.1698163-1-qi.z.zhang@intel.com> <20210810025140.1698163-22-qi.z.zhang@intel.com> In-Reply-To: <20210810025140.1698163-22-qi.z.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d6659ae3-e03e-4b2d-be1b-08d95bb977a5 x-ms-traffictypediagnostic: DM6PR11MB3322: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1824; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fyJnwk+3yAMgVmcBPSGtj0eAarlI45UA4dR4SWlv///ZNGQKVlhWboCEnsNqNKwwRAaJSZfB+6VOiMU9lU1neaHPkj9Ig0V8JQkQE0b158RP7bNoTENQhnmXnSujxO8d1IYfMaM98ZCHQASJYMQZL+JiyVi0/cGASlIS//0PMxvxAFEQiSn7TpmvL9V4LZSG4Xsx///Wbdgm6QOT3LdrlcPYi9l3//1a3mJPq5kHIR9pTxJXylCjM/a35s8WK3Imx76GpJAFpjDTcvdm2CIRwtxS2YqZSEUCD0KuXZAOw+X4/Qf9B1QFl3WiCdEVXYsruTfEMnlcaCBQIb4tMHibgdyluE/HtwkZgYXln7SPM5O2y0nJ6XIL4VFGUYq8iapB0lvES4dY65e9m6eDNj4O4upus65so7fHsFiz3QxjIsF/4958l8eM8GqUZCnVoAkollzRsnXr/OtT6a4YuYy3HqojOa8uiXRnbMyO96+U713WR1CVPjrra6Cg5xoQqEccnMgA7AyrcmSdlWYB3yPat14I9z6JBsRDvJ/lCek11Un6EFFe5FIl9mjgIukw4XSwFCn9uobczlblq6htE2LfGW+VLKn3VdcGw0CX6RFi4b4Aa/yvGBQxQpVsAVOuv2BaxZhUHxL7qn7wuRV7IwvFGqIHGZoKPDwry9FgEgSMg1mA2Y0eZeZyG/002Mnfjxr7+CJun7SqzASKqXm8iUtUYA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3723.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(376002)(366004)(396003)(346002)(316002)(9686003)(83380400001)(110136005)(122000001)(38100700002)(52536014)(6506007)(15650500001)(7696005)(53546011)(66476007)(64756008)(66446008)(38070700005)(186003)(2906002)(66556008)(107886003)(26005)(33656002)(71200400001)(4326008)(8936002)(55016002)(8676002)(6636002)(66946007)(86362001)(76116006)(54906003)(5660300002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ccSUQ24TGrrXX2rofCibV48o3kBiMqjLe94XYKzvs9UyZze1aGV9qr3nDtUj?= =?us-ascii?Q?bsfo4kucJvu2TSV86D63aKFK8Bdv0WJ45yWtrTb2ZBsMznLrrb7XIkyjapYy?= =?us-ascii?Q?ljhiswTyRnXd4FXcjGhFuYpeWrwz3QeHt6Rim7lb6dlbIJfMl3+eYsC6k175?= =?us-ascii?Q?lZr+OPR+y7LmQooAtz9CulyH96sAEbyaEu2toc83syUBoyzApWSI3B/ssZDL?= =?us-ascii?Q?AnmINkUGeJPd5SOu/ajEfkm42kE+DybvGkhUOd4ihTFFHY2eidDBeQ0T++td?= =?us-ascii?Q?4QluEgw/PhHLVLUvv+CK311uoFNbqAg3Q+IbRCJQUCGOs3BevFXJUU28D0HC?= =?us-ascii?Q?pXb8cosEH2gbPJ9jOAeR546KNGd06mFzJVLHKmkZ8z3yfbsqgaT0XhnfnAlt?= =?us-ascii?Q?Pep2PvkEtJWGNNrRxooPg0A68iAI4dsEWjq2y09AldLPRqwF3tq54Ot8Jp+Z?= =?us-ascii?Q?n5uC47fb1Uy/Tzt1z4k3Gsx0a0WISQx70tcKWZbT0jZjsPIkoyuzgFtstYkU?= =?us-ascii?Q?Vn0GgN57R6l7+Ut7iEIeQUQxqK43bvDb/tHMpincV4p1EN8tokuM1JArCQao?= =?us-ascii?Q?KaS02KGMAE62cI/C4zdkwHJBKPvSY0JwGScT43qXaGFe6c2dx3hGlo9kQmJF?= =?us-ascii?Q?WZKoYpyNQgz6y1sWWZiqxDcc0XGlewzekKo+FvNhqdaJY6CruF4pBw+UrwqD?= =?us-ascii?Q?GgZUgrFScXl250cOakqDS6VTK+/PXtpHTCmKGGi/w1kXeIdS1+opKmBx1qKq?= =?us-ascii?Q?ycrjduq+6rOmGq1/VOpvVM0MMyQxZNShmut0NFeJ+3SXwWE7xAakC6RAGcI0?= =?us-ascii?Q?RKG0r5Epq2ECOPJF7qa8C9aw29zSBIEXU2/CQXBD5dXekz88x+C+mMpsbnfj?= =?us-ascii?Q?U+YYOjQ3M+6am0dNHErQi8OPumJey9aZAZ7kD/WDAQVeCqPiejUTEHvRTOrq?= =?us-ascii?Q?0vDN1sOYKjc+CmqVy80+MXtMLmJR3+wxzqoOd9pagyViRQyspz6Puqqa4fnA?= =?us-ascii?Q?bHNLY5ZtoJMAK3Dd0YaxK2mwg0O7ShNog8dXy1laaKLRxrZ8Ci2J8bUF5Ca5?= =?us-ascii?Q?BohEbP+RXdCDA8KM9RuA0ohy0HHcvJTL5Wv9cSrRyq12rwORNBKWPU0uISSW?= =?us-ascii?Q?nZOAmx8zaH9T1FYYr/trAGZkA/Nu7l1i0uEWPSy6m9qNnDv6GUXpiD10FXMZ?= =?us-ascii?Q?OsxcB1w1wvA+LA8RdRFEK/sfDXgfKrDcmflW/Qfy2JgHsAb74P5DAJscc/xi?= =?us-ascii?Q?LYSovfmY4DrlrXMlNzDAFJIPKER1dB/ZiFmsrGeb+o4165GyQ39ODPWtwKSA?= =?us-ascii?Q?rxNdm60T/b1ZrjqsavmTZkPC?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3723.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6659ae3-e03e-4b2d-be1b-08d95bb977a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 04:43:58.3474 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Rzfb2fSorqwIlmJMD48Vb7dEo0A9WEcUKKWPyU+9OBY7QfBgppAKlq0vGBxvi/OtRJjuwDZvjI321GkBXxXWBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3322 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 21/28] net/ice/base: enable NVM update reset capabilities X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Zhang, Qi Z > Sent: Tuesday, August 10, 2021 10:52 > To: Yang, Qiming > Cc: Guo, Junfeng ; dev@dpdk.org; Zhang, Qi Z > ; Keller, Jacob E > Subject: [PATCH 21/28] net/ice/base: enable NVM update reset > capabilities >=20 > Add logic to parse capabilities relating to the firmware update reset > requirements. This includes both capability 0x76, which informs the > driver if the firmware can sometimes skip PCIe resets, and 0x77, which > informs the driver if the firmware might potentially restrict EMP > resets. >=20 > For capability 0x76, if the number is 1, the firmware will report the > required reset level for a given update as part of its response to the > last command sent to program the NVM bank. (Otherwise, if the firmware > does not support this capability then it will always send a 0 in the > field of the response). >=20 > For capability 0x77, if the number is 1, the firmware will report when > EMP reset is available as part of the response to the command for > switching flash banks. (Otherwise, if the firmware does not support this > capability, it will always send a 0 in the field of the response > message). >=20 > These capabilities are required to implement immediate firmware > activation. If the capabilities are set, software can read the response > data and determine what reset level is required to activate the firmware > image. If only an EMP reset is required, and if the EMP reset is not > restricted by firmware, then the driver can issue an EMP reset to > immediately activate the new firmware. >=20 > Signed-off-by: Jacob Keller > Signed-off-by: Qi Zhang > --- > drivers/net/ice/base/ice_common.c | 12 ++++++++++++ > drivers/net/ice/base/ice_type.h | 4 ++++ > 2 files changed, 16 insertions(+) >=20 > -- > 2.26.2 Acked-by: Junfeng Guo Regards, Junfeng Guo