Skip to content

arm64: cpufeature: hide WFxT on Apple M4+ without a forced override - #1455

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
bootlog-j6/m4-wfxt-quiet
Nov 10, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
bootlog-j6/m4-wfxt-quiet

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Apple M4 and later cores have WFxT hidden by injecting id_aa64isar2.wfxt=0 into the early ID register override. init_cpu_ftr_reg() reports every override at warning level, so each M4-class boot logs:

CPU features: SYS_ID_AA64ISAR2_EL1[3:0]: forced to 0

This clears the WFxT field when each CPU's ID registers are recorded (__cpuinfo_store_cpu()), and drops the injected override.

Behaviour is unchanged:

  • The sanitised ID_AA64ISAR2_EL1 reads WFxT = 0, so ARM64_HAS_WFXT stays off, KVM guests don't see WFxT, and HWCAP2_WFXT is not set.
  • id_aa64isar2.wfxt=1 on the command line still cannot re-enable it. It is above the lower safe value, so it is ignored.
  • Before this point, nothing reads the override for WFxT. __delay() only takes the WFxT path once the capability is finalised.

Testing: J616s (T6040), a one-shot boot of the fleet52 tree with this commit, compared with fleet52 boots without it:

  • CPU features: SYS_ID_AA64ISAR2_EL1[3:0]: forced to 0 is gone. Kernel warnings went from 4 to 3, and no new kernel or userspace lines appeared.
  • The /proc/cpuinfo Features line is identical to fleet52, and wfxt is absent.
  • 0 errors, 0 AVC denials, 0 failed units, SELinux enforcing.
  • s2idle 3/3 with the apple-pmu-rtc wakealarm, and no tas2764 faults.
  • host-tests pass.

🤖 Generated with Claude Code

Apple M4 and later cores have WFxT hidden by injecting
"id_aa64isar2.wfxt=0" into the early ID register override after the
boot arguments are parsed. The override mechanism exists for boot
arguments, so init_cpu_ftr_reg() reports it at warning level on every
boot:

  CPU features: SYS_ID_AA64ISAR2_EL1[3:0]: forced to 0

Clear the WFxT field when each CPU's ID registers are recorded instead.
The sanitised ID_AA64ISAR2_EL1 still reads WFxT as absent, so
ARM64_HAS_WFXT stays off, KVM guests do not see it and HWCAP2_WFXT is
not set. A boot argument still cannot re-enable it:
"id_aa64isar2.wfxt=1" is above the lower safe value and is ignored.

Nothing used the override before the boot CPU records its ID registers:
__delay() only takes the WFxT path once ARM64_HAS_WFXT is finalised.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 5186d2e into integration/aurora Nov 10, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the bootlog-j6/m4-wfxt-quiet branch November 10, 2026 12:19
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