genirq/irqdomain: Add an irq_create_mapping_affinity() function
authorLaurent Vivier <lvivier@redhat.com>
Thu, 26 Nov 2020 08:28:51 +0000 (09:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 30 Nov 2020 11:21:31 +0000 (12:21 +0100)
commitbb4c6910c8b41623104c2e64a30615682689a54d
treef97551581ea5ffe21daf7f71e50325948d3961e1
parent509920aee72ae23235615a009c5148cdb38794c3
genirq/irqdomain: Add an irq_create_mapping_affinity() function

There is currently no way to convey the affinity of an interrupt
via irq_create_mapping(), which creates issues for devices that
expect that affinity to be managed by the kernel.

In order to sort this out, rename irq_create_mapping() to
irq_create_mapping_affinity() with an additional affinity parameter that
can be passed down to irq_domain_alloc_descs().

irq_create_mapping() is re-implemented as a wrapper around
irq_create_mapping_affinity().

No functional change.

Fixes: e75eafb9b039 ("genirq/msi: Switch to new irq spreading infrastructure")
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kurz <groug@kaod.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201126082852.1178497-2-lvivier@redhat.com
include/linux/irqdomain.h
kernel/irq/irqdomain.c