From patchwork Wed Oct 30 06:25:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Gupta X-Patchwork-Id: 13855960 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2079.outbound.protection.outlook.com [40.107.223.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96A5F19BA6; Wed, 30 Oct 2024 06:25:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.79 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730269550; cv=fail; b=dz7US/y1AQhfkl8kHBNdplMKJdP71W0fkCNYGnNJGxXzhxVR2GqGLX+pUGt3NufWLhrDLQ6ZntUn8anY67b2NyEO5n5Z/dIkZnSj/JQPrRmM8mg4XD64LUc9yrdw6Hvu30rv2SPh0DRSrFDwy2crIDwApYJgEvzWuG7digEVDCI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730269550; c=relaxed/simple; bh=JkJrSp+9bSw1GW8ODOwKqlGXsNkSz+KC49GUHhuDFz4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=pth4Gmc7XVUBmnED52tyWKBnJ599eF/4fpa3pHsb+r8E9O474r6GB2TVG/ZqyCEkSU7BMEPu8TwbXbzYArASi7JGPRcTzFK2vv4p/3JdnX8w+F2LeJfgsIFR46ngqujOHYhDrADlSHBJpqD3M0rR/pHyQS+Sev+bFvlJJWLiOqo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=MkQ4HCbx; arc=fail smtp.client-ip=40.107.223.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="MkQ4HCbx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mr04A0cxI/qO1IYQTWvqhew3Q8u2r06X7Q6sxgVkMIobNiCTpocKlLjyLXQR0H6W+L8oaVa3xa8nEEHlfFUiRmoqsCtqeyEM+6NZ/lIjRQWRiFZOI6rW72wm6cUu/6n1HEx/V8Wo1gFfg4tdkHS4U2DEvGImyiPfka9YySDXDhsqpbA/Bi/vVPPdcxeFIsL7D0WLIgTisVIFPl2TNpFnSrvO/5jGmQGygf5BGMgEsgHFoN/2EK/eOHv/4gtrUaJLa5aYrnZtDXDuyXljEixp8efGTPovNQr0cL+5z1qOG45zBbZQST2YihLm4rLhNRVKyYUgHTElcg5tQTUfx1OfhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=KM9EiVroMALcUxodR2rRdxFvVaaT3eOp/EHuyeyuut0=; b=U/n+Emjz2SCn6ATDhbkNwbdea8Gd26u3JtrgK6BqNyoUcezXhW/Jc8KxFTglyVL5+LSGjf+I+zF/QkOCBO8OQrMVAVXoZiEnXMXA5+QK16nsLfkMAPlyTEj/535Rt8xt422qYYDPXAStnEZEIOja83pWwSgOHM6XM/ekgIAw9+K+nPdouH4zGp+fo7KsaFzaCekldYc1mHzxnF+d+vmDCZxClKkbZkJp+TEpjyGgok0G4aY1wfv7wV1o+6ZTs3nKhz+6A8iaDCJbAEgIRSTlv3HfPIEaqAu8kkwbEJcN9NC2ytogPYL/+kMP66OSB99gWYtbJhFtvockQFBnhkeKAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lunn.ch 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 (0) 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=KM9EiVroMALcUxodR2rRdxFvVaaT3eOp/EHuyeyuut0=; b=MkQ4HCbxH/HbywLMj9t3XKr1AGgRyDNHZyrmB/+BFXjR6+jVuoBN88R1mS16XUwjL6R2/bUo+koQp7i90aeObsD9BCqKAbFt5hHoshNVGGy92JusAcEqcHWhw8uS51WP+eXQp4+BINZn/O/bhhHqYb/pSWLOvl5wRa66QVDsocY= Received: from BL0PR02CA0060.namprd02.prod.outlook.com (2603:10b6:207:3d::37) by SJ0PR12MB5675.namprd12.prod.outlook.com (2603:10b6:a03:42d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Wed, 30 Oct 2024 06:25:39 +0000 Received: from BL6PEPF0001AB4F.namprd04.prod.outlook.com (2603:10b6:207:3d:cafe::59) by BL0PR02CA0060.outlook.office365.com (2603:10b6:207:3d::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.17 via Frontend Transport; Wed, 30 Oct 2024 06:25:39 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BL6PEPF0001AB4F.mail.protection.outlook.com (10.167.242.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8114.16 via Frontend Transport; Wed, 30 Oct 2024 06:25:39 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 30 Oct 2024 01:25:37 -0500 Received: from xhdsuragupt40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 30 Oct 2024 01:25:34 -0500 From: Suraj Gupta To: , , , , , , , , , CC: , Subject: [PATCH net 0/2] net: xilinx: axienet: Fix kernel crash in dmaengine transmit path Date: Wed, 30 Oct 2024 11:55:31 +0530 Message-ID: <20241030062533.2527042-1-suraj.gupta2@amd.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: suraj.gupta2@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4F:EE_|SJ0PR12MB5675:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c3b840f-2d39-4dba-9f4f-08dcf8abac68 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|82310400026|36860700013|921020; X-Microsoft-Antispam-Message-Info: i2Wt5b9+6krWJhWl8bAP49uof6FCh5+Z5IqM2Dwot91ppaYulEvwklMhvrx1UrX91wyeCal/OTL7rnk71RPfoPLOHjraa/RUjSUHG2SXDMXcaIeMJ4v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6QzBmQPsvr1QzGtB1pYt/rJMjR03xIt0MPJy4Ucc4snftHlp3pVCWJPzu9Sml3ywXP5KzHXauNqkeQ6OdEuDctRta8JqkOmQvbxtimU7fXf9vBmf3OPphe2O3LNnx0LKjEaLCLJptucZjGq5hv5flVRxBv8y/Ygpid9kI0j82tLaHdkf5PrnSsax4JlMV7zOs2xkP5vhNKkcA0z4YYmJz3VvawyIJLi828B/D4naulQw7YcjQJyNP9HWO6fRCU9qfNMoRUUU8F0tE= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2024 06:25:39.4776 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c3b840f-2d39-4dba-9f4f-08dcf8abac68 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB4F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5675 X-Patchwork-Delegate: kuba@kernel.org This series fixes kernel crash in dmaengine transmit path. To fix it, enqueue Tx packets in dql before starting dmaengine and check if queue is not stopped. Suraj Gupta (2): net: xilinx: axienet: Enqueue Tx packets in dql before dmaengine starts net: xilinx: axienet: Check if Tx queue enabled drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)