From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796378724; b=nF1wDEp/x4+FFCb8UblPggT/852/vUSd+0vzmKd8/KE0MGIRGavzd/g7oAYAAKTY9y/x uYn/ISY4duT2kww9RoMynXG98h6aQDNK2cbY1F7Nzv5UNY73MLwk+WjJpokXUel7KWZZq 4RK+Io97j+cnuVvWhwIRBjSJNaBJllSKy4ErCyAsV9HoX4WF13Fw/4F8jqNZyHMxeYqQD ifmvJON7awOO5nrLVIbw3Fi1LgFk2YYaWpQu9DaPDbFUr3Bdy0uvQ45j8v2YkmPR8+piO 6upUfydgeyn/CxdQyOkD7GVzLGC4mDPk+dnHq7B/dRb84+ayOql9pO0u8qt0aCk2Qrg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796378724; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=x5PTzfkUDVqNF8/kYEUCrlP6vitI5harNBsz7RI/Hjk=; b=LpZfRaHo4M8uqFRtW81Hu0U0A8iTwcMneoTSP+RhklrVwfr7GCBVYdfoHQ1/Wa7DGWwy 9944dioNPfh2xC1shBS/aeCbIrsOIiyOHip8Bu7r1EEIkm6ftQrTQPr7RGMvnXGZYo0jv 4aAe/pkTmU8o4m9In/+XhLx/qWcDg4nlp67QWrQtksibLIJjkAD+rBs5v2jrzlXiNDWZl ik/J/YvmXmoy781nGibBZ+IImVMsGoy2Vnu3ZhpqERhpvozH0o2KJ0WH6lFsdVX/fd1ho QUTGNYqoMnFLRKUsWNCz5uvnfcNRSDR5I1GGDt2AFv3aUIkLuYaWg1/65IyRG6Y/f/A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bAqX+xvp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95E55606A683 for ; Fri, 4 Dec 2026 10:05:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bAqX+xvp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5323F1F000CE; Fri, 4 Dec 2026 10:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796378724; bh=x5PTzfkUDVqNF8/kYEUCrlP6vitI5harNBsz7RI/Hjk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=bAqX+xvpHD9Z9g39qmmNCU2EY9vVLWRr4pyKSOsThGiCenuSvhgkEw0K6IdgSYI+t ikwT9OZmP7I8cUY5ddk6mjETShKXTN2ND5BiK3FosM50Wdour9+E0g8H7bqviAJ5tC bTwbZwvqw/+lAsMVvuyWMOtAUN8psdD3sDvJmM1mI4iZYI9GJRTpJMtjpoOutd6L/B 6mcmG17xccbF56Kj2qamGaqoXSiGwVcy7DmWwAJUbqk6E+8EZ5X7kUdUdfL/UKj6aN gZ+W0ePQxcKdWsmNm8UqWZGSv4RNQus/Z4sYJoxif9V600B4IA5ZcgAdrqj/4fNtGE FqvtMLdoFOeQg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] serial: 8250: account for partial receive DMA delivery to TTY Reply-To: sashiko-reviews@lists.linux.dev To: "James Hilliard" Cc: linux-serial@vger.kernel.org In-Reply-To: <20261204-submit-serial-8250-dma-rx-accounting-v1-v2-1-f84eb4abbb2d@gmail.com> References: <20261204-submit-serial-8250-dma-rx-accounting-v1-v2-1-f84eb4abbb2d@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 10:05:23 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > tty_insert_flip_string() can accept fewer bytes than requested when the > flip buffer cannot grow. The DMA receive path advances past the entire > range regardless, but does not record that some bytes were dropped. >=20 > Increment buf_overrun on a short insertion, as the PIO receive path > does for a failed character insertion. Keep rx accounting for bytes > received from hardware and do not retry data after the DMA buffer has > been released. >=20 > Fixes: 9ee4b83e51f7 ("serial: 8250: Add support for dmaengine") > Signed-off-by: James Hilliard Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-submit-ser= ial-8250-dma-rx-accounting-v1-v2-1-f84eb4abbb2d@gmail.com?part=3D1