From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: "Raul Rangel" <rrangel@chromium.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
"Tony Lindgren" <tony@atomide.com>,
"Sebastian Andrzej Siewior" <bigeasy@linutronix.de>,
"Richard Genoud" <richard.genoud@bootlin.com>,
"Nicolas Ferre" <nicolas.ferre@microchip.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
"Claudiu Beznea" <claudiu.beznea@tuxon.dev>,
"Jacky Huang" <ychuang3@nuvoton.com>,
"Shan-Chun Hung" <schung@nuvoton.com>,
"Pali Rohár" <pali@kernel.org>, "Frank Li" <Frank.Li@nxp.com>,
"Sascha Hauer" <s.hauer@pengutronix.de>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
"Maciej W. Rozycki" <macro@orcam.me.uk>,
"Timur Tabi" <timur@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
linux-serial <linux-serial@vger.kernel.org>,
linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v6 0/5] serial: 8250: serialize DMA cancellation with buffer reuse
Date: Mon, 26 Oct 2026 20:05:46 +0200 (EET) [thread overview]
Message-ID: <d4ed2b29-5717-7522-24d2-a13a5aa2baf2@linux.intel.com> (raw)
In-Reply-To: <CADvTj4okFSpw7Wo0e3DR4r4-1TDvOY1esoUDWftY27B7XwWAHA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 6861 bytes --]
On Mon, 26 Oct 2026, James Hilliard wrote:
> On Mon, Oct 26, 2026 at 10:24 AM Raul Rangel <rrangel@chromium.org> wrote:
> >
> > On Mon, Oct 26, 2026 at 5:16 AM Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> wrote:
> >>
> >> On Sat, 24 Oct 2026, James Hilliard wrote:
> >>
> >> > Reserve canceled transmit and receive storage until DMA and its completion
> >> > callbacks have retired. Serial-core write backpressure protects a flushed
> >> > TX FIFO while normal transfers continue to DMA directly from that FIFO.
> >> >
> >> > The series separates OMAP's locked completion processing and serializes
> >> > asynchronous write wakeups with the port lock before adding the serial-core
> >> > reservation helpers and applying them to 8250 TX. Flushing
> >> > empties the logical queue immediately. While the old transfer owns its
> >> > storage, write_room() reports zero and write-ready notifications wait for
> >> > retirement. Failed termination retains the reservation until normal
> >> > completion, without advancing the reset FIFO. DMA retirement releases the
> >> > reservation independently of port readiness. Serial core keeps writes and
> >> > wakeups gated during shutdown until successful startup or resume.
> >> >
> >> > RX delivers paused data before the PIO fallback and retires callbacks in
> >> > process context. Track FIFO access separately from buffer retirement so
> >> > PIO and the DesignWare empty-FIFO timeout handling can run once DMA has
> >> > released the FIFO. On failure, retain the requested interrupt enables in
> >> > the existing IER shadow and mask receive interrupts in hardware until DMA
> >> > has stopped. Recovery then leaves RX on PIO until reopen. Shutdown excludes
> >> > new retirement work before releasing the channels.
> >> >
> >> > Based on tty-next with the posted shutdown guard [0], channel
> >> > configuration error handling [1], RX TTY accounting fix [2], RZ/N1
> >> > transfer-length fix [3], transmit-PM shutdown fix [4], serport
> >> > write-wakeup deferral [5], DesignWare BUSY-safe fractional-divisor
> >> > programming [6], and Intel MID RX DMA timeout locking [7]. The serport fix
> >> > is needed before serializing the remaining write-wakeup callers with the
> >> > port lock.
> >> >
> >> > [0] https://lore.kernel.org/r/20261021-submit-serial-8250-dma-shutdown-v1-v1-1-3d3ce383c614@gmail.com
> >> > [1] https://lore.kernel.org/r/20261021-submit-serial-8250-dma-config-errors-v1-v1-1-c067587d1ef2@gmail.com
> >> > [2] https://lore.kernel.org/r/20261021-submit-serial-8250-dma-rx-accounting-v1-v1-1-c11795914ab4@gmail.com
> >> > [3] https://lore.kernel.org/r/20261023-submit-serial-8250-dma-tx-length-v1-v2-1-c3106ef4d2df@gmail.com
> >> > [4] https://lore.kernel.org/r/20261022-submit-serial-8250-tx-pm-shutdown-v1-v1-1-0e894afa3bb8@gmail.com
> >> > [5] https://lore.kernel.org/r/20261023-submit-serport-write-wakeup-v1-v1-1-74e7311638a2@gmail.com
> >> > [6] https://lore.kernel.org/r/20261024-submit-serial-8250-dw-divisor-v1-v2-1-032ca5338359@gmail.com
> >> > [7] https://lore.kernel.org/r/20261024-submit-serial-8250-mid-rx-lock-v1-v1-1-2b9afdf869d7@gmail.com
> >> >
> >> > Assisted-by: Codex:gpt-6-astra
> >> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> >> > ---
> >> > Changes in v6:
> >>
> >> Hi,
> >
> >
> >>
> >>
> >>
> >> This series is moving way too fast with new versions. Please slow down.
> >
> >
> > +1. I think you should have spent more time refining your patch set before submission, or sending individual patches that weren't interelated.
>
> I was doing as much validation as I could locally already but often I
> was missing
> issues the Sashiko review bot was flagging. Since the Sashkio reviews appeared
> to be release issues I was doing respins to try and fix all those issues.
Fixing an issue sashiko finds does not mandate you to send the fixed
version out right away. And yes, definitely, fix those issues as soon as
you want, no matter what's the source (sashiko, human reviewer, your own
mind finding flaws when given time to process the code you've
read/written), they'll then be in store for the time when it's time to
send the next version.
We do know this is a major problem with AI review that it pushes
submitters to do rapid refresh cycle on the false pretence that reviewers
must always see the latest and shiniest code (despite often the corner
cases sashiko find relate to a single obscure driver most reviewers would
have no opinion anyway) or that humans should only be bothered when AI bot
found nothing (yet they always have a huge cc lists and mailing lists with
hundreths if not thousands receipients so it doesn't add up with that
excuse either!). Effectively such a patch sending loop ends up only
feeding the AI review bot.
> Apparently not everyone is seeing those reviews posted despite them showing
> up fine in lore for me.[0]
>
> Is everyone here seeing those reviews or are they not showing up?
>
> [0] https://lore.kernel.org/all/CADvTj4oNz-bnSZP+kfau-7wBSWLjLTP5jrr6nLfdCHNPo3pS6w@mail.gmail.com/
It's quite irrelevant to me whether I can see the reviews Sashiko gives
(and I could look them up from https://sashiko.dev if I'd be interested
and they do appear there).
When I do review the patch series I'm not basing my review on top of
sashiko's nor on top of other reviewer's. Sometimes I end up reviewing
something that gets updated by a later version because of that but it also
makes me immune to false claims or fixations of others. But the number one
cause for me reviewing an older version is sender sending versions very
close to each other, often during weekend (in how many cases the part of
the code I commented on had changed, I don't have an estimate for you,
sorry).
At reaching v6 this fast, you've clearly done something wrong given
multiple people are pointing out this to you, and yet all we get in
response is that "I only did it because sashiko gave me things to fix".
What is missing is a clear indication that you've understood the way
you've behaved so far will not maintain good appearance in the eyes of
many of the community. So please consider if it is really worth the few
extra days waiting would require.
I suggest you never do more than two versions per week on any non-trivial
series. I can understand sometimes a quick refresh (especially when
at v1-v2) is warranted but to do it for many versions close to each other
is something that people don't want to see.
And I do know how annoying it is to wait with patches and submit
prerequisite fixes first, with all the annoying delay it comes with
for the main patches one wants to get upstreamed, so I'm in no different
boat than you when it comes to that part.
--
i.
prev parent reply other threads:[~2026-10-26 18:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 20:52 [PATCH v6 0/5] serial: 8250: serialize DMA cancellation with buffer reuse James Hilliard
2026-10-24 20:52 ` [PATCH v6 1/5] serial: 8250_omap: separate locked TX DMA completion processing James Hilliard
2026-10-24 20:52 ` [PATCH v6 2/5] serial: serialize asynchronous write wakeups with the port lock James Hilliard
2026-10-25 15:14 ` Andy Shevchenko
2026-10-24 20:52 ` [PATCH v6 3/5] serial: core: allow drivers to reserve flushed transmit storage James Hilliard
2026-10-24 20:52 ` [PATCH v6 4/5] serial: 8250: drain canceled TX DMA before reusing its buffer James Hilliard
2026-10-24 20:52 ` [PATCH v6 5/5] serial: 8250: retire canceled RX DMA before reusing the receive buffer James Hilliard
2026-10-26 11:15 ` [PATCH v6 0/5] serial: 8250: serialize DMA cancellation with buffer reuse Ilpo Järvinen
[not found] ` <CAHQZ30AfcwMTXPpCgiWkhz1OFoxHJOqcVmur8Buz72M45Acuag@mail.gmail.com>
2026-10-26 17:10 ` James Hilliard
2026-10-26 18:05 ` Ilpo Järvinen [this message]
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=d4ed2b29-5717-7522-24d2-a13a5aa2baf2@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=Frank.Li@nxp.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bigeasy@linutronix.de \
--cc=claudiu.beznea@tuxon.dev \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=imx@lists.linux.dev \
--cc=james.hilliard1@gmail.com \
--cc=jirislaby@kernel.org \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=macro@orcam.me.uk \
--cc=nicolas.ferre@microchip.com \
--cc=pali@kernel.org \
--cc=richard.genoud@bootlin.com \
--cc=rrangel@chromium.org \
--cc=s.hauer@pengutronix.de \
--cc=schung@nuvoton.com \
--cc=timur@kernel.org \
--cc=tony@atomide.com \
--cc=ychuang3@nuvoton.com \
/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