Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp308129rwe; Fri, 14 Apr 2023 03:13:10 -0700 (PDT) X-Google-Smtp-Source: AKy350avf02Ogr6C8zTCaauj3kQVkDJcad0jIgY7I3guPPPGstD9k0cbsUMSQf2LQUepSurJj1b1 X-Received: by 2002:a17:90a:b318:b0:23d:3c7b:8684 with SMTP id d24-20020a17090ab31800b0023d3c7b8684mr5243470pjr.41.1681467190436; Fri, 14 Apr 2023 03:13:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681467190; cv=pass; d=google.com; s=arc-20160816; b=uUR5jSVE9Shjgydx9TgwNPDe4/iFXg0cpXmxf2ExooMhojc3WWe3UcU9mK+9CqA1rI 7zgASc7FUwu/HVNzjtorj68tIUKfKzv57Wv/J9QZtpJqBd431c+cXEUfH+7sMa/JzRgW +4uLNWIXO6kWCGPx0Hh7pB9+0cV1G6ooUnuDr2ql+eK/aoNZwXUPuzsPltjM1zqwjTUu faVj2IqKsgzizZ4yNSH9md3D69oMA/rOPtWuEINQHhZIkBi3dmkjmA8uAFrLeF6140OQ XW36HU1F/oa9mLsxrutD1nqH3wx5IUbu8lsOzw6O2I9BgTEectjIWDa+wxbE5XQk56zz tptQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=vJ8iw5t/QEHvF2JLl4JszZJXVzQpXWMGfubzgdRjk38=; b=mDWeWMIlrCVde7yktWQ+Zcm8DQHz0e8hej0NO7Vkff5UA7j9Ltqq1NzesZ6rh75uh9 CqxPUdFAnvljKK2z3dJOmL0MRmWqaUlKnDtQ3fViT9MgBO5imU5yQKWXutXu+dIUPeGK GGusE+RA9o7RtJMq+YLP0ZYh41diJMiL47eqpbd27R4bSi4zVj2MCpuQLhb+rARMRsmm KYtCf2yfvo7yBRhSGi+REQHz5Z4LGc9jzV44K0S5y1ywQOqmUn0Y7mfGDtozV5jnpkoE zG/8+iq+H5phvpdhY5dDFkGa7ngPJQ7fPO6pXfH6ZhwmNicIAPrrpD2hRaUic5h6QLhJ sNIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AFtN3SB7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i20-20020a17090acf9400b0023418ec51f8si6785207pju.136.2023.04.14.03.12.56; Fri, 14 Apr 2023 03:13:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AFtN3SB7; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjDNKFj (ORCPT + 99 others); Fri, 14 Apr 2023 06:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbjDNKFh (ORCPT ); Fri, 14 Apr 2023 06:05:37 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB0CA256; Fri, 14 Apr 2023 03:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681466694; x=1713002694; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vJ8iw5t/QEHvF2JLl4JszZJXVzQpXWMGfubzgdRjk38=; b=AFtN3SB78arwmIkonGLsFVDBGca3GVImzGu0SFiNOOz2FO8f9mbADl4n 57E64spcwaBkn12GpwVUpl5NbPAUbu4d3lHInE5ru44goCLqAf+dLCqtR quhXbE+cAoD0nZTkasbB1HZB4mzt4QPYuWYvhZbHYRFvxSh8Hg50QKpHw ikeq7AtRxWoAyyHL4cKOIAXpz7c4h3zxrddhfwayBBhoWBrv0D9GkMf9p eUOuKnR17jx4FzlpFGz0NumQt0eDSYREJJlltNFdmRB0CfEpkaukKsbFS E6sEHqkFMvuU5HCSYZoRx/6uBb+AYuwIjBjXJd77rNlswSQb1FzAzlwVM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="407302444" X-IronPort-AV: E=Sophos;i="5.99,195,1677571200"; d="scan'208";a="407302444" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2023 03:04:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="801148031" X-IronPort-AV: E=Sophos;i="5.99,195,1677571200"; d="scan'208";a="801148031" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga002.fm.intel.com with ESMTP; 14 Apr 2023 03:04:09 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 14 Apr 2023 03:04:08 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Fri, 14 Apr 2023 03:04:08 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.170) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Fri, 14 Apr 2023 03:04:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V9e8ttAi11qLz496+1cce7mMRTDi0COFsT3uwwHSGozO+dtAKYh0k3/1npAfupCIgnYOL4XaqblQ+52PxJ+QEJoKMfI2LG180TIAEwMLqoMn+jlO2nXVo0EaRXitIheyCKqyjpXjis87HgaSpj6mdyZGRlSlV9q3tUgbItx9DA9Bjq2AsacncoZaYTm9v37K2VeIlAaojSEOPC15P3eO5W15OsqIxEH4RDLFrcsVhFt2k/+d7a/26AqbHq5YlIQupVxWcbPrJmlJPDETMZclPUSyRnOSQ14ymwTLyuE4sKBy3T0TMnT2qDKlwHxNEdw9g7iw025BrrCZTG1zjsiyWg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vJ8iw5t/QEHvF2JLl4JszZJXVzQpXWMGfubzgdRjk38=; b=bgOxSBnFkuxPdrLl4EsaRSADaaCGaaniUddF693xMAxZyUSuNYNVfVGAyCN75bAGCZpk5XK9VskSpNOz65sqXX7cgw9Z3x7pCQGQiKxE769c0w9sL8rSpU6uw82DgorbmPom6W08HZ6pLc9e8qND8kBE8gzdUvD0Zy07ROZOV4nSIul4nBlqixFq2iSM3d8BdcBmRYSPmoP2vfylzQlcGHmy1s9HRM0nGgFJw0sjIUCFqf6PcIf+pmJFFC2XxtVg0Niz8yBPBJroNV8/3rpjQXTNmUBcZ5pQ+WRDnUjOws27cFr9Zt85xnaEK2GAH8DatzDnH/YE7TqfDi9YDQ3TZg== 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 Received: from DM6PR11MB4657.namprd11.prod.outlook.com (2603:10b6:5:2a6::7) by SA1PR11MB6687.namprd11.prod.outlook.com (2603:10b6:806:25a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Fri, 14 Apr 2023 10:04:06 +0000 Received: from DM6PR11MB4657.namprd11.prod.outlook.com ([fe80::f829:c44d:af33:e2c8]) by DM6PR11MB4657.namprd11.prod.outlook.com ([fe80::f829:c44d:af33:e2c8%4]) with mapi id 15.20.6298.030; Fri, 14 Apr 2023 10:04:06 +0000 From: "Kubalewski, Arkadiusz" To: Jakub Kicinski CC: "jiri@resnulli.us" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "corbet@lwn.net" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "richardcochran@gmail.com" , "netdev@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" Subject: RE: [RFC PATCH v1] ice: add CGU info to devlink info callback Thread-Topic: [RFC PATCH v1] ice: add CGU info to devlink info callback Thread-Index: AQHZbURL//7N1kf7H06LoNzMTKXBn68ol1EAgACoMpCAABhVgIABPbbA Date: Fri, 14 Apr 2023 10:04:05 +0000 Message-ID: References: <20230412133811.2518336-1-arkadiusz.kubalewski@intel.com> <20230412203500.36fb7c36@kernel.org> <20230413080405.30bbe3bd@kernel.org> In-Reply-To: <20230413080405.30bbe3bd@kernel.org> Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR11MB4657:EE_|SA1PR11MB6687:EE_ x-ms-office365-filtering-correlation-id: 8d397050-d098-46da-71ea-08db3ccf94dc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ne2WC0SCN5qRZNEB2o+vyHs6zqBlFJE6Yga5v93IG+NQON+bNLd0IxrmzEGeOZtuOf1rrQL59LJe0px8kQ5/aOMYY4paeSNizlarlKgGfAO9aJ2lEQ6DbMWOa/44C8V1IiSik4YqHsgU2+8oiRO7M7B7p5VPLFxrZzgA61zOtKwg4a54lMB8XpRj1Ytl1ij6NpSWGhBkux3CDrILgxZ+8RHMWhiiVV6kkD/fNGqufvSOPBJiWR8YbdmdpGMXPyPcgxkxiQXNRaynLms+SCioaz9THoYpl0GinX8OIpwStXoaEKs0pRhdqdAl2wtjdTSPLU4iCKUNWqGdJRvtcLakENyIEpcE6VNzNkEhzRHhz8jZz/F+X3L5vWAaOIcQNyrAoMNqjIxeUsfVYJF/g1nfjyrUtmUqUO96ZK9B69ftBKGnW7eXB1Yi2WUk5STTt1at8DN1aKYbFkHdXa9WAU3NAz6aC6uweC4IFZsJkTd7bfe6jBbFUuhOdvhQpmGuYYvVX60C8uipLDF/CtSCnVSSrSOPcLBBCPeDZ5mkafu3ibf71t6GVO2ekpWrZ/75jrccU+oDefKQo2sjx9W8zr6lQ7rp0XaYpPE/F2KfJ1w32chR0d5gL+xLyOrJ5sz7eW+n x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(39860400002)(136003)(366004)(376002)(451199021)(71200400001)(7696005)(6916009)(66476007)(66556008)(64756008)(66946007)(76116006)(4326008)(66446008)(2906002)(7416002)(38070700005)(86362001)(38100700002)(122000001)(52536014)(41300700001)(82960400001)(5660300002)(33656002)(8936002)(8676002)(316002)(478600001)(55016003)(54906003)(9686003)(6506007)(26005)(186003)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0OiKSa9hnQEEXhaF/Ke+X8y3hGBTQBzL1DQ8m4ZdaP8iR7Jwjar5BoI6nkZd?= =?us-ascii?Q?uSgFOnONJ98DzLgCzDWgfM8jUr+/iq011FZcYgKnR3s2JLjsUCQOgOcLiGtY?= =?us-ascii?Q?XZJuNxIKf4QVl2s4b6Ssw4Dxx391kVdzM0mzc5pkVUqtlQxL/iK/ab8rDvws?= =?us-ascii?Q?Ne+6D92UZh0cfyKA5kL7N8Ps6WHD4VmxVee8hnAqqcLFe6sRN7NhKlBBYapr?= =?us-ascii?Q?zdNZHAB08pRvpWH2N12UzDG1fO833l+Sb0RmlJ7toGcUNOZv7hCvmIz+wn8K?= =?us-ascii?Q?kNtGlhNXUgeruaAXOItg5a4moX76WGz0x2YmGQ0XQ0fZkGblhJThBqEtr+JH?= =?us-ascii?Q?zKVGc5VNvZ2A+vvL3CALpRXaki6Ta40eEQPPo0MGNoa3apu/8y6Z1g/joQgK?= =?us-ascii?Q?Chs8LG7BDID1H67Giok6ACt3W4of0m36eg9CFeWSzYAItSifmxRpbn+oiu22?= =?us-ascii?Q?eKLqV1RYrQgKEZkLW5s8hw55SGHzWVvO3yiUH5B+WWVtyvfVf5oe157nHLVi?= =?us-ascii?Q?ujiTyjCPZcsru1qaGMNWY+6gIvA64bfswWiXAz7ta6KvdSjdF94wur4vhuYH?= =?us-ascii?Q?BSK1aCYIgfAXncswGCDySGyppTPtlpgq/pY2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?Y5vBodfqIdhK3oQb9qtB9A7s3vLk85k70CbHtnyoMrLn/DG1QxSqJ8INvXOY?= =?us-ascii?Q?7mVGGCd9rkdB8joJHmkfqxuyITATgJQIk1F7L2I+CZwB5pnigyQWlXIyxnRl?= =?us-ascii?Q?7Q=3D=3D?= 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: DM6PR11MB4657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d397050-d098-46da-71ea-08db3ccf94dc X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2023 10:04:05.6182 (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: AdX4zIre5ssUud1UXmRIFgs8tMUQJmleq1CjtbjGjynB0ZT6g1MuhyB6C0A++tb6OzKtUhuQWz5M0voRMyBYlLfaql1i3sANpAe8w1XfPIc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB6687 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >From: Jakub Kicinski >Sent: Thursday, April 13, 2023 5:04 PM > >On Thu, 13 Apr 2023 13:43:52 +0000 Kubalewski, Arkadiusz wrote: >> >Is it flashed together with the rest of the FW components of the NIC? >> >Or the update method is different? >> >> Right now there is no mechanics for CGU firmware update at all, this is = why I >> mention that this is for now mostly for debugging purposes. >> There are already some works ongoing to have CGU FW update possible, fir= st >>with >> Intel's nvmupdate packages and tools. But, for Linux we probably also go= nna >> need to support update through devlink, at least this seems right thing = to >>do, >> as there is already possibility to update NIC firmware with devlink. > >Only FW versions which are updated with a single flashing operation / >are part of a single FW image should be reported under the device >instance. If the flash is separate you need to create a separate >devlink (sub)instance or something along those lines. > >Differently put - the components in the API are components of the FW >image, not components of a board. > >We had a similar discussion about "line cards" before. Well, this makes sense. Although I double checked, and it seems I wasn't clear on previous explanat= ion. Once FW update is possible with Intel's nvmupdate tools, the devlink FW upd= ate also going to update CGU firmware (part of nvm-flash region), so after all = this seems a right place for this info. Thanks, Arkadiusz