From: "Nuno Sá" <noname.nuno@gmail.com>
To: Frank Li <Frank.li@oss.nxp.com>
Cc: nuno.sa@analog.com, dmaengine@vger.kernel.org,
linux-iio@vger.kernel.org, Vinod Koul <vkoul@kernel.org>,
Frank Li <Frank.Li@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Jonathan Cameron <jic23@kernel.org>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>
Subject: Re: [PATCH RFC 1/3] dmaengine: Support address bus widths of 32 bytes and above
Date: Thu, 18 Jun 2026 18:13:47 +0100 [thread overview]
Message-ID: <ajQnE0e5a1JS7IWU@nsa> (raw)
In-Reply-To: <ajF3p3Vu_pOx9z_V@SMW015318>
On Tue, Jun 16, 2026 at 11:19:51AM -0500, Frank Li wrote:
> On Tue, Jun 16, 2026 at 04:40:52PM +0100, Nuno Sá via B4 Relay wrote:
> > [You don't often get email from devnull+nuno.sa.analog.com@kernel.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> >
> > From: Nuno Sá <nuno.sa@analog.com>
> >
> > The src_addr_widths and dst_addr_widths capability masks encode each
> > supported width as a bit whose position equals the corresponding
> > enum dma_slave_buswidth value (e.g. DMA_SLAVE_BUSWIDTH_4_BYTES sets
> > bit 4). As these masks are plain u32, widths of 32 bytes and above
> > (DMA_SLAVE_BUSWIDTH_32/64/128_BYTES map to bits 32, 64 and 128) cannot
> > be represented at all.
>
> This is problem, which should be fixed.
>
> >
> > Introduce bitmap-based masks that span the full enum range. To allow
> > controllers and consumers to be converted incrementally, the legacy
> > u32 fields are kept alongside the new bitmaps: producers populate the
> > bitmap (mirroring the low 32 bits back into the legacy field) and
> > dma_get_slave_caps() folds a legacy-only producer's u32 into the
> > returned bitmap.
> >
> > Add dma_set_{src,dst}_addr_mask() for producers and
> > dma_slave_caps_get_{src,dst}_width_min() for consumers so that, once
> > every user is converted, the legacy u32 fields can be dropped and the
> > bitmaps renamed without further churn.
>
> Good mirgration plan.
Cool! I'll then wait some more days and if nothing pops up will drop the
RFC and send a new series addressing some valid AI inputs and converting
more drivers.
- Nuno Sá
>
> Frank
next prev parent reply other threads:[~2026-06-18 17:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 15:40 [PATCH RFC 0/3] dmaengine: Support address bus widths of 32 bytes and above Nuno Sá via B4 Relay
2026-06-16 15:40 ` Nuno Sá
2026-06-16 15:40 ` [PATCH RFC 1/3] " Nuno Sá via B4 Relay
2026-06-16 15:40 ` Nuno Sá
2026-06-16 15:55 ` sashiko-bot
2026-06-16 16:19 ` Frank Li
2026-06-18 17:13 ` Nuno Sá [this message]
2026-06-18 18:08 ` Frank Li
2026-06-16 15:40 ` [PATCH RFC 2/3] dmaengine: dma-axi-dmac: Switch to bitmap-based address width masks Nuno Sá via B4 Relay
2026-06-16 15:40 ` Nuno Sá
2026-06-16 15:52 ` sashiko-bot
2026-06-16 16:23 ` Frank Li
2026-06-18 17:10 ` Nuno Sá
2026-06-16 15:40 ` [PATCH RFC 3/3] iio: buffer-dmaengine: Use dma_slave_caps width accessors Nuno Sá via B4 Relay
2026-06-16 15:40 ` Nuno Sá
2026-06-16 16:25 ` Frank Li
2026-06-17 9:57 ` [PATCH RFC 0/3] dmaengine: Support address bus widths of 32 bytes and above Andy Shevchenko
2026-06-17 14:19 ` Nuno Sá
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=ajQnE0e5a1JS7IWU@nsa \
--to=noname.nuno@gmail.com \
--cc=Frank.Li@kernel.org \
--cc=Frank.li@oss.nxp.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=dmaengine@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=nuno.sa@analog.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.