Skip to content

Add NI_IRQ_RESOLVER - #289

Open
alispss wants to merge 1 commit into
ni:nilrt/master/6.18from
alispss:users/almontag/zynq-irq-6.18
Open

Add NI_IRQ_RESOLVER#289
alispss wants to merge 1 commit into
ni:nilrt/master/6.18from
alispss:users/almontag/zynq-irq-6.18

Conversation

@alispss

@alispss alispss commented Aug 19, 2026

Copy link
Copy Markdown

Adds a resolver that translates hwirqs to virq for use by NI proprietary drivers. In previous kernels, they were equivalent, but in 6.18, they are no longer guaranteed.

Required on zynq targets.

Testing:

I compiled a new BSI with this kernel change and deployed it to the target. Using an updated driver that corresponds with these changes, I was able observe successful interrupt reservation and deploy and run a VI on the Target.

@chaitu236
chaitu236 requested review from a team and a balanced review from Copilot August 19, 2026 19:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds NI’s Zynq interrupt resolver for translating Device Tree hardware IRQ specifications into Linux virtual IRQs.

Changes:

  • Adds and exports the IRQ resolver.
  • Introduces its Kconfig and build integration.
  • Enables it in the NI Zynq defconfig.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
drivers/misc/niirqresolver.c Implements the IRQ resolver API.
drivers/misc/Makefile Builds the resolver when configured.
drivers/misc/Kconfig Defines the Zynq-specific option.
arch/arm/configs/nati_zynq_defconfig Enables the resolver for NI Zynq targets.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread drivers/misc/niirqresolver.c Outdated
Comment thread drivers/misc/niirqresolver.c Outdated

return virq;
}
EXPORT_SYMBOL(ni_of_resolve_irq);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Doesn't this defeat the purpose of what I'm trying to do with this PR? @chaitu236 can I safely ignore this suggestion?

Comment thread drivers/misc/Kconfig Outdated
Comment thread arch/arm/configs/nati_zynq_defconfig
@alispss
alispss force-pushed the users/almontag/zynq-irq-6.18 branch 3 times, most recently from ab07afe to 2439c0e Compare August 20, 2026 13:34
Adds a resolver that translates hwirqs to virq for use by NI
proprietary drivers. In previous kernels, they were equivalent,
but in 6.18, they are no longer guaranteed.

Required on zynq targets.

Signed-off-by: Alison Montag <alison.montag@emerson.com>
@alispss
alispss force-pushed the users/almontag/zynq-irq-6.18 branch from 2439c0e to 9f08316 Compare August 20, 2026 20:06
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_SRAM=y
CONFIG_NI_IRQ_RESOLVER=y

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.

bluefin and slsc have no need for this, neither of them use nikal-based drivers

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.

4 participants