From: Andreas Kemnade <andreas@kemnade.info>
To: Bin Liu <binmlist@gmail.com>
Cc: Judith Mendez <jm@ti.com>,
Santosh Shilimkar <ssantosh@kernel.org>,
Kevin Hilman <khilman@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>,
linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org, Bin Liu <b-liu@ti.com>,
linux-serial@vger.kernel.org
Subject: Re: [PATCH RESEND 2/2] serial: 8250: omap: Move pm_runtime_get_sync
Date: Mon, 14 Oct 2024 17:22:37 +0200 [thread overview]
Message-ID: <20241014172237.63e9625f@akair> (raw)
In-Reply-To: <4297747A-8AB9-4E50-93FF-723672B6471C@gmail.com>
Am Sun, 13 Oct 2024 21:52:05 -0500
schrieb Bin Liu <binmlist@gmail.com>:
> Hi,
>
> Somehow this email wasn’t cc’d to my company email account
> b-liu@ti.com, so I am replying from my personal email which
> subscribed to the mailing list, and sorry if the formatting is wrong
> since I am writing this response on my phone.
>
> On Oct 12, 2024, at 7:27 AM, Andreas Kemnade <andreas@kemnade.info>
> wrote:
> >
> > Am Fri, 11 Oct 2024 12:33:56 -0500
> > schrieb Judith Mendez <jm@ti.com>:
> >
> > Currently in omap_8250_shutdown, the dma->rx_running
> >> flag is set to zero in omap_8250_rx_dma_flush. Next
> >> pm_runtime_get_sync is called, which is a runtime
> >> resume call stack which can re-set the flag. When the
> >> call omap_8250_shutdown returns, the flag is expected
> >> to be UN-SET, but this is not the case. This is causing
> >> issues the next time UART is re-opened and omap_8250_rx_dma
> >> is called. Fix by moving pm_runtime_get_sync before the
> >> omap_8250_rx_dma_flush.
> >>
> >> Signed-off-by: Bin Liu <b-liu@ti.com>
> >> Signed-off-by: Judith Mendez <jm@ti.com>
> >>
> > Is this a theorectical problem or some real practical problem?
> > So you are running a system with runtime pm enabled on serial
> > console.
> > How did you come across this issue?
> > I could run the serial console/getty with runtime pm autosuspend
> > enabled without issues all the years.
> >
> Yes this is a real issue reported on AM335x. Please see the report
> linked below.
>
> PROCESSOR-SDK-AM335X: Possible bug in 8250_omap UART driver -
> Processors forum - Processors - TI E2E support forums e2e.ti.com
>
>
Thanks for information, so it looks like material for backporting.
Maybe add the link in the description and add the cc stable and
add back the fixes tag.
Regards,
Andreas
next prev parent reply other threads:[~2024-10-14 15:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 17:33 [PATCH RESEND 0/2] Misc OMAP GPIO/UART fixes Judith Mendez
2024-10-11 17:33 ` [PATCH RESEND 1/2] gpio: omap: Add omap_gpio_disable/enable_irq calls Judith Mendez
2024-10-11 19:07 ` Andrew Davis
2024-10-17 18:38 ` Judith Mendez
2024-10-11 17:33 ` [PATCH RESEND 2/2] serial: 8250: omap: Move pm_runtime_get_sync Judith Mendez
2024-10-12 0:19 ` Kevin Hilman
2024-10-12 8:03 ` Greg KH
2024-10-17 18:47 ` Judith Mendez
2024-10-12 12:27 ` Andreas Kemnade
[not found] ` <4297747A-8AB9-4E50-93FF-723672B6471C@gmail.com>
2024-10-14 15:22 ` Andreas Kemnade [this message]
2024-10-11 22:52 ` [PATCH RESEND 0/2] Misc OMAP GPIO/UART fixes Kevin Hilman
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=20241014172237.63e9625f@akair \
--to=andreas@kemnade.info \
--cc=b-liu@ti.com \
--cc=binmlist@gmail.com \
--cc=brgl@bgdev.pl \
--cc=jm@ti.com \
--cc=khilman@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=ssantosh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).