From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [RFC PATCH v2 2/3] ASoC: tegra: Initialise PCM hardware limits at boot for page size
Date: Wed, 02 Dec 2026 03:27:55 +0000 [thread overview]
Message-ID: <sashiko-outbox-244778@kernel.org> (raw)
In-Reply-To: <20261202031733.1704898-3-ericcurtin17@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] ASoC: tegra: build failure from undefined
DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST
--
commit 441dd3749331e159481ddc8e8e434e0e57f51521
Author: Ryan Roberts <ryan.roberts@arm.com>
ASoC: tegra: Initialise PCM hardware limits at boot for page size
This commit switches tegra_pcm_hardware and tegra_dmaengine_pcm_config to
DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() so their PAGE_SIZE-derived fields can
be initialized at boot when boot-time page size selection is enabled.
> diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c
> index c490a9e668586..4fe019433f9a4 100644
> --- a/sound/soc/tegra/tegra_pcm.c
> +++ b/sound/soc/tegra/tegra_pcm.c
> @@ -24,7 +24,8 @@
> #include <sound/dmaengine_pcm.h>
> #include "tegra_pcm.h"
>
> -static const struct snd_pcm_hardware tegra_pcm_hardware = {
> +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_pcm_hardware,
> + tegra_pcm_hardware, {
> .info = SNDRV_PCM_INFO_MMAP |
> SNDRV_PCM_INFO_MMAP_VALID |
> SNDRV_PCM_INFO_INTERLEAVED,
> @@ -34,13 +35,14 @@ static const struct snd_pcm_hardware tegra_pcm_hardware = {
> .periods_max = 8,
> .buffer_bytes_max = PAGE_SIZE * 8,
> .fifo_size = 4,
> -};
> +});
>
> -static const struct snd_dmaengine_pcm_config tegra_dmaengine_pcm_config = {
> +static DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST(struct snd_dmaengine_pcm_config,
> + tegra_dmaengine_pcm_config, {
> .pcm_hardware = &tegra_pcm_hardware,
> .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config,
> .prealloc_buffer_size = PAGE_SIZE * 8,
> -};
> +});
[Severity: High]
Does this break the build when CONFIG_SND_SOC_TEGRA is enabled?
DEFINE_GLOBAL_PAGE_SIZE_VAR_CONST() is not defined anywhere in the tree,
so compiling sound/soc/tegra/tegra_pcm.c fails with a syntax error and
leaves tegra_pcm_hardware and tegra_dmaengine_pcm_config undeclared.
Also, since these PCM period and buffer limits are audio buffer sizes
rather than MMU page size limits, could they use SZ_4K and SZ_32K instead
of PAGE_SIZE?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202031733.1704898-1-ericcurtin17@gmail.com?part=2
next prev parent reply other threads:[~2026-12-02 3:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 3:17 [RFC PATCH v2 0/3] ALSA/ASoC: Prepare for boot-time page size selection on arm64 Eric Curtin
2026-12-02 3:17 ` [RFC PATCH v2 1/3] ALSA: Handle run-time PAGE_SIZE in PCM hardware tables and #if checks Eric Curtin
2026-12-02 3:31 ` sashiko-bot
2026-12-02 3:17 ` [RFC PATCH v2 2/3] ASoC: tegra: Initialise PCM hardware limits at boot for page size Eric Curtin
2026-12-02 3:27 ` sashiko-bot [this message]
2026-12-02 3:17 ` [RFC PATCH v2 3/3] ASoC: codecs: Initialise PCM hardware tables " Eric Curtin
2026-12-02 3:28 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-244778@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ericcurtin17@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.