From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75ECE60A2606 for ; Wed, 2 Dec 2026 03:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=I94YnILv; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ot9v8/bK DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=anbj8MIubAtaiBl0sEyXuUkhPEE+I0s4nxPUThhwesI=; b=I94YnILvqXhkkX1liaiZOMf9ZP 2lfuUiTN2mbQ/EHqEGEnc49jUVu7TAVQQb+3QDAycQo5XLKiolBPpppHt9R53w/uD0P5kp9SPJht9 0cAy66H7tyOonvpcMuA07cep72uG3hamOmoGvM+8C2Trewcu52sIiWayNMZpZaWoBfR2B6CsHhu7s IogYymoExy2k7hEyyycONDeDfcWJYCYd1KiKHFfJfZmSqIusMEfe1GTo1pc+BgwW5y9o/8yxgNipC XyuthCyl9Ym9zyzPvYT2bpZ3TfFxFzsz9YKD7SgAu9WhnIWi14uaZz/lS023onmfn1gxvU68cpBSl xaAkC3Cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYapy-0000000A4LY-0mwD; Wed, 02 Dec 2026 03:16:54 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYapv-0000000A4KE-2A7k for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 03:16:53 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4bb9d8e8e90so94050735e9.3 for ; Tue, 01 Dec 2026 19:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796181410; x=1796786210; darn=lists.infradead.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=ot9v8/bKs1AoTAPc35dC0uOrqLc/Jv1itHXyP2rcjmer1tYcL1cB7c34TX9gmcow8p KUV8FVyK5cWpXswQ7PSt27wPTnIT9LC9nOU/wSnhvyF5QSpOUfaZCn2D0dHvTBpb3wAj QrD7m09iqTcuhShrfmQjg2rks7u94OI9uhOPtHBH/JUoXmEWfJjoP60Ssw7eH+jCd7Qg zM1UJiTIMd9At5S0ix+pXOl9D1J0VxIj+MXwfcc9xI55E4FbQ8PnS1/AY71lwwhjRS3/ YiiPYJIr4GdaDQp8yinyGWM56cDKEaE2xA3HlynuTGwdnbxORqZ6xl+cqzysXOTyjACE 4Rng== 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=MQtvtMrrIIKxP/aOqzFQ3d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4PYBoBBQJvYN43aHjwTDT/M1cWKkLOzZ4mVZEj4/vfnVxB1x0Bl/L 89braR2y0XD5tcWXqxmCS2NB5Q5tCUTfznBcARP+aToyJXBKj28wDyyAVy8wpNSeN5dQQlCAT4c Tj/OiHjWAN8TQDEI/m+Oinkpvd5eVDyzZh4t1Q== 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-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_191651_590703_B0B20F1D X-CRM114-Status: GOOD ( 11.70 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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