From: Daniel Byrne <daniel1.byrne@intel.com>
To: Frank Li <Frank.li@oss.nxp.com>
Cc: Daniel Byrne <daniel1.byrne@intel.com>,
Vinod Koul <vkoul@kernel.org>, Dave Jiang <dave.jiang@intel.com>,
Fenghua Yu <fenghua.yu@intel.com>,
Vinicius Costa Gomes <vinicius.gomes@intel.com>,
Jonathan Corbet <corbet@lwn.net>,
Ludovic Desroches <ludovic.desroches@microchip.com>,
dmaengine@vger.kernel.org, linux-doc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] dmaengine: add dmaengine_async_is_tx_complete() for channel status queries
Date: Mon, 30 Nov 2026 12:02:45 -0800 [thread overview]
Message-ID: <20261130200245.1903366-1-daniel1.byrne@intel.com> (raw)
In-Reply-To: <atZjPjTz8iJQKFNj@SMW015318>
On Mon, 19 Oct 2026 18:36:46 +0000, Frank Li wrote:
> Does it should wrap dmaengine_tx_status()? from naming conversion
>
> dmaengine_async_is_tx_complete() should return bool type.
>
>
> I don't that it is true. Supposed user can always poll state regardless if
> set DMA_PREP_INTERRUPT.
>
>
>
> Use sperate patch for such movement.
>
> Frank
> Does it should wrap dmaengine_tx_status()? from naming conversion
Yes, v2 calls dmaengine_tx_status() instead of reaching into the
device ops.
> dmaengine_async_is_tx_complete() should return bool type.
It keeps enum dma_status, like dma_async_is_tx_complete() that it
replaces, a polling client has to tell DMA_ERROR from DMA_COMPLETE,
and dma_sync_wait() and dmatest use each.
> I don't that it is true. Supposed user can always poll state regardless if
> set DMA_PREP_INTERRUPT.
Sorry, I should have clarified. Any cookie can be queried either way.
What the flag changes is where the result goes, without it the query
is the only place the transaction reports, and on a provider that
tracks per-descriptor state the query that sees it end retires the
descriptor. With it, the provider completes the descriptor and reports
through callback_result, and the query only reports whether it has ended.
v2's kernel-doc and message will state that.
> Use sperate patch for such movement.
Done, it is its own patch in v2.
Thanks,
Daniel
next prev parent reply other threads:[~2026-11-30 20:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 15:06 [PATCH 0/3] [PATCH 0/3] dmaengine: polled completion status for out-of-order providers Daniel Byrne
2026-10-19 15:06 ` [PATCH 1/3] dmaengine: add dmaengine_async_is_tx_complete() for channel status queries Daniel Byrne
2026-10-19 18:36 ` Frank Li
2026-11-30 20:02 ` Daniel Byrne [this message]
2026-10-19 15:06 ` [PATCH 2/3] dmaengine: idxd: generation-number transaction status Daniel Byrne
2026-10-19 18:53 ` Dave Jiang
2026-11-30 20:02 ` Daniel Byrne
2026-10-19 15:06 ` [PATCH 3/3] dmaengine: drop DMA_COMPLETION_NO_ORDER and DMA_OUT_OF_ORDER Daniel Byrne
2026-10-19 19:02 ` Frank Li
2026-11-30 20:02 ` Daniel Byrne
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=20261130200245.1903366-1-daniel1.byrne@intel.com \
--to=daniel1.byrne@intel.com \
--cc=Frank.li@oss.nxp.com \
--cc=corbet@lwn.net \
--cc=dave.jiang@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=fenghua.yu@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ludovic.desroches@microchip.com \
--cc=vinicius.gomes@intel.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