From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796181456; b=tud4oUUlKm70aSynnYYnaVTwmRRGWcOmbLTlWu8NFqR6j1ubLgw2sk/8zX0/OeYG3T1n N0M07BNUMvW0b5FmqXCGUNEnaE+noLdLbuNppopd26pJM1PbWnQ0sAfWqm2V6Khqjig2t I8pO7050aTFmf6XAD0mz800E3gARqNIV2jNvxOXWEY9gYE7BzYHTP+8VM5CNrusnJjuek aD3QNcopa5ZBP1Ymqa+lHLLKogsmgDVhOV6kEAdszQu8Kt7YwvnlNoz/u5Y31fM/4gh2Q atSRG4Xm3p/wNxwBr7dODlJ+1z81nwExEbLgc5DbXqqok8zCoiw75PerHPJjCiel0lw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796181456; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=XtM38GxWrIHXY1RgMOOrF9YX8btGXTAo1jxBnsSyvY8=; b=1cCCWojeHH8CyFNOUFkLuD8ayVvpRhDxv4caUZKBs9hre7maoDZK2TF4u0Hw6bExZHjU xBDxMNx9L2cVJBqThJGkbB0KazoD98W/rDegihIXbyvLolnA/F3bw9pD9e2QHRkUOIcHy PipuUW5sND6CPQDB1tYceayiD++TvdiZlczhi3cioGkRfHDQ8+HzMULn7AhaTyr67zk9P 6z+BhEHsrwRD7JU2BifImrgVsQnqy5hAv/3p5o+AxwB2fYlhwtFP3Pmqx5LTPtmYstF4R DbysRmusonruhLt+yxv+j+sMquInFmizz1QWHFxZaNGITe52K4FpRP4HiQDbFTecOiQ== 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=yRFovkym; arc=none smtp.remote-ip=209.85.128.46 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 0BE00606A33F for ; Wed, 2 Dec 2026 03:17:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0BE00606A33F 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=yRFovkym Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4a35a60499eso96951575e9.0 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=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=XtM38GxWrIHXY1RgMOOrF9YX8btGXTAo1jxBnsSyvY8=; b=yRFovkymf8WgLz045HoPnr2kBksfYcnWrTBMjYpXV+kqRIgkETxcsYjMcxHa8mzw1z 1wSwT6sLFj9x/Qpw0WbnSvcz1VQUjdbL9gk8vq5GNSAgEzh52dum6SfybSgNHfu33mEC 104jLxd2n6fySDkmhofF8W2e42hWyI4ClUxNeZypohXeUD+/7M4F4ZbyXkTnxLTQrnRv b5vBRTC7zelxVXB7NbZXHBVE+uvu0VD8mQ+5phUcdpvB98sA0ytZCKIxxCFdT4XNkWpS 49MwRBOu4yf9fmyd+YWxVTP+DBuIVQPUDTqLsuE+mmzpzbcYeytcNTwSrQfOOsPLt8v3 VNfQ== 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=mDykc6Qa3E6cDoV/HE3HudFeqlHbww37Y06TUf6pDrZCjehLmlGsLwNxvroXu7h3yO Dz00TEASVQBSrJ0cSVnMT2QlmEqBeCZPBzB+nvEyzUyYpaA5ILzike6Xr5mWp5oSa0tq Kqt/toU7ONSaLg9G8TtgcUJHwDgGrnZfuWo0eiJYEO1wQh40lizfaZtarjJIGwz6UaAk DRUbJhbNbhWTkg9/SmFTXJ3WNTqDwkOcbQMUd4+PGPtmXmIo7XpmnbbPjdK880aEWzug siZXARCJxLd0Di+NLMHdiI2HeG5mknUkhzXBi3otOn4PQJTqy3CCcZAVzQduS/UAY5lS PxGA== X-Gm-Message-State: APuU4Z/2J8ZcIzOD/GT2cjY0dr8pLf0sjvw8sJgpgJ4vF/ANt8tUdk5T 6bQhk2dMyie7fh1wQKL+NFL+bJAYVdZokso2eJ2GEjPA4fMgUIXG6zG3f/q1yYy/xnrusnXK X-Gm-Gg: AZFdTZc0FkTNG962TiVL/fxJbRYcsU6gPXYNURMLXrR7/TtsGaQs2c09HYCzE7rtNsO OAeK6mrsSVMMXQVgejKkFK8cOeIYxrUWwekYEW5omuljGIaCqGGEPFnlyDXs2F9S1YLnPhJgcIX EL4nT/YZpG1fDS8ZILvrXDG4Bvy2s9aLAZxyEFM2iw0/i7tl8WCl9okuzn2FWXoCTxZZSnMEDNY z7W1RE1/TAgJ+QsS+Dc83KMlS8GzSaV6EAiws8aBEoOK18VXH6xjPlQP105tT6Zq/qb8IzC9ANv RSv9Ohu+FeN8hgUKiXe+oXkviIyn0gwZCEc12uQVxFuRu3JCmuc2vUCAIwEv6FFBIMbW1vbhlet mfJo0kfXxv1Bgvlr+QuCef9W3/I1mKGe+WVgWBfswgd7PrNdCvc95qRjXV0LGSqHRjn2KlqhMio 4XiMzubRk/ZCEjhP8dLOSWpGmahtyme/f5H4YpICAEWA77hMOxWe1HkHMUaeSiuYSxnhGukPxz4 uJgIKiggrPSsNOfb2cSJM1rhTxAC65BVVqt7GRLiMez7FSmdV6R2X9vEBc6lggwMbQ+6JVFLnR4 ugFWlTKRC7Rzih5m6HkXQdRb6uELpH++z1XAsQ== 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-Mailing-List: linux-kernel@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 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