From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 27F62481DD; Sat, 30 May 2026 17:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780160444; cv=none; b=UV28fbyDT8dsLNl4kj19G0YFSBP883XNYVbSvelOs/PYu7soiRmMseA9RgdevvYqevXt5V/71UQVfP/aDOuUmQiggdiudTgLIQzg9U4F/KWqAZKg4OlMeauR/VzL4qW5Lf+ODYXIDK6Wwljnq0hRnfwxf9HDJdWllKZWivTZ/zw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780160444; c=relaxed/simple; bh=G76wOWIWUlH8+cgeNQd1z9ixs/kwGYcEQZhgGkfG3DQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uQE8Irt9BNmxU0oRcqI3V8gX5CM88GYNkGTrggw2KMYzjf7SNZDZwmZvQzT7x7pEWr666Bg7qhzhlCK2zC0LcPyGXKsRwWiPAihvWjaBCPYlxwtVqRkJ8IjDAxnZSr8rYQ551B25W+htUO+rfGYBCf1xbhNOFPXvsNKdV1Lx5Zc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P0tfVAoB; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="P0tfVAoB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EDF71F00893; Sat, 30 May 2026 17:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780160442; bh=M3Qo+udrJC5FAKQs04bs/b/rjjMJFQ4rIU6BdpYNW3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=P0tfVAoBTmfukLycs8UxKeTfWV0ZxhPicsAybPW6M/hsCQ8A2NgEyfv9DoVRqxEjt iStqsxUs75Xt3Z8e5VU/Qp51GsOaJKxObg28vJQUUbb9nAOIlKAAUZh0NmFhRS7eo/ GZsCR+svrnspky15m7LDhzM1zB/dsp0/J2Zq9w5w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Aaro Koskinen Subject: [PATCH 6.1 309/969] USB: omap_udc: DMA: Dont enable burst 4 mode Date: Sat, 30 May 2026 17:57:13 +0200 Message-ID: <20260530160308.955625414@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160300.485627683@linuxfoundation.org> References: <20260530160300.485627683@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaro Koskinen commit 3f91484f6c13c434bd573ca6b6779c26adb0ddab upstream. Commit 65111084c63d7 ("USB: more omap_udc updates (dma and omap1710)") added setting for DMA burst 4 mode. But I think this should be undone for two reasons: - It breaks DMA on 15xx boards - transfers just silently stall. - On newer OMAP1 boards, like Nokia 770 (omap1710), there is no measurable performance impact when testing TCP throughput with g_ether with large 15000 byte MTU size. It's also worth noting that when the original change was made, the OMAP_DMA_DATA_BURST_4 handling in arch/arm/plat-omap/dma.c was broken, and actually resulted in the same as the OMAP_DMA_DATA_BURST_DIS i.e. burst disabled. This was fixed not until a couple kernel releases later in an unrelated commit 1a8bfa1eb998a ("[ARM] 3142/1: OMAP 2/5: Update files common to omap1 and omap2"). So based on this it seems there was never really a very good reason to enable this burst mode in omap_udc, so remove it now to allow 15xx DMA to work again (it provides 2x throughput compared to PIO mode). Fixes: 65111084c63d ("[PATCH] USB: more omap_udc updates (dma and omap1710)") Cc: stable Signed-off-by: Aaro Koskinen Link: https://patch.msgid.link/ad06qHLclWHeSGnV@darkstar.musicnaut.iki.fi Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/omap_udc.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -734,8 +734,6 @@ static void dma_channel_claim(struct oma if (status == 0) { omap_writew(reg, UDC_TXDMA_CFG); /* EMIFF or SDRC */ - omap_set_dma_src_burst_mode(ep->lch, - OMAP_DMA_DATA_BURST_4); omap_set_dma_src_data_pack(ep->lch, 1); /* TIPB */ omap_set_dma_dest_params(ep->lch, @@ -757,8 +755,6 @@ static void dma_channel_claim(struct oma UDC_DATA_DMA, 0, 0); /* EMIFF or SDRC */ - omap_set_dma_dest_burst_mode(ep->lch, - OMAP_DMA_DATA_BURST_4); omap_set_dma_dest_data_pack(ep->lch, 1); } }