Skip to content

Fix OSPI DMA corruption via FSS_FSAS driver

Santhosh Kumar K linux-devicetree lkml 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesIn review
  2. v1 posting 2/22 patches 0 repliesSuperseded
  3. v1 posting 1/22 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Fix $id in dt-binding
- Use pm_ptr() instead of pm_sleep_ptr()
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: memory: Add TI FSS_FSAS bindingDocumentation/devicetree/bindings/memory-controllers/ti,am62a-fsas.yaml+39 -02 replies
2/2memory: ti-k3-fsas: Add TI FSS_FSAS driverdrivers/memory/Kconfig drivers/memory/Makefile drivers/memory/ti-k3-fsas.c+85 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix OSPI DMA corruption via FSS_FSAS driver

On TI K3 SoCs, DMA transfers from OSPI produce corrupted data when the source address is only 4-byte aligned (not 4K-aligned). The root cause is XIP read prefetch in the FSS_FSAS_GENREGS wrapper (SYSCONFIG.DISXIP, bit 7), which is enabled by default.

This series adds a dedicated FSS_FSAS platform driver that disables XIP prefetch at probe, plus the respective DT binding.

Testing:
This series was tested on TI's
AM62Ax SK with OSPI NAND flash and
AM62Px SK with OSPI NOR flash:

Test log: https://gist.github.com/santhosh21/3ac2a0273065e86315a9b442327c9599
Repo: https://github.com/santhosh21/linux/commits/fsas

Changes in v2:
- Fix $id in dt-binding
- Use pm_ptr() instead of pm_sleep_ptr()
- Link to v1: https://lore.kernel.org/linux-devicetree/[email protected]/

Santhosh Kumar K (2):
dt-bindings: memory: Add TI FSS_FSAS binding
memory: ti-k3-fsas: Add TI FSS_FSAS driver

 .../memory-controllers/ti,am62a-fsas.yaml     | 39 ++++++++++
 drivers/memory/Kconfig                        | 10 +++
 drivers/memory/Makefile                       |  1 +
 drivers/memory/ti-k3-fsas.c                   | 74 +++++++++++++++++++
 4 files changed, 124 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/memory-controllers/ti,am62a-fsas.yaml
 create mode 100644 drivers/memory/ti-k3-fsas.c
Signature · 1 line
2.34.1