Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5234828rdb; Wed, 13 Dec 2023 03:03:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFP81nMDuNzwPVVoZ/U654FPvv7oVdeq7aKx9D1QSM+MV3jQqkegBhwhzUfLRtO/0gJLh09 X-Received: by 2002:a05:6a20:7d97:b0:18b:e5f7:25c5 with SMTP id v23-20020a056a207d9700b0018be5f725c5mr11247504pzj.11.1702465399261; Wed, 13 Dec 2023 03:03:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702465399; cv=pass; d=google.com; s=arc-20160816; b=ufXVd2fTZ9L+4LwCZqvmv9JcJcuEQRCbq50B2hz+LuGcp3RZmV/+1rv28w/ESk2Gsq GCd8I7OyeY8NC2b6hxsVpCOxLVh0lxiQiXlJ6AnxP6aCu2Ca8z5RE/rXec35NiZhmhVL 4pBQ/b+It+j7PUxPlFpkiMa255+228sMfH3BZLO4+JW5Oj3dUwYFA8PDdHFqx+IjWKNg qwxolkvb2MEJ+CLAFKouuSKmO8lbGrPeHCHxHL9ujVbJADkC9dshobvuV0gaE5UFX+Pa Ot/LgHt09WohetBB23YZBMP8sg3lUR/DZD1m76psrsl8dQ43djzwFx/Eh4+AVlnE7ERo KTzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PTpA+FOZRJqP/LcrGpbOjKtVKDmMrv1Kkx6vHEedyYM=; fh=vdGliulJ9YE9FCNmH1ERM1pcqnd98bbIYFuAwohuwXY=; b=0WkCDKmmRnAufsvAWiEPELAPWAWEPpaSwPDAkwylwm3nI0AOvqpRk2G2pacI3KrVfi D7GnmXgyP+qQcn6qECMTNOuOqoimSZMy8q1ueu4h7gQOjdJN9tEoeS6OsoNkpdQeagMm 4Juj7+na+XH0ZN0otr7auaSBNu4KqzyeKY6fcBDuHsHNdVQa4zP79wZfbKBQreKdnfWR Mb8a91Eqt5tjV731RzfZX9pUzQeM6lZNYrqpiYXebcnxwap+uvVSURyy5rtFze1P9g12 HXVJWy5AlcTZpHtG9lqJEAu8ygOn/8EB1F+3PhdiVhuLRAFxZGLw84QOba8atYBHS5xk vllg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=lmGmXuau; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id a11-20020a634d0b000000b005c621f7280csi9248494pgb.466.2023.12.13.03.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 03:03:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=lmGmXuau; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EB4E682072C8; Wed, 13 Dec 2023 03:03:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378327AbjLMLDA (ORCPT + 99 others); Wed, 13 Dec 2023 06:03:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378551AbjLMLC7 (ORCPT ); Wed, 13 Dec 2023 06:02:59 -0500 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2064.outbound.protection.outlook.com [40.107.96.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B841510F; Wed, 13 Dec 2023 03:03:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MKSMFy6i51sSbIeNLvFGDZ79ZYGzlO4rhgvFiyL4cpDJRrCASVxde/HxGEsiniuM0J6WvzQWlyPYhKban+oaEilrGKU0FTdANucWvuQP29PizZCBgrIknVqErxrh3JzxU4ZrCvfJaknsWzdFc0jasU1Xhrb/eoGRvFFR0L7//W6yUTmLECF4gL80DvtJvEy8fWaeLgFtfzevkasAph9Zum68vZIY8NtOkc8dpx3G0WO6VwjKc4ljYisUA8T7qxeKOCnf1RucZDR13UFG70rxKX4T6wXGpRRiBNUUL1y5EBXvm8FiD7DLXIHZe3f5AwJK4y54GZgbhJVfiHT/6ob9ug== 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=PTpA+FOZRJqP/LcrGpbOjKtVKDmMrv1Kkx6vHEedyYM=; b=Y1zfuVNBT0i7bO1ZSeLmyIsTfc3IxCgEY5IqvUFbY+maAgjSmaTI9e39ikXM212ULL2lTODrxnFgyLJ2tyd5PrRszYCldzcogv0Lm9KAHgdzzEPsfl8s4CsPmEoaVNFn6Gpg3sSyRbtlC004O5JF4TrcXjYtE7Mbz4zEPHNZDpsKl0R/Uw3K7wwRM/EzbxU8A4L/RFOw8J5zJUR0RIXhtVz/q/hdamxEat1Av8KXWW8sNnnBWVm3l3VHoKynRZcaOfgbrkyoLi8BsQwNdufE26CX2OVn4JGL+4xtop4viipuHVvMlKw7wmLB7Oy7IUyUNVtt5qt6EQEq8lQMJweFtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PTpA+FOZRJqP/LcrGpbOjKtVKDmMrv1Kkx6vHEedyYM=; b=lmGmXuauPSZBvkhD0wSqFfWWoEmRLovIzSnYwW0EKYo4vWt+D94TmQoOhTLuFfF2RJgn9ValE+bNe2S/ZuibqLM3BsM87FYbR1/y3wBpedmh5d47o195G7UzJ11Hh7xNkfstEs0X4/4zHPJXd/r1PSb+UdcDEgwSNz2FTMZ1v1e0Q1uCrIygI6SWYss41fIW/HeoYTwhqi0ECUGsuQNheRJnA/SYA9lRdI9nhx6IjjU8EhApkelYvNOwAW8oKTOr4FHOyXtkEOKIDMgm8iwZcOKSASHRBDUnCdaN6qGApgKy2gaKQDCog9FqgI7wbkbGU+AtuV5F6+XdAQYnaep/RQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from IA1PR12MB6163.namprd12.prod.outlook.com (2603:10b6:208:3e9::22) by CYYPR12MB9014.namprd12.prod.outlook.com (2603:10b6:930:bf::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26; Wed, 13 Dec 2023 11:03:00 +0000 Received: from IA1PR12MB6163.namprd12.prod.outlook.com ([fe80::148e:6823:e6c0:ffbc]) by IA1PR12MB6163.namprd12.prod.outlook.com ([fe80::148e:6823:e6c0:ffbc%2]) with mapi id 15.20.7091.022; Wed, 13 Dec 2023 11:02:59 +0000 Date: Wed, 13 Dec 2023 13:02:55 +0200 From: Ido Schimmel To: Jakub Kicinski Cc: Jijie Shao , yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, shenjian15@huawei.com, wangjie125@huawei.com, liuyonglong@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn Subject: Re: [PATCH net-next 5/6] net: hns3: Add support for some CMIS transceiver modules Message-ID: References: <20231211020816.69434-1-shaojijie@huawei.com> <20231211020816.69434-6-shaojijie@huawei.com> <20231211192122.14da98f0@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231211192122.14da98f0@kernel.org> X-ClientProxiedBy: LO4P123CA0287.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:195::22) To IA1PR12MB6163.namprd12.prod.outlook.com (2603:10b6:208:3e9::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6163:EE_|CYYPR12MB9014:EE_ X-MS-Office365-Filtering-Correlation-Id: 3cff0631-f9fb-4c1a-a940-08dbfbcb11ac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S4sfQnCs1VdBMyDgXyb5JMRmOp6bJl0rLC1+0M0dz6FO8+OT6LToSFDBXKWwV9i/Mpf8ZruC7AjK70as3Cn11wWWwR8NvcGzc969KR/dMbX2q9irKKK4rPxD27KBuYGu7Vb67GGMCILvyUOgSvFVj+PiB85d4qcCkX80Gk51/7lExwv0R+MmN/EBP+/u9LYvvq7abAxvP42HEveKbzm21GC2tDUoCdh4EeqkqFE48mTPaLnXcUUTB8wK3mIOuVvuyRnuzYnUxjf6uf4jE3EPqMLSrMQZYTBOQadLwVcQW2xoJzcrdY/K/Vx8RSQZwuA24YHVfBgI0lKyV4lABZUFfAobctz6w75gdzxzIMV6BbkUa+FmYtp/DOBhJyB3ORraF5jak/KhFp+yadx7R5kjvxZhdxLy9FORGV5YMIaJ2ETEXZfE3kW48bXCia7SN2B3YZh9mryS65Rzj/QwDpXTQxbGJjTF7ENuqNfJXuIZo4ImdrzHEpkfJVmZbv3wBoKA5guisQr4jT75/O03Q5eYbrhsfkm/lR2sUXgPXaQNCzhGfJGT1Zq0GTZpYUbC0esk X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR12MB6163.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(376002)(346002)(396003)(366004)(136003)(39860400002)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(6506007)(9686003)(6512007)(26005)(38100700002)(4326008)(7416002)(8936002)(5660300002)(8676002)(41300700001)(4744005)(2906002)(6486002)(478600001)(6666004)(33716001)(316002)(54906003)(66476007)(6916009)(66946007)(66556008)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?OwbRup+Ouga2cINz1jtkX7emLEYPBqLJVfehVuChlzL79dh6HJmmo+wFGOwy?= =?us-ascii?Q?ru0a+zsYzFuWepDqnR+N80gc3DG3VwRou98c5IaB0tpMGigd4T8ZPVPyC+NO?= =?us-ascii?Q?P51nTbQBdm7A7F22r4mcF3g5ZD26uCZpyyGVxEi2b64NA70fgebGv33MBfFY?= =?us-ascii?Q?C1LTJSgqmmr/JOakvQSH0jSqSpUtBzfe2FtGe93hH/rCins1qGMWU81tnd6X?= =?us-ascii?Q?OXheLxSiVkD3pSDAosNCuXE+GpaTxuZUlSajPOX7TQI9WyAUwBgGc59y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vmcce15JDNcjQAHtlhJG+Vx60Dgm?= =?us-ascii?Q?avjlYDyrTQFRzLQbM72asCx6UM34J/s3U+YxJ329c3V7YDNFDC7Zlxtjldkh?= =?us-ascii?Q?FFWbrPpmFhLzuO1H87mGH6Q1oAyz6PYSQQoU/oimTlqfqMLZJQka1ioOW4oq?= =?us-ascii?Q?QCaFwDyjK+SuicOSGfH6vRUbWT6zD4bb6eixNW0nztoBLvBhGAbAb3nVgD/w?= =?us-ascii?Q?LQsenMVCBQa29Xjn8/a6Ntg7h7B8fWkEUxVSvDD+LaKCAgxw+5+ABOH1v4SM?= =?us-ascii?Q?JURd+KvgJrT1ioy+I3WmubtrknV5BryD/zbejB6Y0E0VhxmV9dgjBVnOxq8j?= =?us-ascii?Q?mQBDAoz89f1GabUMai2XfTrNEwU715Ts6VDtijyCwxKdvScrcxYUecl45ag8?= =?us-ascii?Q?/jhSVCHPwk9mUoPwPeIxFLJYZHDsp8gJXJjpLRHV?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cff0631-f9fb-4c1a-a940-08dbfbcb11ac X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6163.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 11:02:59.8024 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jnIxImPC+e7y63XdHg8/VkMKNTL+DX6jUqQVtoNZZRtMPC0w6XdfkboYMe9D8fmQthg2RVY0rvthcOkvz6nlig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB9014 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 03:03:17 -0800 (PST) On Mon, Dec 11, 2023 at 07:21:22PM -0800, Jakub Kicinski wrote: > On Mon, 11 Dec 2023 10:08:15 +0800 Jijie Shao wrote: > > Add two more SFF-8024 Identifier Values that according to the standard > > support the Common Management Interface Specification (CMIS) memory map > > so the hns3 driver will be able to dump, parse and print their EEPROM > > contents.This two SFF-8024 Identifier Values are SFF8024_ID_QSFP_DD (0x18) > > and SFF8024_ID_QSFP_PLUS_CMIS (0x1E). > > Hm, you don't implement the ethtool get_module_eeprom_by_page op? > I thought for QSFP DD page support was basically required. You can read the first few pages with the legacy interface, but for the rest you need the get_module_eeprom_by_page op. My recommendation is to implement the new op and abandon the old ones.