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 2389C606A333 for ; Wed, 2 Dec 2026 03:17:51 +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=2VUHKqgY; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dZAfVZwo 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=XtM38GxWrIHXY1RgMOOrF9YX8btGXTAo1jxBnsSyvY8=; b=2VUHKqgYBiv1NY5E1IZQ4z3OWp 8yLmwtlUzo8Jo8A+xE18eiQ5BMyL3vECUumtRzFJYxLzi+o+d1/SqDdIsbJf4DtSb2zUm6UASeFAM O1Xs1TAbzHzgquXn4kNXV26wDIjFJawuKdQFs/ssyTgQGWXaREET7UQwf8UZpbF4p85FgFlYMuEsR CqbBZCi3LkiLAnUSFym2GjkbT4vdVXm/4Gok9sgEXvs7Bbs+m7+ZB3xOUKEqEwbY1pOPqafQcYWE8 zhzlbjAdpQM6/43rZQihkpSaDMzWVua9aMNvxnacgGfM+Bu2WAV8ih2eTbof4YZRYtlJJoZLXx/DW XCrjeFdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYaqg-0000000A4dH-3Wu6; Wed, 02 Dec 2026 03:17:38 +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 1xYaqe-0000000A4bn-0ggp for linux-arm-kernel@lists.infradead.org; Wed, 02 Dec 2026 03:17:37 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso89417315e9.1 for ; Tue, 01 Dec 2026 19:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796181454; x=1796786254; 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=XtM38GxWrIHXY1RgMOOrF9YX8btGXTAo1jxBnsSyvY8=; b=dZAfVZwosMet2V9oWEPjTTwh+Kzh5cSnm6Lmkv/JlTG9VTmIZzx0ULjY+Wu3CRicji ANenRjfzfgEyPduqcT0UiCxCaSH8ks1475bh8nQvWneGmh+MIpjd8jy7wTcjS2gaDU2V 96zPsbQkUD2JbrXLg5GCeFo5y+F64UIBzNbJoxqdtZrx3b3H7iOzbgAHZ2uqA6OYIsA7 RLOwtXkdQGGGzRVmYQn1otnt+7/UruYuBBnP1XvQeMymM3BEVaWXSrHX407MeORFqjyN +rSBlgh/Q9m/dTqhtWqENnere7Saq/iO0CfmX4joT92vMFqLulJMw2y+Lr6bIHix4UfU J/WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796181454; x=1796786254; 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=XtM38GxWrIHXY1RgMOOrF9YX8btGXTAo1jxBnsSyvY8=; b=0By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Vv/1tW5YQjm7bIYSuQZm1j48sfHUhPam8UjQw BVld0eQBIofOxYO+3mRuxmoTi8jzUeFmY5dSVnNTbMO9GcdcmeDOj2w4/+U0GnV6pa8PupzO4Ty Mg5kaXqAcbAWnh50Sb7iMAIUlM2T6cHeGmU1tw== X-Received: by 2002:a05:600c:3b91:b0:4bb:7e4e:de53 with SMTP id 5b1f17b1804b1-4bb8881059bmr927459495e9.12.1796181454498; Tue, 01 Dec 2026 19:17:34 -0800 (PST) Received: from NULL.Home.net ([2001:8a0:7280:4000:12d:c3b9:cecc:8966]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884a3a3dsm1050648415e9.10.2026.12.01.19.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 19:17:34 -0800 (PST) From: Eric Curtin To: linux-kernel@vger.kernel.org Cc: Eric Curtin , Ryan Roberts , linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 0/3] ALSA/ASoC: Prepare for boot-time page size selection on arm64 Date: Wed, 2 Dec 2026 03:17:26 +0000 Message-ID: <20261202031733.1704898-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_191736_218634_08D8D746 X-CRM114-Status: GOOD ( 10.52 ) 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=ham 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 ALSA/ASoC sound 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 (1): ALSA: Handle run-time PAGE_SIZE in PCM hardware tables and #if checks Ryan Roberts (2): ASoC: tegra: Initialise PCM hardware limits at boot for page size ASoC: codecs: Initialise PCM hardware tables at boot for page size