Skip to content

Cherry-pick int0002 IRQF_ONESHOT removal on top of the SCI revert - #607

Open
croos12 wants to merge 1 commit into
sonic-net:masterfrom
croos12:int0002-patch
Open

Cherry-pick int0002 IRQF_ONESHOT removal on top of the SCI revert#607
croos12 wants to merge 1 commit into
sonic-net:masterfrom
croos12:int0002-patch

Conversation

@croos12

@croos12 croos12 commented Aug 7, 2026

Copy link
Copy Markdown

Why I did it

With the ACPI SCI back on a plain IRQF_SHARED request_irq(), the INT0002 virtual GPIO
driver — which shares that IRQ line — still requests it with IRQF_ONESHOT. The mismatched
flags make request_irq() fail and int0002_vgpio fail to probe.

The visible symptom is a boot-time hang: after a successful ONIE install the switch freezes due to the kernel boot not progressing (~30% reproduction on SN5600). Dropping IRQF_ONESHOT resolves it.

How I did it

  • Added patches-sonic/platform-x86-int0002-remove-irqf-oneshot.patch, backporting stable
    commit 5938fb0e3285 ("platform/x86: int0002: Remove IRQF_ONESHOT from request_irq()",
    upstream f6bc712877f2).
  • Registered the patch in patches-sonic/series.

How to verify it

  1. Build and boot a master_RC image on affected x86 hardware.
  2. Confirm int0002_vgpio probes cleanly — dmesg | grep -i int0002 shows no
    IRQF_SHARED/flags-mismatch error and no request_irq failure.
  3. Confirm the IRQ is registered and shared: grep int0002 /proc/interrupts.

Tested branch (Please provide the tested image version)

  • master

Description for the changelog

Remove IRQF_ONESHOT from INT0002 request_irq() to fix shared-IRQ flags mismatch

Backport stable commit 5938fb0e3285 ("platform/x86: int0002: Remove
IRQF_ONESHOT from request_irq()", upstream f6bc712877f2) on top of the
revert of 7a36b901a6eb ("ACPI: OSL: Use a threaded interrupt handler for
SCI").

The INT0002 GPIO IRQ is typically shared with the ACPI SCI. With the SCI
back on a plain IRQF_SHARED request_irq(), INT0002 must drop IRQF_ONESHOT
or probe fails with a flags mismatch.

Signed-off-by: Connor Roos <croos@nvidia.com>
@croos12
croos12 requested a review from a team as a code owner August 7, 2026 18:19
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@dgsudharsan
dgsudharsan requested a review from saiarcot895 August 7, 2026 20:21
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.

3 participants