Skip to content

arm64: asahi: enable all native hardware defaults and guard coverage - #1939

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
fix/asahi-hardware-defaults-20261114
Nov 14, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
fix/asahi-hardware-defaults-20261114

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

The shared Apple hardware fragment omitted 16 native options, including M5/M6 GPU support, J813 N1 Wi-Fi/Bluetooth, Apple PCIe MSI, DWI backlight, MT7932 AWDL and native display/power helpers. Request them explicitly so distro users do not need to rebuild kernels with local hardware switches. Boolean features are built-in; ordinary transport drivers are modules. Existing built-in power/cache defaults remain built-in.

Add a host-side coverage audit over native Apple driver Kconfig declarations in drivers/ and sound/, registered in the standard host-test runner. It rejects new native bool/tristate options absent or disabled in asahi.config, while excluding x86/PPC hardware, diagnostics, KUnit and research instrumentation. It checks coverage; package build validators still perform Kconfig dependency resolution.

Validation: all five policy tests pass. Against the prior shared fragment, the audit finds the 16 omissions; the updated fragment explicitly covers all 103 native options found by the audit. Whitespace checks pass. No local kernel build was started while another owner holds the shared build slot; full resolved-configuration and hardware validation are separate from this policy audit.

The owner requested every new hardware driver enabled by default in the shared fragment and prompt merging. Distribution kernel pins and packages/images must be refreshed after merge.

@DjDeveloperr
DjDeveloperr merged commit 0b03fe4 into integration/aurora Nov 14, 2026
1 check passed
m0d16l14n1 added a commit to m0d16l14n1/linux that referenced this pull request Nov 15, 2026
…t-next

G17 stability: aurora-silicon#1926 watchdog reason, aurora-silicon#1925 closed-client teardown, aurora-silicon#1946 kept-graph
pool pages, aurora-silicon#1948 reclaim idle render pools; configs: aurora-silicon#1938, aurora-silicon#1939 shared defaults.
@RyanTheTide
RyanTheTide deleted the fix/asahi-hardware-defaults-20261114 branch November 16, 2026 05:06
DjDeveloperr pushed a commit that referenced this pull request Nov 17, 2026
… __param section, not two)

Since #1939 turned the G18 backend on in the shared defaults
(CONFIG_DRM_ASAHI_G18=y), aurora.ko no longer loads, so no Apple GPU
probes, on any generation:

  sysfs: cannot create duplicate filename '/module/aurora/sections/__param'
  ... mod_sysfs_setup+0x408/0x6d4
  ... load_module+0x1bd4/0x2200

The module has two sections named __param. The 22 diagnostic parameters
of g18/compat declare their kernel_param entries by hand with a plain
used attribute, which is #[used(linker)] on ELF: their section gets
SHF_GNU_RETAIN, so the module link keeps it apart from the module's other
__param input sections, whose entries (kernel::module!'s, g18_param!'s)
are #[used(compiler)]. The import of the backend brought these entries;
with G18 off they are not built and the module has one __param section,
so the mistake stayed hidden until #1939 exposed it by turning G18 on.

Declare every hand-written __param entry of the backend through one
macro, g18_kernel_param!, which emits it the way rust/macros/module.rs
does: #[used(compiler)], and a raw address of __this_module instead of a
reference to the mutable extern static. g18_param!, the application
compute knobs, the two render policy parameters and the 22 compat
parameters now go through it; their names, permissions, operations and
arguments are unchanged. Built with G18, aurora.ko has one __param
section again, and the 23 "creating a shared reference to mutable static"
warnings of these entries are gone.

Only code built with CONFIG_DRM_ASAHI_G18 changes. Without it none of this
is built; with it every board gets a GPU driver that loads, and the
G18 boards (T8152) keep the same parameters.

Fixes: b2e300a ("drm/asahi: g18: import the G18G (T8152) backend")
Signed-off-by: Jeff Queisser <[email protected]>
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