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 F1CCCA0C5B; Fri, 26 Nov 2021 11:35:16 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB652426E2; Fri, 26 Nov 2021 11:35:16 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2085.outbound.protection.outlook.com [40.107.95.85]) by mails.dpdk.org (Postfix) with ESMTP id CF5E1406FF for ; Fri, 26 Nov 2021 11:35:15 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T80X7VWmzTZl1OHKgjYIWgEcBamYtqaX1zOBy9Yre6FUBFyqzVRpU4HldqlDiEjyZXPG4ROoqM+bi7fI8/iHPNp6ST7oBj2lr0rQw44gcNsm82MCHPa+YiIoyKZOWe2uRfyetkAYxtS+l42z1b0W+2m2dA4Nu4VbeRzyM3aZn0XXkp2hi8i1gwWYxCbG6u48Tdjd8wXqO6vbLKuKf2KcXJ0RQzuj4J6eHlsiVHeoma+Dtx4/hNjxkCJ+ANLaxPx1cdR1tjUSggV/n4PSrk8QESCfo1Hh7iGYE3mRlCeO30F+nr8OGnBAsubK2yjiNWkFWacaTuaP7/IKZIOObmsXYw== 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=i+XNLHa754fLfaM+mVuD0B7bs78XleKPW2mjn7qpjnM=; b=Rvmhf59tiMRjsmsj3+WYeK0sNJepvI3Wjg3m9gU+RxTnpy27QOTq4TYoDkc0JMv9txZd4+M23A3lNoXmEM+FsVhr54+Ufb4FhXrqUmSRTezH293eNJqdE9pjE8zrLNlQdEVv/vsqPaczWEhhhaG9AMoGulszw8mMIJf9ar90cI+rcJ86I0dzY8Gv2O5MHOtkJ7DODoeP36lTrmnuzrnHc+PfT+dqDboZWxIvsC6QY4fR6vX9u5LkiW2sMVJgJJ6ix/huiCAZOmPZqez5Fi8Mch659v1aeVirGN6n/Sc3/Pu2ofIzamAh+Jdfm5V42R3/HdRj8ofRUC3GkEazM6ZMOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i+XNLHa754fLfaM+mVuD0B7bs78XleKPW2mjn7qpjnM=; b=Zn7OsXJVbJLQDBovMaVlcFkyqtcHOB8SxJ5DK+R5jaX53UsNitwDGCANBZZQ+zYvN+JF1z5kGxpDZ0ZFcPWX6plzKVL1U4VdHVsce14mVd5lVzLtKrZm3RgbwwRUmwCFirS1aVAHzT8yohhWcdDxjFI24SOXuJhyfhW8WqP+ZT8= Received: from DM4PR12MB5344.namprd12.prod.outlook.com (2603:10b6:5:39f::11) by DM6PR12MB5552.namprd12.prod.outlook.com (2603:10b6:5:1bd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.24; Fri, 26 Nov 2021 10:35:14 +0000 Received: from DM4PR12MB5344.namprd12.prod.outlook.com ([fe80::a003:6e33:8c98:790f]) by DM4PR12MB5344.namprd12.prod.outlook.com ([fe80::a003:6e33:8c98:790f%4]) with mapi id 15.20.4734.023; Fri, 26 Nov 2021 10:35:14 +0000 From: "Namburu, Chandu-babu" To: "Awan, Arsalan" , "dev@dpdk.org" CC: "Somalapuram, Amaranath" , "Sebastian, Selwin" , "Giriyapura, Maheshwaramurthy" Subject: RE: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 Thread-Topic: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 Thread-Index: AQHX1iiJV8q+ALSOzEaloXAtM6obMqv/+TdggARt3wCAD5TPAIAAAlmAgAAM9oCAAajGAA== Date: Fri, 26 Nov 2021 10:35:14 +0000 Message-ID: References: <20211110114519.8216-1-Arsalan_Awan@mentor.com>, , <1636971324930.27524@mentor.com> <1637827914612.88281@mentor.com>, <1637831201071.84716@mentor.com> In-Reply-To: <1637831201071.84716@mentor.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_ActionId=58dcbf2c-6f55-48a1-b231-521f618f384f; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_ContentBits=0; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Enabled=true; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Method=Privileged; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_Name=Public-AIP 2.0; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_SetDate=2021-11-26T10:27:18Z; MSIP_Label_d4243a53-6221-4f75-8154-e4b33a5707a1_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 22ac4705-0b65-4fff-26e9-08d9b0c86e7b x-ms-traffictypediagnostic: DM6PR12MB5552: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U1Rx6yG1/TtEi+NQ7rflozazS0AofVgyBuM3NzodlqXW9JJnnjiFHSE9JLJiLTd0NYNqu7C1lIV/YaPxEJ+FK3FfAFsDOl9RxeXGTob7yzfF3j3sqoDUmfT38V+W0IM5w8PZA84Ye+y3wDySjkGnLQ7ZsF5iWcnJKvFAL+Nw7ecZ/oM5E7qm3wBpN4c9t4zJftAijVYViWIFKaVkqUF9e/lwPJIVagPod49GTdW47BEMos2PiaNJP2BgfL6ghhLsjxsnDNi3YWStzViOznUDz/CvZ2QfqhjPzI3DXmMHpdwUsWv/fYF8RM+XVZ9gvQ77FrPq3ffE9NCjxP6uEDNsiecgp1MkmLCUmppW5P2+u4FUC3pY0LyFH0Lem9pEEI8LUog7EaJ0eumjqqL3GjSxqbHereCc8lUos/YhO9ajJfJGQDMYD5sSO3dXVXMRGmO2WutjzFB8NBTnUw8f6KwzZUbio83AdCsMZzZ5U5cSqyy5SsjqCUX8NyWKE5P7imR/z/Gu6OFdfBBVP3/EESq91HDfl0ic24QvAG3QR+YBjdAT5fFtoZzmuGQ2Gkf3C7OZnM3GCo0jkJ45FXHFbRlY2K1LUg39SoVPZ2MYXlegIBOjVPQ/4vXxRAeMGhF1HbHCZrbV7V7RSaVNy/5YWZqUp2AxraUp3ySstSxLzYnIoPC4ZLTn/XN+Dk8mLPAa0pJGT9/m3AbT9Y1PZ2zrCHZ6oqNaCscDo7lNAQkU+cDaW5yJaGUfUqjMTWtHe8iC02u4pXgNEsUzQ7BHQdy8Qmo+1Ap8u/B22K2uUGhBHYTUN8M= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5344.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(38100700002)(8936002)(9686003)(5660300002)(186003)(66946007)(53546011)(6506007)(26005)(316002)(7696005)(71200400001)(66446008)(33656002)(122000001)(508600001)(52536014)(86362001)(55016003)(8676002)(76116006)(83380400001)(4326008)(66556008)(66476007)(64756008)(38070700005)(2906002)(54906003)(966005)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?/UwE6GzPC95zAYl2xBsvOMq9RgBzIuiL+KYpxmkpSQiiVCu2tgh8DQ8eSrCe?= =?us-ascii?Q?6ZPBB8Kojuxsoz1X0670weHvSRig7A071HNOjWwqkMHwyvBR8JIO2q8h5ucd?= =?us-ascii?Q?O83P2VjYevbXAup6i1+H2iA0VvlD7k7pIQ19V11As8AyfSO9YVTXobwmWQpi?= =?us-ascii?Q?kdxvLST6UYbZGW/AeB79wjmLmZjKl5aXNrLZC4oclWcB8r9viWJKMzU0NZJM?= =?us-ascii?Q?5TUxyqF7/h8ObAeEDy+SV7EXlStvznv1LHrxsQReIcM9AtBSUlZWzty93ZAs?= =?us-ascii?Q?IDYC81kh9gxC2SAqtK9SYGaARSXwZITcRRnQM5BhISG4WwnGYXv6Fi+Wc07H?= =?us-ascii?Q?h6t9HhO0i/T7tTHHTzq93YkJOM+t5o5Ws8xnZ7FXv8TYc88IN5WmK6+scrIP?= =?us-ascii?Q?YueTfqYSZSQnofpATRDl95KiG9/N6h3m8apm8OcwulQ/xesCYtEV01WmRtBP?= =?us-ascii?Q?72k9i2m+vI+B33CuDbXGoVxOOm/ZKyigDu82hTjyd/BJgPMlD/WxGaK2WT8f?= =?us-ascii?Q?nBBvaWrRHcYUhQfVXhDa5cf8AyXsQComBKXau/S050via1QwVaZjhreCHVds?= =?us-ascii?Q?1vi9GA/+5w3CD2TsrNYs3xrGt3VhHq/mB+Y1zX2WgpS1UM5EMHRkh8mdxQVi?= =?us-ascii?Q?QmIgqScxnAszaPPACm0hGh5+PcDddhb0lQzqbowTHr264EIcgF4h86eH3RnP?= =?us-ascii?Q?RNoe+qnxxTZyuvGMvpeVeyPnVFhfID3qc14rq59x/JamT0NSiB9KuVe5kW6u?= =?us-ascii?Q?0LGg8dwR0DiDzGJVx4CnsNAx7KgH0oct3gThkRZimwhwnFxgz24p3t4xZLG5?= =?us-ascii?Q?MElBhm9HI/LRZ2WWIp0zUtLX6IcKgrU8lZyLNHhdXHHJOZ7/KGwpEQtShh4C?= =?us-ascii?Q?C63EX0cB4SHcPmdOIV7pavaILVOsgldv4lVAwyWiS6yt6nQtI/MMVMo8w4ZR?= =?us-ascii?Q?W97RrLrHpk1GXGaBiQTYSyA+3ijGs1GWkoryYh4dDx+dxHuuhqxhXiLj7vqE?= =?us-ascii?Q?IzcgU6DnTY0EJla/WOOXZUZ3/t6qhvmEMiqebqtu3J5F8OVL5Vl1mr+6QCY5?= =?us-ascii?Q?mRFA+zUOMWlrH8YQcluSgCDUTFku3WGNxdcSehY6YVKW5HFMUKiadmiGaiqs?= =?us-ascii?Q?lH1fUNIAFbmKlkhoFRsQAfa/n1aNv5rPxLS9NXCiRYm6qzKhw/8O8Ed9a4T9?= =?us-ascii?Q?bkNV9HomgGmpSBrApPJMDmpVSt0WZowlrdJN8QK+ByPJMJZUnM/0OLaOTGHc?= =?us-ascii?Q?J8OP5bKmqPpD+YYc3DC1GM+d3E1jmBe5wQ29Az/LLuJCVuj6yNDnntjK6K3m?= =?us-ascii?Q?EXTghnB+618KnHoQCv3J9R0IKN41zdzUDi+4DzLUIg9zl0ZBPovstjd1F/Rg?= =?us-ascii?Q?0V+SOjlURVQ/jl/G+zwP/EBZ++Q/hJNE4j8MmQjxlNBjefJhQhBLVZiOTxy8?= =?us-ascii?Q?5i73z7Mw7dQVJkrLCKuUiT5ZC5G9GYjxEKI8kQMplckvGuwseXGv49YLueIb?= =?us-ascii?Q?Bp1x2/VB+GqmYimFUaDRg+dZBeh17iV3sdm+qWi1qY7zkkoNdWUVwa36vI4Q?= =?us-ascii?Q?/8QIqYUraZn2GdXAPmvQDKVNl50mS4AD/crnlVE3TDte39Q8OzRnwcuGGTTT?= =?us-ascii?Q?+w=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5344.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22ac4705-0b65-4fff-26e9-08d9b0c86e7b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2021 10:35:14.1843 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: biJ/7pv+gYkRe6OxAHEmZPubcTk5GVl2I95sTpP1wTtGt0ei5IkJZrcSynqjx9cxxk6qzHIkesaGufTzikZS4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5552 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 [Public] Hi Arsalan, I have submitted new patch to community review and looped you in. Please sh= are your comments. https://patches.dpdk.org/project/dpdk/list/?series=3D20788 Regards, Chandu -----Original Message----- From: Awan, Arsalan Sent: Thursday, November 25, 2021 2:37 PM To: Namburu, Chandu-babu ; dev@dpdk.org Cc: Somalapuram, Amaranath ; Sebastian, Selw= in ; Giriyapura, Maheshwaramurthy Subject: Re: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 Thanks, Chandu! This will help a lot! Regards, Arsalan ________________________________________ From: Namburu, Chandu-babu Sent: Thursday, November 25, 2021 1:23 PM To: Awan, Arsalan; dev@dpdk.org Cc: Somalapuram, Amaranath; Sebastian, Selwin; Giriyapura, Maheshwaramurthy Subject: RE: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 [Public] Hi Arsalan, We have identified fix for this issue and will submit the patch for communi= ty review asap. Thanks, Chandu -----Original Message----- From: Awan, Arsalan Sent: Thursday, November 25, 2021 1:42 PM To: Namburu, Chandu-babu ; dev@dpdk.org Cc: Somalapuram, Amaranath ; Sebastian, Selw= in ; Giriyapura, Maheshwaramurthy Subject: Re: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 Hi Chandu, Do we have an update on this? Can we go ahead with this patch for now as it does not break anything else,= but fixes the problem. DPDK will be working fine as is on the e3000. This patch only adjusts the code for the v1000 and it works fine and there = isn't a difference in the approach of fixing the problem compared to that b= eing done currently to distinguish between the two platforms i.e. e3000 & v= 1000. Hoping to hear from you soon. Thanks, Arsalan ________________________________________ From: Awan, Arsalan Sent: Monday, November 15, 2021 3:15 PM To: Namburu, Chandu-babu; dev@dpdk.org Cc: Somalapuram, Amaranath; Sebastian, Selwin; Giriyapura, Maheshwaramurthy Subject: Re: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 Thanks, Chandu! Appreciate you guys looking into this! Looking forward to hear from you soon. Thanks and regards, Arsalan ________________________________________ From: Namburu, Chandu-babu Sent: Friday, November 12, 2021 7:48 PM To: Awan, Arsalan; dev@dpdk.org Cc: Somalapuram, Amaranath; Sebastian, Selwin; Giriyapura, Maheshwaramurthy Subject: RE: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 [AMD Official Use Only] Hi Arsalan Awan, Thank you for sharing the patch. DPDK not working on V1000 is regression du= e to "bus/pci: optimize bus scan" patch. As RV Root Complex device does not= have any Linux kernel driver assigned, this device is removed from PCI sca= n list and not found using pcie_search_device() routine. Patch submitted is potential fix for the issue, but we are checking if this= is the best way to fix regression. Will update you soon on the fix shared. Regards, Chandu -----Original Message----- From: Arsalan H. Awan Sent: Wednesday, November 10, 2021 5:15 PM To: dev@dpdk.org Cc: Namburu, Chandu-babu ; Somalapuram, Amaranath ; Sebastian, Selwin ; Giriy= apura, Maheshwaramurthy ; Arsalan H. A= wan Subject: [PATCH] net/axgbe: fix PCI ID to distinguish v1000 vs e3000 The RV PCI Root Complex Device is not visible to DPDK on the PCI bus via pc= i_search_device on some OSs including Ubuntu and Yocto. This makes it impos= sible to determine which machine DPDK/axgbe is running on. As a result, DPD= K/axgbe does not work on v1000. Let's use the Raven Internal PCIe GPP Bridge ID that DPDK can see on the PC= I bus that exists on the v1000 to differentiate between RV AXGBE and SNOWY = AXGBE, and set the registers accordingly. This fixes DPDK not working on v1= 000 platform. Signed-off-by: Arsalan H. Awan --- drivers/net/axgbe/axgbe_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_eth= dev.c index 7d40c18a86..7b1b46990f 100644 --- a/drivers/net/axgbe/axgbe_ethdev.c +++ b/drivers/net/axgbe/axgbe_ethdev.c @@ -170,7 +170,7 @@ static const struct axgbe_xstats axgbe_xstats_strings[]= =3D { /* The set of PCI devices this driver supports */ #define AMD_PCI_VENDOR_ID 0x1022 -#define AMD_PCI_RV_ROOT_COMPLEX_ID 0x15d0 +#define AMD_PCI_RV_INTERNAL_PCIE_GPP_BRIDGE_ID 0x15db #define AMD_PCI_AXGBE_DEVICE_V2A 0x1458 #define AMD_PCI_AXGBE_DEVICE_V2B = 0x1459 @@ -2178,9 +2178,9 @@ eth_axgbe_dev_init(struct rte_eth_dev *eth_dev) pdata->pci_dev =3D pci_dev; /* - * Use root complex device ID to differentiate RV AXGBE vs SNOWY AX= GBE + * Use Raven Internal PCIe GPP Bridge device ID to differentiate +RV AXGBE vs SNOWY AXGBE */ - if (pci_search_device(AMD_PCI_RV_ROOT_COMPLEX_ID)) { + if (pci_search_device(AMD_PCI_RV_INTERNAL_PCIE_GPP_BRIDGE_ID)) { pdata->xpcs_window_def_reg =3D PCS_V2_RV_WINDOW_DEF; pdata->xpcs_window_sel_reg =3D PCS_V2_RV_WINDOW_SELECT; } else { -- 2.17.1