On 1/1/25 6:49 PM, Ming Lei wrote:
On Wed, Jan 01, 2025 at 06:30:30PM -0800, Bart Van Assche wrote:
Additionally, this patch looks wrong to me. There are good reasons why the
block layer requires that the DMA segment size is at least as large
as the page size.
Do you think 512byte sector can't be DMAed?
A clarification: I was referring to the maximum DMA segment size. The
512 byte number in your email refers to the actual DMA transfer size. My
statement does not apply to the actual DMA transfer size.
You may want to take a look at this rejected patch series:
Bart Van Assche, "PATCH v6 0/8] Support limits below the page size",
June 2023 (https://lore.kernel.org/linux-block/20230612203314.17820-1-bvanassche@xxxxxxx/).
'502 Bad Gateway' is returned for the above link.
That link works fine here on multiple devices (laptop, workstation,
smartphone) so please check your setup.
Thanks,
Bart.