The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC PATCH v2 00/13] block/storage: Prepare for boot-time page size selection on arm64
@ 2026-12-02  3:16 Eric Curtin
  2026-12-02  3:16 ` [RFC PATCH v2 01/13] scsi: core: Add dma_boundary_page for page-size DMA boundaries Eric Curtin
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Eric Curtin @ 2026-12-02  3:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Eric Curtin, Ryan Roberts, cgroups, dm-devel, linux-arm-kernel,
	linux-block, linux-fsdevel, linux-ide, linux-mm, linux-mtd,
	nvdimm, v9fs, virtualization

From: Eric Curtin <eric.curtin@docker.com>

This series is part of the boot-time page size selection work for arm64,
posted as RFC [1]. With CONFIG_ARM64_BOOT_TIME_PAGE_SIZE=y, PAGE_SIZE,
PAGE_SHIFT and PAGE_MASK are variables chosen at boot with arm64.pagesize=,
so code that needs a compile-time constant (array sizes, struct layouts,
static initialisers, BUILD_BUG_ON(), case labels, #if) has to use the new
PAGE_SIZE_MIN/PAGE_SIZE_MAX limits or a run-time value instead. For fixed
page sizes both limits equal PAGE_SIZE, so behaviour should not change.

The patches here convert block, MD, NVMe, SCSI, ATA, MTD and MMC code. They apply on top of the core series
[1], whose patch 1 adds PAGE_SIZE_MIN/MAX, and are otherwise independent
of each other. Patches authored by Ryan Roberts come from his v1 [2],
updated for v7.4-rc5. The full tree is at:
  https://github.com/ericcurtin/linux/tree/boot-time-page-size-v2

Testing: allmodconfig with the option enabled builds cleanly on arm64
with all of these applied, and the defconfig kernel boots to userspace
with 4K, 16K and 64K pages under QEMU/KVM (details in [1]). The code in
this series is not otherwise exercised on hardware.

Tool use: these conversions were prepared with an LLM coding assistant
(opencode with Claude Sonnet), driven by build errors and followed by an
automated review pass. I have not hand-audited every patch, so please
review with that in mind and tell me where you would prefer a different
approach for your subsystem.

[1] https://lore.kernel.org/all/20261201015240.1017259-1-ericcurtin17@gmail.com/
[2] https://lore.kernel.org/all/20241014105514.3206191-1-ryan.roberts@arm.com/

Eric Curtin (8):
  scsi: core: Add dma_boundary_page for page-size DMA boundaries
  mtd: mtdswap: Initialise mtdswap_ops with a page size variable
  mmc: mmc_test: Allocate the scratch buffer with the test buffer
  md: Remove compile-time PAGE_SIZE use in md, dm and bcache
  zram: Remove PAGE_SIZE use in preprocessor conditionals
  xen/blkback: Size indirect_pages for the largest page size
  null_blk: Size the nullb_page bitmap for PAGE_SIZE_MAX
  drbd: Use PAGE_SHIFT_MIN in preprocessor checks

Ryan Roberts (5):
  nvme: Check the DSM range buffer against PAGE_SIZE_MIN
  dm: Initialise swap_bios from the runtime PAGE_SIZE
  virtio: Handle boot-time PAGE_SIZE in balloon, blk and 9p transport
  ata: sata_sil24: Use flexible arrays for the command block SGEs
  mm: Use PAGE_SIZE_MIN/MAX where a compile-time constant is required


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-12-02 11:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  3:16 [RFC PATCH v2 00/13] block/storage: Prepare for boot-time page size selection on arm64 Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 01/13] scsi: core: Add dma_boundary_page for page-size DMA boundaries Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 02/13] mtd: mtdswap: Initialise mtdswap_ops with a page size variable Eric Curtin
2026-12-02 11:25   ` Miquel Raynal
2026-12-02  3:16 ` [RFC PATCH v2 03/13] mmc: mmc_test: Allocate the scratch buffer with the test buffer Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 04/13] md: Remove compile-time PAGE_SIZE use in md, dm and bcache Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 05/13] zram: Remove PAGE_SIZE use in preprocessor conditionals Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 06/13] xen/blkback: Size indirect_pages for the largest page size Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 07/13] null_blk: Size the nullb_page bitmap for PAGE_SIZE_MAX Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 08/13] drbd: Use PAGE_SHIFT_MIN in preprocessor checks Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 09/13] nvme: Check the DSM range buffer against PAGE_SIZE_MIN Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 10/13] dm: Initialise swap_bios from the runtime PAGE_SIZE Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 11/13] virtio: Handle boot-time PAGE_SIZE in balloon, blk and 9p transport Eric Curtin
2026-12-02  3:16 ` [RFC PATCH v2 12/13] ata: sata_sil24: Use flexible arrays for the command block SGEs Eric Curtin
2026-12-02  7:10   ` Damien Le Moal
2026-12-02  3:16 ` [RFC PATCH v2 13/13] mm: Use PAGE_SIZE_MIN/MAX where a compile-time constant is required Eric Curtin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox