Skip to content

SM8550: mask the IPCC mailbox irq on suspend (parity with SM8750) - #3115

Merged
loki666 merged 1 commit into
ROCKNIX:nextfrom
shuuri-labs:sm8550-ipcc-suspend-groundwork
Aug 5, 2026
Merged

SM8550: mask the IPCC mailbox irq on suspend (parity with SM8750)#3115
loki666 merged 1 commit into
ROCKNIX:nextfrom
shuuri-labs:sm8550-ipcc-suspend-groundwork

Conversation

@shuuri-labs

@shuuri-labs shuuri-labs commented Aug 4, 2026

Copy link
Copy Markdown

Summary

Suspend/resume groundwork for SM8550, split out from #2954. One patch, no behavior change on current builds (suspend remains disabled by the SM8550 quirk).

The ADSP charger firmware pushes an unsolicited BATTMGR_NOTIFICATION about 0.5s after suspend entry. The IPCC mailbox irq is IRQF_NO_SUSPEND upstream, so it is never masked across suspend and the notification wakes the device every few minutes, the single biggest blocker to SM8550 staying asleep. Dropping IRQF_NO_SUSPEND lets the PM core mask it like a normal irq; pending signals are handled on resume.

ROCKNIX already carries this patch verbatim for SM8750, so it shouldn't add much new maintenance surface. It is also needed by any future SM8550 suspend path - the charger chatter wakes both deep and s2idle - so whoever continues the suspend work builds on it either way. If a future kernel bump ever makes it fail to apply, dropping it is safe: the only consequence is the old self-wake behavior returning for suspend users.

Testing

Verified on a Retroid Pocket 6 (details in the patch header): before, the device could not stay asleep past 5 to 10 minutes; after, clean RTC-bounded multi-hour deep sleeps with matching boottime drift. No effect on shipping builds, since the quirk keeps suspend off.

AI Usage

Did you use AI tools to help write this code? Yes. AI tools were used for investigation tooling and log correlation; the fix itself is lifted from ROCKNIX's existing SM8750 patch and was validated by hardware testing.

The ADSP charger firmware pushes an unsolicited BATTMGR_NOTIFICATION
(opcode 0x7) about 0.5s after suspend entry. It rings the IPCC mailbox
irq, which upstream is IRQF_NO_SUSPEND, so it is never masked and wakes
the device every few minutes. Drop IRQF_NO_SUSPEND so the mailbox irq is
masked across system suspend. Lifted from ROCKNIX SM8750 (AYN Odin 3),
which shares the battmgr/pmic_glink charger model and sleeps cleanly.
@shuuri-labs
shuuri-labs force-pushed the sm8550-ipcc-suspend-groundwork branch from c6ab69d to f955f5b Compare August 4, 2026 19:08
@shuuri-labs
shuuri-labs marked this pull request as ready for review August 4, 2026 19:20

@loki666 loki666 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@loki666
loki666 enabled auto-merge August 5, 2026 08:27
@loki666
loki666 added this pull request to the merge queue Aug 5, 2026
Merged via the queue into ROCKNIX:next with commit cc4ae01 Aug 5, 2026
6 checks passed
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