8250 DW UART fixes when under constant Rx pressure
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest7 patches 1 replyIn review
- v37 patches 0 repliesSuperseded
- v27 patches 11 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 6 patches | 14 replies | Superseded |
Changes in v4 from the cover letter
- Fix warning about label at the end (due to commented out code) being an extension by adding an otherwise unnecessary return.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | serial: 8250: Protect LCR write in shutdowndrivers/ | +6 | 0 replies | |
| 2/7 | serial: 8250_dw: Avoid unnecessary LCR writesdrivers/ | +31 | 0 replies | |
| 3/7 | serial: 8250: Add serial8250_handle_irq_locked()drivers/ include/ | +17 | 0 replies | |
| 4/7 | serial: 8250_dw: Rework dw8250_handle_irq() locking and IIR handlingdrivers/ | +21 | 0 replies | |
| 5/7 | serial: 8250_dw: Rework IIR_NO_INT handling to stop interrupt stormdrivers/ | +63 | 0 replies | |
| 6/7 | serial: 8250: Add late synchronize_irq() to shutdown to handle DW UART BUSYdrivers/ | +6 | 0 replies | |
| 7/7 | serial: 8250_dw: Ensure BUSY is deasserteddrivers/ drivers/ drivers/ | +161 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Bandal, Shankar | Murthy, Shanth | Andy Shevchenko |
|---|---|---|---|
| 1/7 | T-b | T-b | R-b |
| 2/7 | T-b | T-b | R-b |
| 3/7 | T-b | T-b | R-b |
| 4/7 | T-b | T-b | R-b |
| 5/7 | T-b | T-b | R-b |
| 6/7 | T-b | T-b | R-b |
| 7/7 | T-b | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v4 0/7] 8250 DW UART fixes when under constant Rx pressure
Hi all,
Here are fixes to 8250 DW UART conditions that mostly occur in scenarios under constant Rx pressure which are made complicated by BUSY handling of DW UARTs (used when !uart_16550_compatible).
A few of the changes touch also 8250_port but it's mostly moving existing code around (except for the extra synchronize_irq() in shutdown).
Pending cleanups (to be sent separately):
- 8250_dw: UART_IIR_RX_TIMEOUT move to switch/case
- 8250: include sorting
- 8250: iir types to u8
v4:
- Fix warning about label at the end (due to commented out code) being an extension by adding an otherwise unnecessary return.
v3:
- Rollback dw8250_idle_enter() failures within
- usr_reg = ... ? ... : ...;
- Leave LCR write fail dev_err() where it was (commented out)
v2:
- Added Fixes tags pointing DW & INTC10EE introducing commits
- Added Cc stable to prerequisite patches
- Separate adding serial8250_handle_irq_locked() to own patch
- Put new exports to SERIAL_8250 namespace (eventually all 8250 exports should move there, but out-of-scope for this series)
- Changes to no_int_count
- Change type to u8
- Use modulo in increment, add a define for it
- Perform kick only on 4th NO_INT
- Use serial_port_in/out() throughout the series
- Add FIXME comments to ndelay(frame_time) about very low baud rates
- Add cleanup.h
- Tweak lockdep.h place among misordered includes
- Wording tweaks to changelogs and comments
Ilpo Järvinen (7):
serial: 8250: Protect LCR write in shutdown
serial: 8250_dw: Avoid unnecessary LCR writes
serial: 8250: Add serial8250_handle_irq_locked()
serial: 8250_dw: Rework dw8250_handle_irq() locking and IIR handling
serial: 8250_dw: Rework IIR_NO_INT handling to stop interrupt storm
serial: 8250: Add late synchronize_irq() to shutdown to handle DW UART
BUSY
serial: 8250_dw: Ensure BUSY is deasserted
drivers/tty/serial/8250/8250.h | 25 +++ drivers/tty/serial/8250/8250_dw.c | 296 ++++++++++++++++++++++------ drivers/tty/serial/8250/8250_port.c | 69 ++++--- include/linux/serial_8250.h | 1 + 4 files changed, 304 insertions(+), 87 deletions(-)
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
Signature · 1 line
2.39.5