Re: WinLink E850-96: WARNING: at block/blk-settings.c:204 blk_validate_limits

From: Bart Van Assche
Date: Thu Mar 07 2024 - 12:33:07 EST



On 2/29/24 06:21, Christoph Hellwig wrote:
On Thu, Feb 29, 2024 at 07:44:01PM +0530, Naresh Kamboju wrote:
The arm64 WinLink E850-96 Board boot failed with 16K and 64K page size builds
Please find the below warning log on Linux next-20240229.
First noticed on the next-20240220 tag.

This issue arises only when one of these Kconfig options is enabled.
CONFIG_ARM64_16K_PAGES=y
CONFIG_ARM64_64K_PAGES=y

That means this device doesn't set a max_segment_size, or one smaller
than the page size. This configurtio has never been supported by
Linux (Bart has some patches to try to make it work), but with the
new block limits API we now actively catch this and warn.

Hi Christoph,

Please let me know if you would like me to repost the patch series that
adds support to the block layer for DMA segments that are smaller than
the page size. Despite my requests to not support such hardware in the
Android kernel, that patch series ended up as an out-of-tree series
in the Android kernel and will continue to be maintained by the Android
core team for considerable time.

Thanks,

Bart.