From patchwork Mon Feb 26 17:56:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asmaa Mnebhi X-Patchwork-Id: 1904679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tk7f41gh7z23qD for ; Tue, 27 Feb 2024 04:58:52 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1refFB-0007ZN-Ia; Mon, 26 Feb 2024 17:58:26 +0000 Received: from mail-dm6nam10on2041.outbound.protection.outlook.com ([40.107.93.41] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1refDn-0007PI-NF for kernel-team@lists.ubuntu.com; Mon, 26 Feb 2024 17:57:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bjo+jLsPvYVJB3hvgINEl2CufaqSKnpZ39jF4Kqp/SFRQSuZODqm+u8wk4Vur85yEhKkQzHRcweCSiDGiuW4ONUwpBKBi25w44gYIiGCmDxIY8W7o3ydVKzWIm3e/BltzVHM+7ZtVeUQX/hmo0bSAz0Axk6Qe3S1sR04Y6C3HEALj13ds2dgYM1P8WZf5JnJxfbweWLqtIbbDAsEh5pN3KMKsoA4LCyuQVWxjdaC5N+AZNjmHE3IL4rP+pyBYQdVO7h1f2ZwHisN2B0Bo+vyAy5n1dDrbHRHiH6cfUqLwspq9Ydt6JP0pEU9NwHO5uERQ2iXvsT1uzYdxFrJvJsHSQ== 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=Is4+CI+HI/1REqLpbv2kQaJacZBbAykXlg5E8/y43k0=; b=HzgeheQizxDzgPQ2nhbmJABG2FLdxhSZ7HlBDHAsz0bUfmuJteV7Xrjesfy5TSS3z7DFbLl4eveh+13hvKVpVcnQqZfyq7pwbn1/owj0erUlwYpPsV9KtcROIISEFc6dVwnrRipdP1wBsmSmNtA7bxELx9xAr243nsHkbOlSMhSsDtalORYK5uw7KMl7fJwlLCo1Y7rx337n9/0CEUJH+gOasDieSycfSTH3MIUmslsjdUwG9CXfgw9UFQ5gFBe/cDBO/VQuhQS6VYo1sDfzd1sssJsTuvOThVfiok4ECsdh0Ym2IhYQwlo9ibTTI1NqfY3zGUY2AgLgW1raZvJ0wA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from MW2PR16CA0072.namprd16.prod.outlook.com (2603:10b6:907:1::49) by CH3PR12MB8482.namprd12.prod.outlook.com (2603:10b6:610:15b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Mon, 26 Feb 2024 17:56:55 +0000 Received: from CO1PEPF000042A7.namprd03.prod.outlook.com (2603:10b6:907:1:cafe::cd) by MW2PR16CA0072.outlook.office365.com (2603:10b6:907:1::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.49 via Frontend Transport; Mon, 26 Feb 2024 17:56:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1PEPF000042A7.mail.protection.outlook.com (10.167.243.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Mon, 26 Feb 2024 17:56:55 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 26 Feb 2024 09:56:44 -0800 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 26 Feb 2024 09:56:43 -0800 Received: from vdi.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Mon, 26 Feb 2024 09:56:43 -0800 From: Asmaa Mnebhi To: Subject: [SRU][J:linux-bluefield][PATCH v2 0/1] UBUNTU: SAUCE: mlxbf-gige: support fixed phy for Bobcat Date: Mon, 26 Feb 2024 12:56:40 -0500 Message-ID: <20240226175641.21215-1-asmaa@nvidia.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000042A7:EE_|CH3PR12MB8482:EE_ X-MS-Office365-Filtering-Correlation-Id: 2613d606-86e0-4a22-4c8f-08dc36f451de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +2QnVBPjiEM69BN6gBT9f0krWnf+jn+0Q5+MtVUyDtU4fu1EyDQsURzQRLa3SDc9kUE4kbCm88gpQMLs7dvbhGLxKYfQeow5Uuf0R/YLfKVDdI36AYYyzOodiv31PwnaBniwxI18IzmSXSVyH7Fy9wdUMQQ1W21YghglSU5TlMoO4Uhu5s8XxtaR+ITqtP046NspoQDZ3mMbyh6D2WeRINg/LPOw+weczTn1x0ZJkli4NPiPbqf7tqsOKv7Do1o22C8gBmcBfFfV2Q4eeSVitNtU8isZq35492JEwdMIl7VNx+d4Z+fh4TPSkr9HZCzudY6MivVQk5wykWYGaVxInB2u6LHX+majTSLuebNDhZG2xiGd4y/65T4CorFOOlt4j+9RQsP6GsDghB9P30ihLzG8WOdtm5v0xmm8AUzct4DAsejMKxoEjxuaDH1tHpS1ejPyg+X1mNSn0xECji6wazjMfFglZRpgk0rpjiey7nHr+qN1LhDNS4zqmiwgss/2e8i2iCgz9ls92Mjerh+ZLY4WUD/77hWmAmMqlbqHI1kYxShOLbAVgMcv5e5YyIW94atDSLqDDGRsMj6sZy/sqVhrqXk2lelmq5zTtYeQ2DhHnIAk4FoY6lk4sfcQ7hHbAMHqcWPUVM0fSYsgII13ZAg4L5BN4lFQrgg1LFj7h1Pu5MNUUsFLabWWtdNRBGM6W5L5vh6gAbn2MBvOUtcToQt7bChvCOOyF+qNzdXBOTCaLhn/M7o8rFamsbyMQHNu+dlC7gKTtwTY16CndAH9r7dmZAPdwIpKo83YWd1n6+Y= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(230273577357003)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 17:56:55.2273 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2613d606-86e0-4a22-4c8f-08dc36f451de X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000042A7.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8482 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Asmaa Mnebhi Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2054845 SRU Justification: [Impact] Bobcat is a new board which doesn't have an external PHY connected to the OOB. There are no MDIO busses involved and no PHY involved. The OOB is directly connected to the switch (MAC to MAC). SO we need to use the linux fixed phy to be able to emulate the mdio behavior and load the ethernet driver. [Fix] * Register the fixed-phy register in the case of the bobcat. [Test Case] * Important: For testing on the bobcat board, make sure the corresponding UEFI image is also loaded, otherwise, the oob driver will fail to load. For other board, it is backward compatible. * Check if the mlxbf-gige is loaded on bobcat * Check that it is using the fixed-phy via dmesg | grep PHY * check that the oob interface is pingable * check that files can be copied over via oob interface * rmmod/modprobe * ifconfig up/down * reboot test [Regression Potential] * Redo all the OOB testing on other boards (moonraker) and make sure the bobcat changes dont trigger any regressions. Acked-by: Bartlomiej Zolnierkiewicz Acked-by: Andrei Gherzan