Skip to content

arm64: configs: asahi: make the settings survive a distro base config - #394

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
config/asahi-user4k-va48
Oct 29, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
config/asahi-user4k-va48

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Two small asahi.config fixes so the file's settings survive over a distro base config, not only over defconfig. Found while building one kernel for the Neo, M1 Pro and M2 from the Fedora Asahi base + asahi.config.

48-bit VA and 4K userspace. Over plain ARM64 defconfig the 16K kernel picks 52-bit VA with LPA2. ARM64_USER4K_EXPERIMENTAL needs 48-bit VA and PA without LPA2, so it silently drops out and user4k=on does nothing. Steam and FEX on the Neo need it for x86 games that assume 4K pages. Apple Silicon has no LPA2 and doesn't need more than 48-bit VA, so this asks for 48-bit VA and keeps the 4K userspace support on. Fedora and the other distro bases already use 48-bit VA, so only the defconfig result changes.

Power allocator governor. asahi.config makes the power allocator the default thermal governor but never enables the governor itself. defconfig happens to build it, Fedora's Asahi base doesn't, so over Fedora the base's step_wise default wins and the setting doesn't survive. This enables the governor and turns the base's step_wise default off.

Checked both ways the header describes, defconfig + asahi.config and the Fedora Asahi base + asahi.config. Every asahi.config setting (124) survives olddefconfig on both.

Left out on purpose: the IOMMU lazy default. Fedora's base already picks lazy, but the Neo has only run strict so far, so that one wants a measured decision rather than a config default.

🤖 Generated with Claude Code

Over plain ARM64 defconfig the 16K kernel resolves to 52-bit VA with
LPA2. ARM64_USER4K_EXPERIMENTAL depends on 48-bit VA and PA without
LPA2, so it drops out and the user4k=on boot option has nothing to turn
on. Steam and FEX on the Neo rely on it for x86 games that assume 4K
pages.

Apple Silicon has no LPA2 and needs nothing past 48-bit VA, so request
48-bit VA here and keep the 4K userspace support enabled. Fedora and the
other distribution bases already use 48-bit VA, so this only changes
the defconfig result, which now matches them.

Checked with defconfig + asahi.config and with the Fedora Asahi base +
asahi.config: both resolve to VA_BITS=48, PA_BITS=48 and
ARM64_USER4K_EXPERIMENTAL=y.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
…s to

asahi.config makes the power allocator the default thermal governor but
never enables the governor itself. Over defconfig that happens to work,
since defconfig already builds it. Over a distribution base that leaves
THERMAL_GOV_POWER_ALLOCATOR off, Fedora's Asahi config for one, the
default cannot be selected and the base's step_wise default wins, so
the setting does not survive resolution.

Enable the governor and switch the base's step_wise default off, so the
requested default holds over either base.

Checked with defconfig + asahi.config and with the Fedora Asahi base +
asahi.config: every asahi.config setting survives olddefconfig.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide RyanTheTide changed the title arm64: configs: asahi: use 48-bit VA and enable 4K userspace arm64: configs: asahi: make the settings survive a distro base config Oct 23, 2026
This was referenced Oct 24, 2026
@RyanTheTide
RyanTheTide merged commit 3b38500 into integration/aurora Oct 29, 2026
@RyanTheTide
RyanTheTide deleted the config/asahi-user4k-va48 branch October 29, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant