From: Santhosh Kumar K <s-k6@ti.com>
To: <krzk@kernel.org>, <robh@kernel.org>, <conor+dt@kernel.org>,
<s-k6@ti.com>
Cc: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>
Subject: [PATCH v2 0/2] Fix OSPI DMA corruption via FSS_FSAS driver
Date: Mon, 29 Jun 2026 12:50:53 +0530 [thread overview]
Message-ID: <20260629072055.896322-1-s-k6@ti.com> (raw)
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/20260629065517.868418-1-s-k6@ti.com/
Signed-off-by: Santhosh Kumar K <s-k6@ti.com>
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
--
2.34.1
next reply other threads:[~2026-06-29 7:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-29 7:20 Santhosh Kumar K [this message]
2026-06-29 7:20 ` [PATCH v2 1/2] dt-bindings: memory: Add TI FSS_FSAS binding Santhosh Kumar K
2026-07-02 16:33 ` Rob Herring (Arm)
2026-06-29 7:20 ` [PATCH v2 2/2] memory: ti-k3-fsas: Add TI FSS_FSAS driver Santhosh Kumar K
2026-06-29 7:32 ` sashiko-bot
2026-06-30 7:13 ` [PATCH v2 0/2] Fix OSPI DMA corruption via " Krzysztof Kozlowski
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=20260629072055.896322-1-s-k6@ti.com \
--to=s-k6@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@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