Linux Serial subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "James Hilliard" <james.hilliard1@gmail.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH v7 2/5] serial: serialize asynchronous write wakeups with the port lock
Date: Tue, 27 Oct 2026 23:54:11 +0000	[thread overview]
Message-ID: <sashiko-outbox-187242@kernel.org> (raw)
In-Reply-To: <20261027-submit-serial-8250-dma-cancel-v1-v7-2-985a023ba4b4@gmail.com>

> uart_write_wakeup() expects the UART port lock to be held. Several worker,
> DMA completion and interrupt paths call it without that lock, including
> indirect calls from uart_handle_cts_change() and the transmit helpers.
> 
> Take the port lock around these notifications or their transmit helper.
> Keep sleeping SPI and regmap accesses outside the locked region, and keep
> the FSL LPUART completion lock held through its wakeup. Acquire the port
> lock after releasing private channel locks to preserve the ordering used
> by UART callbacks. In the MUX timer, publish available FIFO space under
> the port lock and keep the hardware FIFO-drain wait outside it.
> 
> Use IRQ-safe locking in the Atmel RX and TX tasklets and SB1250 termios
> path, since their interrupt handlers now acquire the same port lock.
> Preserve the caller's interrupt state when releasing those locks.
> 
> [ ... ]
> This serializes write notifications with port-locked serial-core state
> changes, allowing readiness and transmit-storage reservations to gate the
> notification without a check-versus-shutdown race.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261027-submit-serial-8250-dma-cancel-v1-v7-0-985a023ba4b4@gmail.com?part=2


  reply	other threads:[~2026-10-27 23:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27 23:39 [PATCH v7 0/5] serial: 8250: serialize DMA cancellation with buffer reuse James Hilliard
2026-10-27 23:39 ` [PATCH v7 1/5] serial: 8250_omap: separate locked TX DMA completion processing James Hilliard
2026-10-27 23:43   ` sashiko-bot
2026-10-27 23:39 ` [PATCH v7 2/5] serial: serialize asynchronous write wakeups with the port lock James Hilliard
2026-10-27 23:54   ` sashiko-bot [this message]
2026-10-28 20:48   ` Raul E Rangel
2026-10-27 23:39 ` [PATCH v7 3/5] serial: core: allow drivers to reserve flushed transmit storage James Hilliard
2026-10-28  0:03   ` sashiko-bot
2026-10-27 23:39 ` [PATCH v7 4/5] serial: 8250: drain canceled TX DMA before reusing its buffer James Hilliard
2026-10-27 23:53   ` sashiko-bot
2026-10-28 20:48   ` Raul E Rangel
2026-10-29  8:14     ` James Hilliard
2026-10-27 23:39 ` [PATCH v7 5/5] serial: 8250: retire canceled RX DMA before reusing the receive buffer James Hilliard
2026-10-27 23:55   ` sashiko-bot
2026-10-28 20:48   ` Raul E Rangel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-187242@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=james.hilliard1@gmail.com \
    --cc=linux-serial@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox