From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2F0DB4369A; Wed, 25 Feb 2026 01:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771982971; cv=none; b=VIaEWC05dWBh9tnghAuUd/x8mBHFfcv9HsFI1VSPLxql/OBOKpmZo1lr1TcEMiWFf0pF82rvp2WCG0XcZD8DxroVZCjCtDftKXeaTB8UtMhxsQytRy2xPvIpUENoi05qCVsEF10L5sXm+1But0hI6PyVouadfDrggMJf5IgCvsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771982971; c=relaxed/simple; bh=HIpLFK90hO3b8eIdae5jBt6pTiaXQzs3a4LDipKI8KE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=isf5RI1nTmlHzi8drA+ASZU4twwpEB6hYTJDmJZIPYEjE9x+0txQGw8Inwjl6dSuoRgnoXlEONF8in+DqxLXjvVQC4pQ14x3tHeZ0cFQN3FfHGLprGVrMwjwhPbmCrmBfl6KpxgRaArTSe1/2POKYUaSN8WlbQ63hhieDWTFkiI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZeMS/lgm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZeMS/lgm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06D99C116D0; Wed, 25 Feb 2026 01:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771982971; bh=HIpLFK90hO3b8eIdae5jBt6pTiaXQzs3a4LDipKI8KE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZeMS/lgmcqwnyIvGt/hEzpSK5F8AuSR8QUDBkiKD9iQcsiXnkNY2GXhAsPPi1sj1o JhmOUa9iMUbA8Z2mMTaFNvLF2pAOsOvLM4Q9Frd8bVU2PeOjpFOvIUKVA9ZxRfh1DO VfidH2mib1zcGFUu1PqF3aTlfvFA52/WA8MTXquI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Anton D. Stavinskii" , Inochi Amaoto , Chen Wang , Chen Wang , Sasha Levin Subject: [PATCH 6.19 145/781] riscv: dts: sophgo: cv180x: fix USB dwc2 FIFO sizes Date: Tue, 24 Feb 2026 17:14:14 -0800 Message-ID: <20260225012403.220956149@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260225012359.695468795@linuxfoundation.org> References: <20260225012359.695468795@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Anton D. Stavinskii [ Upstream commit 03ea8676919af21b99bea01f18ef1a271d19f92f ] I've tested the current dwc2 FIFO configuration and found that USB device mode breaks in ECM mode when transmitting frames larger than 128 bytes. For example, large ICMP packets or iperf3 traffic cause the USB link to hang and eventually disconnect without any messages in dmesg. After switching to more conservative FIFO sizes, ECM becomes stable and no longer drops the connection. iperf3 now shows ~130 Mbit/s RX and ~100 Mbit/s TX on SG2002 (MilkV Duo 256M). Fix the FIFO sizes accordingly. Signed-off-by: Anton D. Stavinskii Reviewed-by: Inochi Amaoto Fixes: e307248a3c2d ("riscv: dts: sophgo: Add USB support for cv18xx") Link: https://lore.kernel.org/r/20251126172115.1894190-2-stavinsky@gmail.com Signed-off-by: Inochi Amaoto Signed-off-by: Chen Wang Signed-off-by: Chen Wang Signed-off-by: Sasha Levin --- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/sophgo/cv180x.dtsi index 1b2b1969a6484..06b0ce5a2db7a 100644 --- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi @@ -438,8 +438,8 @@ usb: usb@4340000 { clocks = <&clk CLK_AXI4_USB>, <&clk CLK_APB_USB>; clock-names = "otg", "utmi"; g-np-tx-fifo-size = <32>; - g-rx-fifo-size = <536>; - g-tx-fifo-size = <768 512 512 384 128 128>; + g-rx-fifo-size = <1536>; + g-tx-fifo-size = <128 128 64 64 64 64 32 32>; interrupts = ; phys = <&usbphy>; phy-names = "usb2-phy"; -- 2.51.0