From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1E65A0559; Mon, 16 Mar 2020 10:11:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3DC1C1C067; Mon, 16 Mar 2020 10:11:32 +0100 (CET) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by dpdk.org (Postfix) with ESMTP id B6065FEB; Sat, 14 Mar 2020 16:56:19 +0100 (CET) Received: from WTL-EXCHSV1-1.sandvine.com (192.168.196.60) by WTL-EXCHSV2-1.sandvine.com (192.168.194.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Sat, 14 Mar 2020 11:56:17 -0400 Received: from WTL-EXCHSV2-1.sandvine.com (192.168.194.58) by WTL-EXCHSV1-1.sandvine.com (192.168.196.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Sat, 14 Mar 2020 11:56:15 -0400 Received: from BLR-EXCHSV1-2.sandvine.com (10.30.4.75) by WTL-EXCHSV2-1.sandvine.com (192.168.194.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.1847.3 via Frontend Transport; Sat, 14 Mar 2020 11:56:15 -0400 Received: from BLR-EXCHSV1-2.sandvine.com (10.30.4.75) by BLR-EXCHSV1-2.sandvine.com (10.30.4.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.1847.3; Sat, 14 Mar 2020 21:26:07 +0530 Received: from BLR-EXCHSV1-2.sandvine.com ([fe80::88fb:52a8:3df5:2d87]) by BLR-EXCHSV1-2.sandvine.com ([fe80::88fb:52a8:3df5:2d87%23]) with mapi id 15.01.1847.003; Sat, 14 Mar 2020 21:26:07 +0530 From: Anubhav Choudhary To: "dev@dpdk.org" , "users@dpdk.org" Thread-Topic: Garbage value is returned while reading moudle eeprom for i40e (PF) with DPDK 18.11 Thread-Index: AdX6GG4ZFs/2IKbtTki05B35Zc1EwA== Date: Sat, 14 Mar 2020 15:56:07 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.30.11.102] x-c2processedorg: b2f06e69-072f-40ee-90c5-80a34e700794 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 16 Mar 2020 10:11:31 +0100 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Garbage value is returned while reading moudle eeprom for i40e (PF) with DPDK 18.11 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Hi, I am using Intel X710 along with FINISAR module (FTLX1471D3BCL). I am tryin= g to read the module's eeprom but I am getting garbage values when DPDK is = used. However, it is working perfectly fine when device is bound to the lin= ux kernel. I have attached the device details along with the eeprom dumps. = Note that I have executed the command in a VM where Intel X710 was using pc= i-passthrough. Let me know if more details are required to understand the i= ssue. Case 1 : When device used Linux Kernel root@test-system:/home/anubhav# ethtool -i eth2 driver: i40e version: 2.1.14-k firmware-version: 7.10 0x800051a6 19.0.12 expansion-rom-version: bus-info: 0000:00:0b.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes root@test-system:/home/anubhav # ethtool -m eth2 raw on > module_eeprom_ker= nel.bin root@test-system:/home/anubhav # hexdump -x -v module_eeprom_kernel.bin 0000000 0403 2007 0000 0000 0000 0600 0067 640a 0000010 0000 0000 4946 494e 4153 2052 4f43 5052 0000020 202e 2020 0000 6590 5446 584c 3431 3137 0000030 3344 4342 204c 2020 2041 2020 1e05 6300 0000040 1a00 0000 4c55 3038 3732 2056 2020 2020 0000050 2020 2020 3131 3830 3631 2020 f068 ce03 0000060 0000 0000 0000 0000 0000 0000 0000 0000 0000070 0000 0000 0000 0000 0000 0000 0000 0000 0000080 0000 0000 0000 0000 0000 0000 0000 0000 0000090 0000 0000 0000 0000 0000 0000 0000 0000 00000a0 0000 0000 0000 0000 0000 0000 0000 0000 00000b0 0000 0000 0000 0000 0000 0000 0000 0000 00000c0 0000 0000 0000 0000 0000 0000 0000 0000 00000d0 0000 0000 0000 0000 0000 0000 0000 0000 00000e0 0000 0000 0000 0000 0000 0000 0000 0000 00000f0 0000 0000 0000 0000 0000 0000 0000 0000 0000100 004e 00f3 0049 00f8 8890 4871 a08c 3075 0000110 04a6 4c1d 409c 1027 e93d 3106 2d31 cb07 0000120 7745 6400 e93d 9e00 0000 0000 0000 0000 0000130 0000 0000 0000 0000 0000 0000 0000 0000 0000140 0000 0000 803f 0000 0000 0000 0001 0000 0000150 0001 0000 0001 0000 0001 0000 0000 7e00 0000160 2c20 2c82 1a42 c31d 681a 0000 0000 0030 0000170 0000 0000 0000 0000 ffff ffff ffff 01ff 0000180 0000 0000 0000 0000 0000 0000 0000 0000 0000190 0000 0000 0000 0000 0000 0000 0000 0000 00001a0 0000 0000 0000 0000 0000 0000 0000 0000 00001b0 0000 0000 0000 0000 0000 0000 0000 0000 00001c0 0000 0000 0000 0000 0000 0000 0000 0000 00001d0 0000 0000 0000 0000 0000 0000 0000 0000 00001e0 0000 0000 0000 0000 0000 0000 0000 0000 00001f0 0000 0000 0000 0000 0000 0000 0000 0000 0000200 Case 2: When device is used with DPDK (18.11) root@test-system:/home/anubhav# ./ethtool EAL: Detected 92 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em EAL: PCI device 0000:00:04.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:100e net_e1000_em EAL: PCI device 0000:00:0b.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1572 net_i40e EAL: PCI device 0000:00:0b.1 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 8086:1572 net_i40e Number of NICs: 2 Init port 0.. Init port 1.. EthApp> drvinfo Port 0 driver: net_i40e (ver: DPDK 18.11.5) firmware-version: 7.10 0x800051a6 19.0.12 bus-info: 0000:00:0b.0 Port 1 driver: net_i40e (ver: DPDK 18.11.5) firmware-version: 7.10 0x800051a6 19.0.12 bus-info: 0000:00:0b.1 EthApp> module-eeprom 0 module_eeprom_dpdk.bin Total plugin module EEPROM length: 512 bytes EthApp> quit root@test-system:/home/anubhav# hexdump -x -v module_eeprom_dpdk.bin 0000000 0404 0404 0404 0404 0404 0404 0404 0404 0000010 0404 0404 0404 0404 0404 0404 0404 0404 0000020 0404 0404 0404 0404 0404 0404 0404 0404 0000030 0404 0404 0404 0404 0404 0404 0404 0404 0000040 0404 0404 0404 0404 0404 0404 0404 0404 0000050 0404 0404 0404 0404 0404 0404 0404 0404 0000060 0404 0404 0404 0404 0404 0404 0404 0404 0000070 0404 0404 0404 0404 0404 0404 0404 0404 0000080 0404 0404 0404 0404 0404 0404 0404 0404 0000090 0404 0404 0404 0404 0404 0404 0404 0404 00000a0 0404 0404 0404 0404 0404 0404 0404 0404 00000b0 0404 0404 0404 0404 0404 0404 0404 0404 00000c0 0404 0404 0404 0404 0404 0404 0404 0404 00000d0 0404 0404 0404 0404 0404 0404 0404 0404 00000e0 0404 0404 0404 0404 0404 0404 0404 0404 00000f0 0404 0404 0404 0404 0404 0404 0404 0404 0000100 0000 0000 0000 0000 0000 0000 0000 0000 0000110 0000 0000 0000 0000 0000 0000 0000 0000 0000120 0000 0000 0000 0000 0000 0000 0000 0000 0000130 0000 0000 0000 0000 0000 0000 0000 0000 0000140 0000 0000 0000 0000 0000 0000 0000 0000 0000150 0000 0000 0000 0000 0000 0000 0000 0000 0000160 0000 0000 0000 0000 0000 0000 0000 0000 0000170 0000 0000 0000 0000 0000 0000 0000 0000 0000180 0000 0000 0000 0000 0000 0000 0000 0000 0000190 0000 0000 0000 0000 0000 0000 0000 0000 00001a0 0000 0000 0000 0000 0000 0000 0000 0000 00001b0 0000 0000 0000 0000 0000 0000 0000 0000 00001c0 0000 0000 0000 0000 0000 0000 0000 0000 00001d0 0000 0000 0000 0000 0000 0000 0000 0000 00001e0 0000 0000 0000 0000 0000 0000 0000 0000 00001f0 0000 0000 0000 0000 0000 0000 0000 0000 0000200 Regards, Anubhav Choudhary Disclaimer: This communication (including any attachments) is intended for the use of t= he intended recipient(s) only and may contain information that is considere= d confidential, proprietary, sensitive and/or otherwise legally protected. = Any unauthorized use or dissemination of this communication is strictly pro= hibited. If you have received this communication in error, please immediate= ly notify the sender by return e-mail message and delete all copies of the = original communication. Thank you for your cooperation.