From: Frank Li <Frank.li@oss.nxp.com>
To: "Jeff C. Jensen" <kernel@nullptr.com>
Cc: Vinod Koul <vkoul@kernel.org>,
dmaengine@vger.kernel.org, Frank Li <Frank.Li@kernel.org>,
Michal Simek <michal.simek@amd.com>,
Suraj Gupta <suraj.gupta2@amd.com>,
Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>,
Alex Bereza <alex@bereza.email>,
Folker Schwesinger <dev@folker-schwesinger.de>,
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/5] dmaengine: xilinx_dma: Withhold an AXI DMA engine whose reset did not complete
Date: Wed, 28 Oct 2026 10:16:40 -0500 [thread overview]
Message-ID: <auIR2GFWZHUP5vzs@SMW015318> (raw)
In-Reply-To: <CAHnw2UkB_KTh3c816SUUgaH=SenFKOpYwvaMvowzi-O5oFmCyg@mail.gmail.com>
On Tue, Oct 27, 2026 at 01:36:27PM -0700, Jeff C. Jensen wrote:
> In theory. I haven't seen a reset time out on our hardware. Every failed
> reset in my testing was injected with fail_function, as the cover letter
> notes.
>
> PG021 describes the soft reset as graceful: "Pending commands/transfers
> are flushed or completed", and the Reset bit reads 1 while the reset is
> in progress. My reading is that a transfer that must complete needs the
> memory side to respond, so a stalled interconnect or memory port would
> keep the reset in progress. The driver already allows for that, since
> xilinx_dma_reset() polls the Reset bit with a timeout and returns an
> error. It just doesn't act on the error: xilinx_dma_terminate_all()
> frees the descriptors and returns 0 regardless, so if the engine is
> still fetching, the next transaction reuses segments the engine owns.
>
> Patch 4 may be more than this series should carry as a fix. One option
> is to drop it from the series and post it with patch 5 as a two-patch
> RFC, scoping failed resets out of this series.
Yes, reset timeout is most likely Triple fault. If timeout happen, most
likely hardware fault and can't recover at all.
We generally choose timeout value is much bigger than enough.
Frank
>
> -Jeff
>
> On Tue, Oct 27, 2026 at 12:22 PM Frank Li <Frank.li@oss.nxp.com> wrote:
> >
> > On Thu, Oct 22, 2026 at 03:11:33PM -0700, Jeff C. Jensen wrote:
> > > When xilinx_dma_chan_reset() times out, all the driver knows is that it
> >
> > Does this real happen? or just in theory
> >
> > Frank
> >
next prev parent reply other threads:[~2026-10-28 15:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 22:11 [PATCH 0/5] dmaengine: xilinx_dma: Fix AXI DMA descriptor ring ordering and failed resets Jeff C. Jensen via B4 Relay
2026-10-22 22:11 ` [PATCH 1/5] dmaengine: xilinx_dma: Reject transfers that map no data Jeff C. Jensen via B4 Relay
2026-10-27 16:37 ` Frank Li
2026-10-22 22:11 ` [PATCH 2/5] dmaengine: xilinx_dma: Fix cyclic period count truncation Jeff C. Jensen via B4 Relay
2026-10-27 16:39 ` Frank Li
2026-10-22 22:11 ` [PATCH 3/5] dmaengine: xilinx_dma: Allocate AXI DMA segments in ring order Jeff C. Jensen via B4 Relay
2026-10-27 19:15 ` Frank Li
2026-10-22 22:11 ` [PATCH 4/5] dmaengine: xilinx_dma: Withhold an AXI DMA engine whose reset did not complete Jeff C. Jensen via B4 Relay
2026-10-27 19:22 ` Frank Li
2026-10-27 20:36 ` Jeff C. Jensen
2026-10-28 15:16 ` Frank Li [this message]
2026-10-28 23:38 ` Jeff C. Jensen
2026-10-22 22:11 ` [PATCH 5/5] dmaengine: xilinx_dma: Recover a withheld AXI DMA channel Jeff C. Jensen via B4 Relay
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=auIR2GFWZHUP5vzs@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@kernel.org \
--cc=alex@bereza.email \
--cc=dev@folker-schwesinger.de \
--cc=dmaengine@vger.kernel.org \
--cc=kernel@nullptr.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=radhey.shyam.pandey@amd.com \
--cc=suraj.gupta2@amd.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=vkoul@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
all inboxes | Powered by JetHome®