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 667D9374D9 for ; Mon, 17 Jun 2024 09:07:00 +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=1718615221; cv=none; b=c6mWa/X5ejKjaCjlZisNl14nP7halpLiudolg0ZmUfkpslAdcsOzMN31pzXSbll6/4xBoSlz/HQb/R3cL4gW30+rq50UtWwcKBMmObzYSE5kPgJV5blObjS/Gza0DeLe5jfumjz74se4W0rZva4w7DyUZKbZJlynFdBcnxJJKLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718615221; c=relaxed/simple; bh=a/4mdB37BK0lg8o6ZcXvefjnTNlorpOYfFRhJypjgOM=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Zjp4ttjaeWp/PItJOo6E3/XZWqYtJBh8KPx7Gu+nrI5elPMS5bS8TfZuqOSLY06LLMyJEdsFVk4bQ9BZEUn8v3fQ6FR/Y4M2xQO0OJBpiSnELWlQQ0Sf9F35OdmEi1sG65G9OoXSCmAEyEhiiT82jcGp49Svv+rVVwAN9587O4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZePtbhwc; 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="ZePtbhwc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 731F1C2BD10; Mon, 17 Jun 2024 09:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718615220; bh=a/4mdB37BK0lg8o6ZcXvefjnTNlorpOYfFRhJypjgOM=; h=Subject:To:Cc:From:Date:From; b=ZePtbhwcfyd8Sg5HlvXFOI/q7kigcq+/lFVNyom/f19RS6qV4F0rf888h+MbtZaGS hqRUmZH5xaPu6MA17bSAUowlcJ8MiQUTHlt3/e57RuhlrvOLscmNJFdk6cAr+AcSDO uv77QwPwFkRvvjun6IGeodK9MqTTB6rZW5eFYYSY= Subject: FAILED: patch "[PATCH] serial: 8250_pxa: Configure tx_loadsz to match FIFO IRQ level" failed to apply to 6.1-stable tree To: doug@schmorgal.com,gregkh@linuxfoundation.org,stable@kernel.org Cc: From: Date: Mon, 17 Jun 2024 11:06:55 +0200 Message-ID: <2024061755-unissued-basically-add8@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 5208e7ced520a813b4f4774451fbac4e517e78b2 # git commit -s git send-email --to '' --in-reply-to '2024061755-unissued-basically-add8@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: 5208e7ced520 ("serial: 8250_pxa: Configure tx_loadsz to match FIFO IRQ level") cc6628f07e0d ("serial: 8250_pxa: Switch to use uart_read_port_properties()") thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 5208e7ced520a813b4f4774451fbac4e517e78b2 Mon Sep 17 00:00:00 2001 From: Doug Brown Date: Sun, 19 May 2024 12:19:30 -0700 Subject: [PATCH] serial: 8250_pxa: Configure tx_loadsz to match FIFO IRQ level The FIFO is 64 bytes, but the FCR is configured to fire the TX interrupt when the FIFO is half empty (bit 3 = 0). Thus, we should only write 32 bytes when a TX interrupt occurs. This fixes a problem observed on the PXA168 that dropped a bunch of TX bytes during large transmissions. Fixes: ab28f51c77cd ("serial: rewrite pxa2xx-uart to use 8250_core") Signed-off-by: Doug Brown Link: https://lore.kernel.org/r/20240519191929.122202-1-doug@schmorgal.com Cc: stable Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/tty/serial/8250/8250_pxa.c b/drivers/tty/serial/8250/8250_pxa.c index f1a51b00b1b9..ba96fa913e7f 100644 --- a/drivers/tty/serial/8250/8250_pxa.c +++ b/drivers/tty/serial/8250/8250_pxa.c @@ -125,6 +125,7 @@ static int serial_pxa_probe(struct platform_device *pdev) uart.port.iotype = UPIO_MEM32; uart.port.regshift = 2; uart.port.fifosize = 64; + uart.tx_loadsz = 32; uart.dl_write = serial_pxa_dl_write; ret = serial8250_register_8250_port(&uart);