From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795167652; b=JZxxolDmtWL6oFKFNK8EFJo3/tt5VUwQ4oBJ8JlPAyX1+Juh2GlCngr5t3W0KgNSgbwO x/kqR5TuszROkfaquxlxrhcKN7s+b7JZhHxJhERp3gJBCjnrnFF4444WzgN/WSw/RAS7X b2lSmJ4tVcIj2kkv92ZirlJqNJa9yr2KbsH4+bl07QaCB6y1FphcmbXnLdPTxf07/i2// UTquOHbKLInFbGLZplVJx2f8da/WdWr3WN5msRtFjzaz2Bes77fqq6BADyVswPfllrPMm 4tX0s82FLqt/pgtG6TS4TafXgk36mmX08aIelDzJYwXWY9CjhY0yXZd+NRhR5+DNjMA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795167652; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=R8cEUfchtfL1CMYDQSUQAyd5j+dKyqqQvy8JCKkeHTQ=; b=PKQzza0A9hq76LjcYK56846FmgSc7Q2qGCzhLsOQRke2C3vBK3pVHa0klgwB6IggPxCo g/ZbGabETEaWiaFDl3qaQP6i0K3nK1K7UI/u4hf6eHCs3hXNarVc1PpgtEiRfZrxkaczI DgZ2zsPNXQiOmuqoJrTTkaYbJbYQ8phcVqQVkqn4SgTnaSzm1yEj0PoxHn0FiUlfgoc/E bJgkconX2bw/Z2J1IE9kBYAEWWFE05wlyQHZsh6nlC+3sIufHFvXpg4LNpacVlIH4GCQ9 /6fqP1DrbeKHbFx+AcL94pkkSLRFZsJc5Yxmcw/EZinR9gvo0IymNZSvnUx9g2o1uPQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iJ+pA1vH; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 682EE606A330; Fri, 20 Nov 2026 09:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iJ+pA1vH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E4A51F000C4; Fri, 20 Nov 2026 09:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795167652; bh=R8cEUfchtfL1CMYDQSUQAyd5j+dKyqqQvy8JCKkeHTQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iJ+pA1vHpaNYllnqQbqUJ7mgvSduDG3aAkO2Mj7oUyPqQEon+BW+dm59hcqXed7VL 2xtu6/DPBtppJc/p36pz4lTHf73j60dqs4Y2iJl2+JUNEVzrwf+FUUjlExFJBgEsM9 ommrbKid81+gyu2CItU+cACBgqGl/bCcydWGsQIDBLEK3IOBb4Vzm8VbFOayIw+eeA Mn3q7Er6t/56wzjh/vyVRsbCdtdCx8dB8knuV7KCI8zp0v+RyrBWk7Pbc1vfCKG/3v SOZeEMbStmNbMGude3EWA+Nd70n/JdRSXZJ82oSZmKz8JurO6jnMHZwf8IJ9rdVHEB rSXwSijGS2C3A== Date: Fri, 20 Nov 2026 15:10:48 +0530 From: Vinod Koul To: Nuno =?iso-8859-1?Q?S=E1?= Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, linux-sound@vger.kernel.org, linux-spi@vger.kernel.org, Frank Li , Lars-Peter Clausen , Eugeniy Paltsev , =?iso-8859-1?Q?Am=E9lie?= Delaunay , Maxime Coquelin , Alexandre Torgue , Jonathan Cameron , David Lechner , Andy Shevchenko , Jaroslav Kysela , Takashi Iwai , Mark Brown , Frank Li , Jonathan Cameron , Andy Shevchenko Subject: Re: [PATCH v6 0/9] dmaengine: Support bus widths of 32 bytes and above Message-ID: References: <20261014-dmaengine-support-wider-dma-masks-v6-0-5b3ffdef8191@analog.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 02-11-26, 12:36, Nuno Sá wrote: > On Wed, Oct 14, 2026 at 03:19:10PM +0100, Nuno Sá wrote: > > The DMA engine slave capabilities advertise the supported source and > > destination bus widths through src_addr_widths / dst_addr_widths. These > > are plain u32 bitmasks where a set bit's position equals the > > corresponding enum dma_slave_buswidth value, e.g. > > DMA_SLAVE_BUSWIDTH_4_BYTES sets bit 4. > > > > The consequence is that widths of 32 bytes and above cannot be > > represented at all: DMA_SLAVE_BUSWIDTH_32/64/128_BYTES would need bits > > 32, 64 and 128, which do not fit in a u32. Hardware with wider data > > paths is becoming common, so add a representation that can express these > > widths while still using enum dma_slave_buswidth. > > > > This series switches consumers and a small set of producers to the new > > bus width capabilities, represented by a dma_buswidth_mask_t modeled > > after dma_cap_mask_t. The legacy dma_device u32 fields are kept for now > > so the remaining DMA controller drivers can be converted incrementally: > > dma_async_device_register() folds a legacy-only producer's u32 into the > > mask, so consumers only ever have to look at the mask. > > > > Once the remaining producers are converted, the legacy dma_device > > src/dst_addr_widths fields can be removed as a final cleanup. > > > > This issue was discussed before here: > > > > https://lore.kernel.org/dmaengine/abkoXXbaxaiqbBuX@vaman/ > > > > Changes in v6: > > - Patch 1: > > - Prefix the bus width helpers with dmaengine_ (Frank). > > - Drop the wrapper macros taking the address of their mask arguments. > > The helpers are now static inline functions taking a > > dma_buswidth_mask_t pointer (Frank). > > - Drop a stray blank line in dma_get_slave_caps() (Frank). > > - Patch 2-8: > > - Use the renamed helpers, passing the masks by pointer. > > - Link to v5: https://patch.msgid.link/20261009-dmaengine-support-wider-dma-masks-v5-0-4c4e63a7a1af@analog.com > > > > --- > > Nuno Sá (9): > > dmaengine: Support bus widths of 32 bytes and above > > dmaengine: dma-axi-dmac: Use bus width capability helpers > > dmaengine: dw-axi-dmac: Use bus width capability helpers > > dmaengine: qcom: gpi: Use bus width capability helpers > > dmaengine: stm32-dma3: Use bus width capability helpers > > iio: buffer-dmaengine: Use dma_slave_caps bus width accessors > > ALSA: pcm_dmaengine: Use dma_slave_caps bus width helpers > > spi: dw: Use dma_slave_caps bus width helpers > > dmaengine: Drop legacy bus width fields from dma_slave_caps > > > > drivers/dma/dma-axi-dmac.c | 13 +- > > drivers/dma/dmaengine.c | 23 ++- > > drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 39 +++-- > > drivers/dma/qcom/gpi.c | 11 +- > > drivers/dma/stm32/stm32-dma3.c | 37 ++-- > > drivers/iio/buffer/industrialio-buffer-dmaengine.c | 15 +- > > drivers/spi/spi-dw-dma.c | 7 +- > > drivers/spi/spi-dw.h | 3 +- > > include/linux/dmaengine.h | 188 +++++++++++++++++++-- > > sound/core/pcm_dmaengine.c | 20 ++- > > 10 files changed, 289 insertions(+), 67 deletions(-) > > --- > > base-commit: 42c31fec1ca76b8b5f7759def122d418dff2cd4b > > change-id: 20260615-dmaengine-support-wider-dma-masks-5aac12497e27 > > -- > > > > Thanks! > > - Nuno Sá > > > > Hi Vinod, pinging this one before resend. Already got the rb tag from Frank on the > first patch. If anything left to do, let me know please. This fails to apply for me, can you rebase on next and send -- ~Vinod