All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/events: fix setting irq affinity
@ 2021-04-12  6:28 Juergen Gross
  2021-04-12  9:32 ` Jan Beulich
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Juergen Gross @ 2021-04-12  6:28 UTC (permalink / raw)
  To: stable; +Cc: Juergen Gross, Boris Ostrovsky, Stefano Stabellini, xen-devel

The backport of upstream patch 25da4618af240fbec61 ("xen/events: don't
unmask an event channel when an eoi is pending") introduced a
regression for stable kernels 5.10 and older: setting IRQ affinity for
IRQs related to interdomain events would no longer work, as moving the
IRQ to its new cpu was not included in the irq_ack callback for those
events.

Fix that by adding the needed call.

Note that kernels 5.11 and later don't need the explicit moving of the
IRQ to the target cpu in the irq_ack callback, due to a rework of the
affinity setting in kernel 5.11.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
This patch should be applied to all stable kernel branches up to
(including) linux-5.10.y, where upstream patch 25da4618af240fbec61 has
been added.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
 drivers/xen/events/events_base.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index 7bd03f6e0422..ee5269331406 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -1809,7 +1809,7 @@ static void lateeoi_ack_dynirq(struct irq_data *data)
 
 	if (VALID_EVTCHN(evtchn)) {
 		do_mask(info, EVT_MASK_REASON_EOI_PENDING);
-		event_handler_exit(info);
+		ack_dynirq(data);
 	}
 }
 
@@ -1820,7 +1820,7 @@ static void lateeoi_mask_ack_dynirq(struct irq_data *data)
 
 	if (VALID_EVTCHN(evtchn)) {
 		do_mask(info, EVT_MASK_REASON_EXPLICIT);
-		event_handler_exit(info);
+		ack_dynirq(data);
 	}
 }
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-04-15 14:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12  6:28 [PATCH] xen/events: fix setting irq affinity Juergen Gross
2021-04-12  9:32 ` Jan Beulich
2021-04-12  9:39   ` Juergen Gross
2021-04-12  9:45     ` Jan Beulich
2021-04-15 13:57 ` Greg KH
2021-04-15 14:03 ` Patch "xen/events: fix setting irq affinity" has been added to the 4.4-stable tree gregkh
2021-04-15 14:03 ` Patch "xen/events: fix setting irq affinity" has been added to the 4.9-stable tree gregkh
2021-04-15 14:03 ` Patch "xen/events: fix setting irq affinity" has been added to the 4.14-stable tree gregkh
2021-04-15 14:04 ` Patch "xen/events: fix setting irq affinity" has been added to the 4.19-stable tree gregkh
2021-04-15 14:04 ` Patch "xen/events: fix setting irq affinity" has been added to the 5.4-stable tree gregkh
2021-04-15 14:04 ` Patch "xen/events: fix setting irq affinity" has been added to the 5.10-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.