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 F349DA0351; Mon, 31 Jan 2022 06:39:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D73AA41182; Mon, 31 Jan 2022 06:39:48 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2059.outbound.protection.outlook.com [40.107.223.59]) by mails.dpdk.org (Postfix) with ESMTP id DC83F4117A for ; Mon, 31 Jan 2022 06:39:46 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FEXsQhw8MnAW/zDRo1eSCXJiaMz9KnxqqtWMVxZp9BmYevefUtyKtHZsfOxrBE6hDUc2KCa3bV3VpCktXDmkY9MtDdRFHeBLYduGMcPapRpEtBvyIpEA9Mosrh9KzQ0ezSOUV2NlU3ar1tQ5OuH3HivAvHJB2Wz6QXow2BMyb9aUz7PnSGMaE3SY0uC+Nxs5bRdwke0tBVzblJkGyrwpRbHus2/fhMWtRZ7ok+eahah08zmbCklOzidOGu8qCryLx9BOUm+Yny5N7nmm2rCE9rrPI/2+rBGtlJVwLI5avGA1T9E8akAKEjP84jtEDYh7vY9gN78siUoq4LngKcWcYg== 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=9Mj6yi4mA9Nq9tWo6jQtK6OpSMnyESujn1bfOPr7160=; b=mgaBEADNtwBtRS8iop0WYUDW0NwZiPur8Sis/tTJAbA+RPbQ9bliRCHvbarCkfGKy3ye0Uz4ZOiE2QAwPkQGu2cPIWXinuzZeAbD0D7kgrIff/PuAVNdtaXPFRJy8IQRDIDeqXw+VdhFrt4X3IoeyEFBq1LsBVtifPKk0fSfGpCK0UJZICC20kNXXWPh5uWXPsbDN19CtHAyifMiaHQKla84fGCK2XXCqji2TBCTA53o5bX84ipYmE7Z6sEOrr0vtBjhJfvcwqFTL90umrxXb/c2qdzWCZr7x+VqNA/FR2xb0faCRQnAxwdOsMwmxUja/0RiZb/D/XJ8j7e+TKJdUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=9Mj6yi4mA9Nq9tWo6jQtK6OpSMnyESujn1bfOPr7160=; b=prOfjXVICN0KJTH+PSz/y5GhmO6FOCkswb+OhjSCcgvQrZBA2MCeJLU/CsXYw+omZxVlw7TCNdUkufvbvkPFyya6uAWdrJWPIemhjrYEV00nCPy5IhsE7jbzJ3DnUV6iaof5XnQS8UaWkGcPUVCBVWFhludjQBavWSeukQPWtYE= Received: from CO1PR15CA0112.namprd15.prod.outlook.com (2603:10b6:101:21::32) by DM5PR12MB1433.namprd12.prod.outlook.com (2603:10b6:3:73::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Mon, 31 Jan 2022 05:39:41 +0000 Received: from CO1NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:101:21:cafe::94) by CO1PR15CA0112.outlook.office365.com (2603:10b6:101:21::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.21 via Frontend Transport; Mon, 31 Jan 2022 05:39:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT022.mail.protection.outlook.com (10.13.175.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4930.15 via Frontend Transport; Mon, 31 Jan 2022 05:39:40 +0000 Received: from cae-Lilac-RMB.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Sun, 30 Jan 2022 23:39:38 -0600 From: To: CC: , Subject: [PATCH v1 2/2] net/axgbe: disable the CDR wa for Yellow Carp devices Date: Mon, 31 Jan 2022 11:09:20 +0530 Message-ID: <20220131053920.167230-3-ssebasti@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220131053920.167230-1-ssebasti@amd.com> References: <20220131053920.167230-1-ssebasti@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b25e95b-c7f7-4920-5dda-08d9e47c1381 X-MS-TrafficTypeDiagnostic: DM5PR12MB1433:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:765; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ktOcOYOxBdVBCufNLlq62HYlSfFc7RLPX8pR9pXtSlN3x2nHPbuXitOdN5OB4g7GlDUOMGPnWyTg5L+9zKHefArlVsGRFEoDhbNJieclh6XqAvOtA46HRWBAJqOzJ9g3Rama3C7l+IFqTl1fHgxd5pJittevW4ciszyd2PR/I2jSEuUNLT5BPnhoD0O84B+KYuzoBxwG6orxv2DL5CevNm9FNs/nW/ls39FIfnH9Z00aSmOUXMivVg4VMg+oJjpMsMaH7I2OMWbGHWhvE12YTWP+LEIpOAp74UuwNsn+SBpvw9Pz4k8qnOMbK23RJ1j08xWGfsRe7kb1N0zaS6CLhRIdGl+RCp+IOR/38NvjgdF6NsvuLE+bJ7RTjkJzG7m1W6KlO1e2KK0Ivdwo3AhgbcqdYlYIkK20rbRRjUBPHHD+idNZgcjdlLDMMxoJaCm77ERKe5RZB1+snfGzoQU3/5Ida0mdb3OAU7Zrd+vzgw4nXthC995UVUvt8dArd9tZHSa1owcftoA1BFL1Ei0j8koiNkiCrsbBjrx0LnzPDbbIA1kWE+oMT+HRu/lCgaRh3MI5OtMChMxGkDY8Sa/HEszdEbgLxM1BHOsWxLaKQeaspFfsZlibTwMf/mGUS/3a+8kZFR6GuXP6xEduxy0Q2xsXKVx9DDzR9+ssBpZG0ffTLAaVXb1bPYfCX/OQVLQZODVW2NLbfqzIFShwPfEAuA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(36756003)(36860700001)(6916009)(54906003)(316002)(186003)(26005)(1076003)(426003)(336012)(16526019)(47076005)(2616005)(2876002)(2906002)(4744005)(6666004)(40460700003)(4326008)(8936002)(70206006)(8676002)(7696005)(5660300002)(508600001)(356005)(81166007)(70586007)(82310400004)(36900700001)(20210929001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2022 05:39:40.2083 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b25e95b-c7f7-4920-5dda-08d9e47c1381 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1433 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 From: Selwin Sebastian Yellow Carp ethernet devices (V3xxx) do not require autonegotiation CDR workaround, hence disable the same. Signed-off-by: Selwin Sebastian --- drivers/net/axgbe/axgbe_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c index 2be9387f98..951da5cc26 100644 --- a/drivers/net/axgbe/axgbe_ethdev.c +++ b/drivers/net/axgbe/axgbe_ethdev.c @@ -2205,6 +2205,8 @@ eth_axgbe_dev_init(struct rte_eth_dev *eth_dev) case AMD_PCI_YC_ROOT_COMPLEX_ID: pdata->xpcs_window_def_reg = PCS_V2_YC_WINDOW_DEF; pdata->xpcs_window_sel_reg = PCS_V2_YC_WINDOW_SELECT; + /* Yellow Carp devices do not need cdr workaround */ + pdata->vdata->an_cdr_workaround = 0; break; case AMD_PCI_SNOWY_ROOT_COMPLEX_ID: pdata->xpcs_window_def_reg = PCS_V2_WINDOW_DEF; -- 2.25.1