dmaengine: dw: Fix src/dst addr width misconfig
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest6 patches 17 repliesApplied
- v36 patches 0 repliesSuperseded
- v26 patches 0 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 22 replies | Superseded |
Changes in v4 from the cover letter
- Rebase onto the kernel 6.11-rc1.
- Just resend.
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | dmaengine: dw: Add peripheral bus width verificationdrivers/ | +38 | 8 replies | |
| 2/6 | dmaengine: dw: Add memory bus width verificationdrivers/ | +44 | 0 replies | |
| 3/6 | dmaengine: dw: Simplify prepare CTL_LO methodsdrivers/ drivers/ | +21 | 0 replies | |
| 4/6 | dmaengine: dw: Define encode_maxburst() above prepare_ctllo() callbacksdrivers/ drivers/ | +14 | 0 replies | |
| 5/6 | dmaengine: dw: Simplify max-burst calculation proceduredrivers/ drivers/ drivers/ +1 more | +29 | 0 replies | |
| 6/6 | dmaengine: dw: Unify ret-val local variables namingdrivers/ drivers/ | +20 | 0 replies |
Reviews trailers per patch
None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Andy Shevchenko |
|---|---|
| Series | A-b |
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RESEND v4 0/6] dmaengine: dw: Fix src/dst addr width misconfig
The main goal of this series is to fix the data disappearance in case of the DW UART handled by the DW AHB DMA engine. The problem happens on a portion of the data received when the pre-initialized DEV_TO_MEM DMA-transfer is paused and then disabled. The data just hangs up in the DMA-engine FIFO and isn't flushed out to the memory on the DMA-channel suspension (see the second commit log for details). On a way to find the denoted problem fix it was discovered that the driver doesn't verify the peripheral device address width specified by a client driver, which in its turn if unsupported or undefined value passed may cause DMA-transfer being misconfigured. It's fixed in the first patch of the series.
In addition to that three cleanup patches follow the fixes described above in order to make the DWC-engine configuration procedure more coherent. First one simplifies the CTL_LO register setup methods. Second and third patches simplify the max-burst calculation procedure and unify it with the rest of the verification methods. Please see the patches log for more details.
Final patch is another cleanup which unifies the status variables naming in the driver.
Changelog v2:
- Add a note to the Patch #1 commit message about having the verification method called in the dwc_config() function. (Andy)
- Add hyphen to "1byte" in the in-situ comment. (Andy)
- Convert "err" to "ret" variables and add a new patch which unifies the status variables naming. (Andy)
- Add a in-situ comment regarding why the memory-side bus width verification was required. (Andy)
- Group sms+dms and smsize+dmsize local variables initializations up. (Andy)
- Move the zero initializations out to the variables init block
in the prepare_ctllo() callbacks. (Andy)
- Directly refer to dwc_config() in the commit messages. (Andy)
- Convert dwc_verify_maxburst() to returning zero. (Andy)
- Add a comment regarding the values utilized in dwc_verify_p_buswidth() being pre-verified before the method is called. (Andy)
- Add new patches:
[PATCH v2 4/6] dmaengine: dw: Define encode_maxburst() above prepare_ctllo() callbacks [PATCH v2 6/6] dmaengine: dw: Unify ret-val local variable naming
(Andy)
Changelog v3:
- Rebase onto the kernel 6.10-rc4.
- Just resend.
Changelog v4:
- Rebase onto the kernel 6.11-rc1.
- Just resend.
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b
Serge Semin (6):
dmaengine: dw: Add peripheral bus width verification
dmaengine: dw: Add memory bus width verification
dmaengine: dw: Simplify prepare CTL_LO methods
dmaengine: dw: Define encode_maxburst() above prepare_ctllo()
callbacks
dmaengine: dw: Simplify max-burst calculation procedure
dmaengine: dw: Unify ret-val local variables naming
drivers/dma/dw/core.c | 131 +++++++++++++++++++++++++++++++------- drivers/dma/dw/dw.c | 40 +++++++----- drivers/dma/dw/idma32.c | 19 +++--- drivers/dma/dw/platform.c | 20 +++--- drivers/dma/dw/regs.h | 1 - 5 files changed, 154 insertions(+), 57 deletions(-)
Signature · 1 line
2.43.0