[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250702172036.GC1039028@e132581.arm.com>
Date: Wed, 2 Jul 2025 18:20:36 +0100
From: Leo Yan <leo.yan@....com>
To: Breno Leitao <leitao@...ian.org>
Cc: cov@...eaurora.org, rmk+kernel@...linux.org.uk, mark.rutland@....com,
catalin.marinas@....com, linux-serial@...r.kernel.org,
rmikey@...a.com, linux-arm-kernel@...ts.infradead.org,
usamaarif642@...il.com, linux-kernel@...r.kernel.org,
paulmck@...nel.org
Subject: Re: arm64: csdlock at early boot due to slow serial (?)
Hi Breno,
On Wed, Jul 02, 2025 at 10:10:21AM -0700, Breno Leitao wrote:
[...]
> Further debugging revealed the following sequence with the pl011 registers:
>
> 1) uart_console_write()
> 2) REG_FR has BUSY | RXFE | TXFF for a while (~1k cpu_relax())
> 3) RXFE and TXFF are cleaned, and BUSY stay on for another 17k-19k cpu_relax()
>
> Michael has reported a hardware issue where the BUSY bit could get
> stuck (see commit d8a4995bcea1: "tty: pl011: Work around QDF2400 E44 stuck BUSY
> bit"), which is very similar. TXFE goes down, but BUSY is(?) still stuck for long.
>
> If I am having the same hardware issue, I suppose I need to change that logic
> to exist the cpu_relax() loop by checking when Transmit FIFO Empty (TXFE) is 0
> instead of BUSY.
>
> Anyway, any one familar with this weird behaviour?
To be clear, I am not familiar with pl011 driver.
For the first step, could you confirm the UART port is only used by
Linux kernel?
In some cases, if normal world and secure world share the same UART
port, it can cause the UART state machine malfunction and long wait.
Thanks,
Leo
Powered by blists - more mailing lists