Re: [PATCH v4] scsi: libsas: Allocation SMP request is aligned to ARCH_DMA_MINALIGN

From: Martin K. Petersen
Date: Mon Apr 01 2024 - 21:49:42 EST


On Thu, 28 Mar 2024 17:06:26 +0800, Yihang Li wrote:

> This series [1] reducing the kmalloc() minimum alignment on arm64 to 8
> (from 128). In libsas, this will cause SMP requests to be 8-byte-aligned
> through kmalloc() allocation. However, for the hisi_sas hardware, all
> commands address must be 16-byte-aligned. Otherwise, the commands fail to
> be executed.
>
> ARCH_DMA_MINALIGN represents the minimum (static) alignment for safe DMA
> operations, so use ARCH_DMA_MINALIGN as the alignment for SMP request.
>
> [...]

Applied to 6.9/scsi-fixes, thanks!

[1/1] scsi: libsas: Allocation SMP request is aligned to ARCH_DMA_MINALIGN
https://git.kernel.org/mkp/scsi/c/e675a4fd6d1f

--
Martin K. Petersen Oracle Linux Engineering