Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions JOURNEY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2484,3 +2484,62 @@ Built on the Mac's macOS 27.2 side, outputs in `build/oms30/` (`*2` folders and
- **Check helper and host test:** added read-only `tools/gpu-stats-ring-check.sh` and
`tools/tests/gpu-stats-ring-check-test.sh` (all suites in `tools/tests/*.sh` pass).

### 9.103 Apple CLPC platform profiles disabled without ACPI (OMS-58, 2026-12-02)
- **Live baseline on `2.3` (`7.3.0-1-2.3-ARCH`, J616c):** `apple-clpc` binds to
`5048aa000.power-management:performance-controller@1` (`compatible` `apple,t6041-max-clpc`,
`apple,t6041-clpc`), and its live device-tree node exposes `apple,high-power-mode` (from
`arch/arm64/boot/dts/apple/t6041-j616c.dts`), `apple,low-power-frequency-max-mhz = 2808`
(`0x00000af8`, matching `apple_clpc_hw_t6041.low_power_khz = 2808000` in
`drivers/soc/apple/clpc.c`), and the `apple,smc` phandle. Yet `/sys/class/platform-profile`
does not exist, `/proc/config.gz` has `# CONFIG_ACPI is not set` and `CONFIG_APPLE_CLPC=y`
with `CONFIG_ACPI_PLATFORM_PROFILE` absent, and `powerprofilesctl` (`power-profiles-daemon 0.30`)
falls back to `PlatformDriver: placeholder` on `balanced` and `power-saver` (with only
`CpuDriver: cpufreq` on `performance`). Apple SMC High Power mode (`zETM` record) and Low Power
mode's 2808 MHz CPU ceiling are therefore unreachable from userspace.
- **Root cause (verified in kernel source):** `apple_clpc_probe()` in `drivers/soc/apple/clpc.c`
gates profile registration (`has_profile` and `devm_platform_profile_register()`) on
`IS_REACHABLE(CONFIG_ACPI_PLATFORM_PROFILE)`. In `aurora-silicon/linux` `main` (`db6da7821954`)
and `omacom/linux-aurora` edge (`ea21b9af9a4c`), `drivers/soc/apple/Kconfig` has
`select ACPI_PLATFORM_PROFILE if ACPI`, `drivers/acpi/Kconfig` defines `config ACPI_PLATFORM_PROFILE`
inside `if ACPI`, and `drivers/Makefile` only enters `acpi/` under `CONFIG_ACPI`. Because
distribution `linux-aurora` kernels build with `# CONFIG_ACPI is not set`, Kconfig drops
`ACPI_PLATFORM_PROFILE`, `drivers/acpi/platform_profile.o` is never built, and `apple-clpc`
silently skips registering its `low-power balanced performance` class device.
- **Upstream PR status (`aurora-silicon/linux#2549`, checked 2026-12-02):**
[aurora-silicon/linux#2549](https://github.com/aurora-silicon/linux/pull/2549) (`"soc: apple:
clpc: offer platform profiles in kernels without ACPI"`, Diljit Singh / `DjDeveloperr`, head
`4dfa5b6658331ccd3a8ea03fd04fff06b07ea2e9`, opened 2026-11-20) is still **open** (ready for
review, 9/9 CI checks passing, no conflicts on `main`, hardware rows passing on J714s and
K114s with `# CONFIG_ACPI is not set`). It is waiting on one approving review from Core or
Omarchy Mac and cleanup of a commit trailer flagged in review. The 5-file change moves
`config ACPI_PLATFORM_PROFILE` outside `if ACPI` in `drivers/acpi/Kconfig`, builds
`acpi/platform_profile.o` under `ifndef CONFIG_ACPI` in `drivers/Makefile`, wraps legacy
`acpi_kobj` calls in `drivers/acpi/platform_profile.c` behind `#ifdef CONFIG_ACPI` via
`platform_profile_legacy_kobj()`, changes `APPLE_CLPC` to `select ACPI_PLATFORM_PROFILE`
unconditionally in `drivers/soc/apple/Kconfig`, and adds `CONFIG_ACPI_PLATFORM_PROFILE=y` to
`arch/arm64/configs/asahi.config`.
- **Rebased patch and `linux-aurora 7.3.0.aurora1-3.1` build check:** stored as
`patches/linux-pr2549-clpc-platform-profile-no-acpi.patch` (rebased with zero fuzz onto
`aurora-silicon/linux` `db6da7821954` with only the author's human `Signed-off-by`; verified
clean with both `git apply --check` and `git am` against pristine `db6da7821954`). Already
compiled into the staged `linux-aurora 7.3.0.aurora1-3.1` package
(`~/build/oms57/k-audit/linux-aurora-7.3.0.aurora1-3.1-aarch64.pkg.tar.xz`, sha256
`1fe7c524…c1afc`; headers `be771605…ea3f`):
- Resolved `.config`: `# CONFIG_ACPI is not set`, `CONFIG_ACPI_PLATFORM_PROFILE=y`,
`CONFIG_APPLE_CLPC=y`.
- Build log confirms `CC drivers/acpi/platform_profile.o`.
- `vmlinux` and `System.map` carry `platform_profile_class`, `platform_profile_init`,
`platform_profile_register`, `devm_platform_profile_register`, `apple_clpc_profile_probe`,
`apple_clpc_profile_get`, and `apple_clpc_profile_set`.
- Live boot testing of `3.1` on the J616c (verifying `/sys/class/platform-profile/platform-profile-0`
registers `apple-clpc` with `low-power balanced performance` and `powerprofilesctl` switches
from `placeholder` to `platform_profile`) belongs to OMS-57; promoting the derivation's kernel
pin stays in OMS-51.
- **Check helper and host tests:** added read-only `tools/clpc-platform-profile-check.sh` and
`tools/tests/clpc-platform-profile-check-test.sh` (40 host tests covering patched `3.1` mocks,
large/gzipped configs without SIGPIPE, unpatched `2.3` diagnostics, `powerprofilesctl` driver
checks, J616c DT decoding, exit codes, and patch verification). On the live `2.3` J616c,
`bash tools/clpc-platform-profile-check.sh --require-dt` exits `1` and reports
`CONFIG_ACPI=n CONFIG_ACPI_PLATFORM_PROFILE=absent CONFIG_APPLE_CLPC=y`, missing
`/sys/class/platform-profile`, `PlatformDriver: placeholder`, and the intact J616c DT
(`high_power_mode=present low_power_max_mhz=2808 smc=present`).
1 change: 1 addition & 0 deletions patches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Changes to other projects' repositories, kept here as plain `git diff` output so
| `linux-t6041-pmp-sram-data.patch` | aurora-silicon/linux | `07ab25e06e00f16f56282d65181e21241d7da103` | The T6041 PMP keeps its firmware's data segment from the SRAM header's offset (`sram_backup_data`), which moved from `0x61000` (26.6.2) to `0x62000` (27.2), as the T8132 does; without it the PMP doesn't restart after a deep sleep (`-62`) (OMS-53, JOURNEY 9.98). Sent as [aurora-silicon/linux#3688](https://github.com/aurora-silicon/linux/pull/3688) (JOURNEY 9.99) |
| `linux-t6041-26b123-32core-ane.patch` | aurora-silicon/linux | `42169a04154695428ae092e981bf88c936c7fe2c` (main, 2026-11-30, "Merge pull request #3498") | Admits the 32-core J616C's macOS 27.2 (26B123) Neural Engine preload as its own H16 profile, so the ANE starts on this Mac's 27.2 stub, plus the KUnit check that ties the 26B123 DART rule to both 26B123 rules (OMS-47, JOURNEY 9.100). A `git format-patch` commit with Allan's `Signed-off-by`; apply it with `git am`. Sent as a draft, [aurora-silicon/linux#3690](https://github.com/aurora-silicon/linux/pull/3690) (allanclempe/linux `1e0e243a`) |
| `linux-t6041-26b123-gpu-stats-tag32.patch` | aurora-silicon/linux | `d5e9949314fd89fd59a233b5707139aea0a3bf43` (also applies cleanly to `37a19f92` and `omacom/linux-aurora` `ea21b9af9a4c` / `4a42f3105002`) | Returns `fw::m5::STATISTICS_TYPES` (`0x1_5fff_0000`, which includes tag 32 / `0x20`) in `InitData::statistics_types()` when `self.v26b123` is set, matching `InitData::scheduler_release()`, plus the `v26b123_admits_statistics_tag_32_without_quarantine` host test in `tools/asahi/g17-telemetry-integration-tests.py`. Prevents `G17 Primary Statistics ring stopped: EIO` and permanent statistics-ring quarantine on T6041 macOS 27.2 (`26B123`). Already merged upstream on `aurora-silicon/linux` `main` as [aurora-silicon/linux#3767](https://github.com/aurora-silicon/linux/pull/3767) (`a06c56629436`, commit `8d6847dc55c5`); kept here for backporting onto pre-`a06c5662` trees such as `37a19f92` (`2.3`) or `omacom/linux-aurora` `carry/aurora-7.3.0-4` (`ea21b9af9a4c`). Follow-up [aurora-silicon/linux#3775](https://github.com/aurora-silicon/linux/pull/3775) (`b98bf00b32a7`) builds on it to enable `Protocol::PSTATE_8MS` telemetry on `V26B123` (OMS-50, JOURNEY 9.102) |
| `linux-pr2549-clpc-platform-profile-no-acpi.patch` | aurora-silicon/linux | `db6da7821954eb92abce57b2ade4e2e31f4d3af5` (main, 2026-12-02, "Merge pull request #3814") | Enables `/sys/class/platform-profile` on kernels built without `CONFIG_ACPI` so `apple-clpc` registers its `low-power balanced performance` platform profile on distro kernels instead of letting `powerprofilesctl` fall back to `PlatformDriver: placeholder`: moves `config ACPI_PLATFORM_PROFILE` outside `if ACPI` in `drivers/acpi/Kconfig`, compiles `acpi/platform_profile.o` in `drivers/Makefile` under `ifndef CONFIG_ACPI`, guards legacy `acpi_kobj` calls behind `#ifdef CONFIG_ACPI` via `platform_profile_legacy_kobj()` in `drivers/acpi/platform_profile.c`, makes `APPLE_CLPC` select `ACPI_PLATFORM_PROFILE` unconditionally in `drivers/soc/apple/Kconfig`, and requests `CONFIG_ACPI_PLATFORM_PROFILE=y` in `arch/arm64/configs/asahi.config`. Rebased with zero fuzz onto `db6da7821954` from open upstream PR [aurora-silicon/linux#2549](https://github.com/aurora-silicon/linux/pull/2549) (`4dfa5b665833`, Diljit Singh); apply with `git apply` or `git am`. Compiled into `linux-aurora 7.3.0.aurora1-3.1` (`CONFIG_ACPI_PLATFORM_PROFILE=y` with `# CONFIG_ACPI is not set`, `platform_profile_class`/`devm_platform_profile_register`/`apple_clpc_profile_set` in `vmlinux`). Verify on a running Mac with `bash tools/clpc-platform-profile-check.sh --require-dt` and host tests `bash tools/tests/clpc-platform-profile-check-test.sh` (OMS-58, JOURNEY 9.103) |
| `omarchy-lock-fingerprint-scanning.patch` | omacom/omarchy | `b20d7876f5ec6a45d18b9e4383dc4b6d9e8492ab` (quattro, 2026-11-19, "Keep colors in terminal windows an agent opens (#19507)") | The lock screen shows the fingerprint reader matching a finger: the icon pulses and the field says "Checking…" while fprintd reports a finger on the reader, the icon turns red for a finger it rejects, and a finger on the reader holds the idle blank (OMS-36, JOURNEY 9.48 to 9.50); sent upstream as [omacom/omarchy#19537](https://github.com/omacom/omarchy/pull/19537) |

## omarchy-mac-boot-aurora.patch
Expand Down
168 changes: 168 additions & 0 deletions patches/linux-pr2549-clpc-platform-profile-no-acpi.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Diljit Singh <hey@djdev.me>
Date: Fri, 20 Nov 2026 06:31:31 -0500
Subject: [PATCH] soc: apple: clpc: offer platform profiles in kernels without
ACPI

Distribution kernels build without ACPI. ACPI_PLATFORM_PROFILE sat under
`if ACPI` and was built only inside drivers/acpi/, so APPLE_CLPC's
`select ACPI_PLATFORM_PROFILE if ACPI` did nothing there and the driver
skipped devm_platform_profile_register(): no /sys/class/platform-profile
on the M5 Pro.

The class needs nothing from ACPI. Define the symbol outside `if ACPI`,
build platform_profile.o without ACPI too, select it unconditionally,
and request it in asahi.config so a distribution build fails loudly if
it is ever dropped again.

Signed-off-by: Diljit Singh <hey@djdev.me>
---
arch/arm64/configs/asahi.config | 2 ++
drivers/Makefile | 4 ++++
drivers/acpi/Kconfig | 8 +++++---
drivers/acpi/platform_profile.c | 35 +++++++++++++++++++++++++--------
drivers/soc/apple/Kconfig | 2 +-
5 files changed, 39 insertions(+), 12 deletions(-)

diff --git a/arch/arm64/configs/asahi.config b/arch/arm64/configs/asahi.config
index 2c19008..dc1d7c1 100644
--- a/arch/arm64/configs/asahi.config
+++ b/arch/arm64/configs/asahi.config
@@ -173,6 +173,8 @@ CONFIG_APPLE_T6041_CIO_RECONFIG=y
CONFIG_APPLE_PMC=y
CONFIG_APPLE_CLUSTER_PWRGATE=y
CONFIG_APPLE_CLPC=y
+# Its power modes as platform profiles (/sys/class/platform-profile).
+CONFIG_ACPI_PLATFORM_PROFILE=y
CONFIG_APPLE_MCC=y
CONFIG_APPLE_DISPLAY_GATE=y
CONFIG_APPLE_PMP=m
diff --git a/drivers/Makefile b/drivers/Makefile
index 0841ea8..9cde182 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -31,6 +31,10 @@ obj-y += idle/
obj-y += char/ipmi/

obj-$(CONFIG_ACPI) += acpi/
+# Without ACPI, of drivers/acpi/ only the platform profile class is built.
+ifndef CONFIG_ACPI
+obj-$(CONFIG_ACPI_PLATFORM_PROFILE) += acpi/platform_profile.o
+endif

# PnP must come after ACPI since it will eventually need to check if acpi
# was used and do nothing if so
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index f165d14..0d842f5 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -351,9 +351,6 @@ config ACPI_THERMAL
To compile this driver as a module, choose M here:
the module will be called thermal.

-config ACPI_PLATFORM_PROFILE
- tristate
-
config ACPI_CUSTOM_DSDT_FILE
string "Custom DSDT Table file to include"
default ""
@@ -609,6 +606,11 @@ config ACPI_PRMT

endif # ACPI

+# The class interface (/sys/class/platform-profile) needs nothing from ACPI,
+# so device tree platforms without ACPI can select it too.
+config ACPI_PLATFORM_PROFILE
+ tristate
+
config X86_PM_TIMER
bool "Power Management Timer Support" if EXPERT
depends on X86 && (ACPI || JAILHOUSE_GUEST)
diff --git a/drivers/acpi/platform_profile.c b/drivers/acpi/platform_profile.c
index f5453b0..98475a3 100644
--- a/drivers/acpi/platform_profile.c
+++ b/drivers/acpi/platform_profile.c
@@ -193,16 +193,32 @@ static ssize_t profile_show(struct device *dev,

static const struct attribute_group platform_profile_group;

-/* The legacy /sys/firmware/acpi files exist only where ACPI firmware runs. */
+/*
+ * The legacy /sys/firmware/acpi files exist only where ACPI firmware runs,
+ * and never in a kernel built without ACPI.
+ */
+static struct kobject *platform_profile_legacy_kobj(void)
+{
+#ifdef CONFIG_ACPI
+ return acpi_kobj;
+#else
+ return NULL;
+#endif
+}
+
static void platform_profile_legacy_notify(void)
{
- if (acpi_kobj)
- sysfs_notify(acpi_kobj, NULL, "platform_profile");
+ struct kobject *kobj = platform_profile_legacy_kobj();
+
+ if (kobj)
+ sysfs_notify(kobj, NULL, "platform_profile");
}

static int platform_profile_legacy_update(void)
{
- return acpi_kobj ? sysfs_update_group(acpi_kobj, &platform_profile_group) : 0;
+ struct kobject *kobj = platform_profile_legacy_kobj();
+
+ return kobj ? sysfs_update_group(kobj, &platform_profile_group) : 0;
}

/**
@@ -702,6 +718,7 @@ EXPORT_SYMBOL_GPL(devm_platform_profile_register);

static int __init platform_profile_init(void)
{
+ struct kobject *kobj = platform_profile_legacy_kobj();
int err;

err = class_register(&platform_profile_class);
@@ -709,10 +726,10 @@ static int __init platform_profile_init(void)
return err;

/* Without ACPI firmware (a device tree boot) only the class interface exists. */
- if (!acpi_kobj)
+ if (!kobj)
return 0;

- err = sysfs_create_group(acpi_kobj, &platform_profile_group);
+ err = sysfs_create_group(kobj, &platform_profile_group);
if (err)
class_unregister(&platform_profile_class);

@@ -721,8 +738,10 @@ static int __init platform_profile_init(void)

static void __exit platform_profile_exit(void)
{
- if (acpi_kobj)
- sysfs_remove_group(acpi_kobj, &platform_profile_group);
+ struct kobject *kobj = platform_profile_legacy_kobj();
+
+ if (kobj)
+ sysfs_remove_group(kobj, &platform_profile_group);
class_unregister(&platform_profile_class);
}
module_init(platform_profile_init);
diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig
index ab20d7f..f76ae34 100644
--- a/drivers/soc/apple/Kconfig
+++ b/drivers/soc/apple/Kconfig
@@ -481,7 +481,7 @@ config APPLE_CLPC
depends on ARCH_APPLE || COMPILE_TEST
depends on (APPLE_PMC || !APPLE_PMC) && CPU_FREQ
depends on MFD_MACSMC || !MFD_MACSMC
- select ACPI_PLATFORM_PROFILE if ACPI
+ select ACPI_PLATFORM_PROFILE
default ARCH_APPLE
help
Raises the DRAM controller and SoC fabric performance floors of the
Loading