From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796181411; b=hnePV4NuInhnjwAakSZKgDCGma47Fe2MC1XecWI+fsv4x3KLzGcNEF7+0UmsiY56JXm0 wyNIx0y5pa+YQxIZ7wBSwUpGGkbj+pdmLtCD3YA7+UOTXQUMFKkCMGuF+7HD2L2cAatl8 lHYyMmn50h+Dl24qdkNp1Yz/ng7ZJ8+iezQGTSkq8IVxWdi7bRvfSQ6hBDg09qCiGxe8Z joqZogT5VY0eclY9O3XEnwm2TcyBzQY6m3Ep92irTp5piD4NGRpd5R8NLWK03cdZefQSI neRmr322piautevB4y6lDKFAU6OzXD9IJkZcr9ujSU3kQeZGzjS4+kDm7cCXALkvu1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796181411; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=anbj8MIubAtaiBl0sEyXuUkhPEE+I0s4nxPUThhwesI=; b=S885Eiu+0oEGKwUrkkq9wyfwn4cdqGSVeb5Wd5RosIdivMj0V5iB6JKv85akgOFfMRZ1 2R8dv+aWcUqWgBZ7TEz0htMzvXAXb7gMFWsp1aNpkoTxiIAvclisbhLt9MBxzEf7AhBkK qdkOAcJFTxPdbRZCZn19i4mpz3OVfLt/RQ4Y+Vd//lVfxeP/BxwxIfAZqIt5zJVKYxkt6 rqv9hrpOSH7rlUqH2/oKWTjVPUr7q/7/B1I+cwMJRfvdf8Ad0RlnnXamWNBvB9NmEOEyj 8tl0g012E4orL0V7yc8Q23zHL6D7wicTrtCYvhi5CSJ7KPgf0sXm/zQdWbUwnFpXrhA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=wbqZRlOm; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B96E606A339 for ; Wed, 2 Dec 2026 03:16:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B96E606A339 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=wbqZRlOm Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4bb9d8e8e90so94050755e9.3 for ; Tue, 01 Dec 2026 19:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796181410; x=1796786210; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=anbj8MIubAtaiBl0sEyXuUkhPEE+I0s4nxPUThhwesI=; b=wbqZRlOmGI3Et/7Kde11goBqZoshwgqX+8fTQbLkysREZXL4xsNuVjQxcroAIsWioG UaL1OfZrGCXkNL+w8/jrGBZVmv0HPLED12RitroPe2A31tT1qptBXIu6bwWAG0wtkrQn eSvi74Gc2KVf/0ELZOoQAS0pB0iOd9hw5MtTC43VuGtZ1UrLaL8YPFcM12gI1fp5j92Z sHi1Tx+c5wCPWvYHx8JtlUx/GEMQjubQIbX4t3OHGLrVFEDzgRFFtTSTtkk/vP3V6N52 cmzE4ZY3wqviFHheaU0W/GOuo3pN2I3i5eA489rAnSfYvjS8co7XqndaaNM7TV3e4XmP hDeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796181410; x=1796786210; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=anbj8MIubAtaiBl0sEyXuUkhPEE+I0s4nxPUThhwesI=; b=kTcVSFo0WJs6zBzFiGME2C9HivshjiccAd0IXmuryH3K3l7JeLM5/ufXFh/tQMYH6A w4B3F304hpeG4Evm7ZLFjKghEScAB/zuCPct00pCvkfFcJMGbZX+uevgO9+qjY20VvIy HV0EbqYvX/kqA/ZWeXDmb8zXOMtXmnCueJe+/lj6M9zzRdVkUiUwUYHZnzItkBrVpglC oigQ5s7TX2mcNOA+xjJ9qrUbwH/wTs5xdqiHU6cd2Dz0CNbcdoxht0GetqcJjoy0vRSH VOhyiNh7cN8Tgu44STWAER55pO2y1wToqrmEi255Ri6/vCyUP8qq3nTrj12so7V442MT b5Ig== X-Forwarded-Encrypted: i=1; AL+hErHwZaL/g8CrWbbNAPj88A9Cg3FP0xEcmJXW7IBtu2W1TyopZsAfbKte9Nq3YBTJlhsW7nGE+6RnJOs=@vger.kernel.org X-Gm-Message-State: APuU4Z9ayrz0Q/A7lHkcd1JLMsh12ugzEOrEvfDlSCZbZzjdjTJp04Jx WF7ZleoKDacwU8GRcnA+G5YX9LUXlr7xu71Sarj3SR6jXniL2cxeMiyr X-Gm-Gg: AZFdTZfHuBq5NHL6ocbZzIAdDzE4rPIIZcUF1RlD/CXAgIpEz9b/bqFvRPcAlnujhZX EqNIxUPp59JS10J/ydeY8f8cYrbRR0lYj3w9tQ4lusGHSLbt25XD27+WD5wHk8u+JYlQdFZQgh1 MNntaEU5obP67960C+XcCeT8Vd2S8S9MgBNWip5rrpiqtCNd0djqHs54S/PfLQ9scZLb6da7kis MRqReConfyVfR+k1szjJoMtjjDbfRUG9CNeqlAEK8Fulc8tH92H1uM2bntUGMoje1Jf2Wz1ZduU Fi0m4mYLGjt5jgne7PyCz+rhLqjmKwqhFsV1WbMDD36CpgN5wOHURHY6VyjbCYElJxoMcAasn+a T9udiPFZPgK/NYF3wa3Vfhv6/MvwOD1BOWL3f55N6022h8JuBEla6P+02ddU27uSxYtW2YvkrS/ Z+1P/bnK0iuQcR0tizZJ628dAVo7Ctlr1l7CN/sh+j33uVA8AgceoS9NV8LhXcHmTyu6z4Rpot5 Ntn5yXRg53JEJroUnrOLaX8s1DslyKgt64wpQIa8RrSDwn+6/ZCSyypXuwd+rtyX3XSjP0jeKe7 Sf5mOQiFGywwGhnSE+TXTgMx45ZIPHwjTEPwxg== X-Received: by 2002:a05:600d:8402:b0:4a3:5a91:5f61 with SMTP id 5b1f17b1804b1-4bb88806287mr629318895e9.14.1796181409549; Tue, 01 Dec 2026 19:16:49 -0800 (PST) Received: from NULL.Home.net ([2001:8a0:7280:4000:12d:c3b9:cecc:8966]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b34e9c3ffesm61468691f8f.19.2026.12.01.19.16.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 19:16:49 -0800 (PST) From: Eric Curtin To: linux-kernel@vger.kernel.org Cc: Eric Curtin , Ryan Roberts , cgroups@vger.kernel.org, dm-devel@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ide@vger.kernel.org, linux-mm@kvack.org, linux-mtd@lists.infradead.org, nvdimm@lists.linux.dev, v9fs@lists.linux.dev, virtualization@lists.linux.dev Subject: [RFC PATCH v2 00/13] block/storage: Prepare for boot-time page size selection on arm64 Date: Wed, 2 Dec 2026 03:16:21 +0000 Message-ID: <20261202031647.1690622-1-ericcurtin17@gmail.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-ide@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Eric Curtin 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