]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqdomain: Add IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and irq_domain_is_msi_immutable()
authorFrank Li <Frank.Li@nxp.com>
Mon, 14 Apr 2025 18:30:56 +0000 (14:30 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 7 May 2025 15:49:00 +0000 (17:49 +0200)
commitb8c7bfb7a0f01521297d688ca5fe1482c81e8910
tree535226a14067d7cc303b940590802313b034aa00
parent9a958e1fd40d6fae8c66385687a00ebd9575a7d2
irqdomain: Add IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and irq_domain_is_msi_immutable()

Add the flag IRQ_DOMAIN_FLAG_MSI_IMMUTABLE and the API function
irq_domain_is_msi_immutable() to check if the MSI controller retains an
immutable address/data pair during irq_set_affinity().

Ensure compatibility with MSI users like PCIe Endpoint Doorbell, which
require the address/data pair to remain unchanged after setup. Use this
function to verify if the MSI controller is immutable.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250414-ep-msi-v18-2-f69b49917464@nxp.com
include/linux/irqdomain.h