Skip to content

linux-omarchy-aarch64: build hibernation - #3179

Merged
ryanrhughes merged 3 commits into
omacom:masterfrom
birkskyum:linux-omarchy-aarch64-hibernation
Nov 21, 2026
Merged

ryanrhughes merged 3 commits into
omacom:masterfrom
birkskyum:linux-omarchy-aarch64-hibernation

Conversation

@birkskyum

@birkskyum birkskyum commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Omarchy's ARM kernel has CONFIG_HIBERNATION off since the N1x kernel came in (#930), while linux-omarchy on x86_64 has it on. So no ARM computer can hibernate, and nobody can work on getting one to resume without building a kernel first.

linux-omarchy 7.3-75 turns CONFIG_HIBERNATION on. The other configuration lines are what make olddefconfig derives from it. No source changes.

Nothing changes for an install by this alone. Omarchy sets hibernation up on an ARM computer only when asked to, with omarchy-hibernation-setup --experimental (omacom/omarchy#19617). That has to be in the omarchy-dev package before this merges, since the installer runs hibernation setup on every install.

No ARM laptop is known to come back from hibernation yet. A Lenovo Yoga Slim 7x loads the image and resumes the first devices, then loses the session. An earlier revision of this PR carried eight fixes for that laptop (pin configuration, PCIe shutdown, smp2p, Bluetooth and the serial engine). They are out again, because on the current base they do not get it through a power-off cycle. They come back in their own PR once a laptop resumes with them.

Checked in the aarch64 builder:

  • The configuration file is what make olddefconfig gives, so the build's diff of it shows no new lines.
  • The whole kernel builds with the option on, the image and 8,509 modules, with no warnings from kernel/power.

Not yet run on a laptop at 7.3-75.

… X1 laptop needs to resume

The ARM configuration has had CONFIG_HIBERNATION off since the N1x kernel came in,
while linux-omarchy on x86_64 has it on, so no ARM computer could hibernate and
nobody could work on getting one to resume. 7.3-75 turns it on and carries eight
patches from the kernel lists: the pin configuration restore (2280), the PCIe
shutdown series and powering a controller down when hibernating (2281 to 2284),
smp2p starting over after a restore (2285), hci_qca's in-band sleep state (2286)
and the geni serial engine setup after a restore (2287).
@birkskyum

Copy link
Copy Markdown
Contributor Author

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] No new blocking issue was found; merge should still wait for the setup guard required by the PR description.

Summary

Enables CONFIG_HIBERNATION for the ARM kernel in release 7.3-75, with its derived settings and updated checksums.

  • The aarch64 kernel now builds with hibernation support.

Reviews (4) · Last reviewed commit: "linux-omarchy-aarch64: build hibernation..." · Reviewed by Greptile

…n callback

qcom_pcie_shutdown() left pcie unset on the firmware-managed branch and tested it
afterwards. The build zeroes stack variables, so it read NULL there, but only by
that setting.
@birkskyum

Copy link
Copy Markdown
Contributor Author

@greptileai

On the current base the eight fixes do not get a Yoga Slim 7x through a
power-off cycle, and the October kernel no longer completes one on that
laptop either. They come back once a laptop resumes with them. 7.3-75 is
now the configuration change alone.
@birkskyum birkskyum changed the title linux-omarchy-aarch64: build hibernation, with the fixes a Snapdragon X1 laptop needs to resume linux-omarchy-aarch64: build hibernation Nov 21, 2026
@birkskyum

Copy link
Copy Markdown
Contributor Author

@greptileai

@birkskyum
birkskyum marked this pull request as ready for review November 21, 2026 14:40
@ryanrhughes
ryanrhughes merged commit d0791de into omacom:master Nov 21, 2026
12 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: linux-omarchy-aarch64 (aarch64, PR artifact)

  • edge/aarch64: linux-omarchy-7.3-75-aarch64, linux-omarchy-headers-7.3-75-aarch64, linux-omarchy-nvidia-open-7.3-75-aarch64

Commit d0791de · run

birkskyum added a commit to birkskyum/omarchy-pkgs that referenced this pull request Nov 23, 2026
…SHM bridges in 2289

2283's qcom_pcie_shutdown() left pcie unset on the firmware-managed branch
and tested it afterwards. It read NULL only because the build zeroes stack
variables, so it starts as NULL now, as omacom#3179 had it.

2289 marked the SHM bridges restored and reported success even when one
couldn't be created again. Now the error goes back through the restore
and thaw callbacks, qcom_tzmem_bridges_suspended() stays true, and the
area is tried again at the next thaw or restore.

The patches no longer carry their position in the series in the subject.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ryanrhughes pushed a commit that referenced this pull request Nov 23, 2026
…ptops back from hibernation, first the Yoga Slim 7x (#3304)

* linux-omarchy-aarch64: bring the Snapdragon X1 laptops back from hibernation

7.3-78 carries 2280 to 2298. These are the eight fixes from the kernel lists
that #3179 took out again, and five more for devices the restore found set up
wrong (geni clocks, TrustZone SHM bridges, SoundWire and reset-gpio). Then
the GMU state after a restore and gennro's GMU ack fixes from
armada-os/armada#662, and the GIC's LPI tables, which on the X1 can't be
moved once the loader enabled them. A device tree can now give the GIC
node a memory-region for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* linux-omarchy-dtbs: fixed GIC LPI tables for the Yoga Slim 7x

0071 reserves 1 MiB at 0x8a0000000 and names it as the GIC's memory-region,
so the loader of a hibernation image and the restored kernel put the LPI
tables at the same address (linux-omarchy-aarch64 7.3-78, 2298).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* linux-omarchy-aarch64: start pcie as NULL in 2283, report unrestored SHM bridges in 2289

2283's qcom_pcie_shutdown() left pcie unset on the firmware-managed branch
and tested it afterwards. It read NULL only because the build zeroes stack
variables, so it starts as NULL now, as #3179 had it.

2289 marked the SHM bridges restored and reported success even when one
couldn't be created again. Now the error goes back through the restore
and thaw callbacks, qcom_tzmem_bridges_suspended() stays true, and the
area is tried again at the next thaw or restore.

The patches no longer carry their position in the series in the subject.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants