Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1689309 > unrolled thread

[PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume

Started byJuergen Gross <jgross@suse.com>
First post2017-07-17 19:50 +0200
Last post2017-07-18 10:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume Juergen Gross <jgross@suse.com> - 2017-07-17 19:50 +0200
    Re: [PATCH 2/2] xen: dont fiddle with event channel masking in  suspend/resume Thomas Gleixner <tglx@linutronix.de> - 2017-07-18 10:10 +0200

#1689309 — [PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume

FromJuergen Gross <jgross@suse.com>
Date2017-07-17 19:50 +0200
Subject[PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume
Message-ID<u4ijE-85t-19@gated-at.bofh.it>
Instead of fiddling with masking the event channels during suspend
and resume handling let do the irq subsystem do its job. It will do
the mask and unmask operations as needed.

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

diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index b241bfa529ce..bae1f5d36c26 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -343,14 +343,6 @@ static void bind_evtchn_to_cpu(unsigned int chn, unsigned int cpu)
 	info->cpu = cpu;
 }
 
-static void xen_evtchn_mask_all(void)
-{
-	unsigned int evtchn;
-
-	for (evtchn = 0; evtchn < xen_evtchn_nr_channels(); evtchn++)
-		mask_evtchn(evtchn);
-}
-
 /**
  * notify_remote_via_irq - send event to remote end of event channel via irq
  * @irq: irq of event channel to send event to
@@ -1573,7 +1565,6 @@ void xen_irq_resume(void)
 	struct irq_info *info;
 
 	/* New event-channel space is not 'live' yet. */
-	xen_evtchn_mask_all();
 	xen_evtchn_resume();
 
 	/* No IRQ <-> event-channel mappings. */
@@ -1681,6 +1672,7 @@ module_param(fifo_events, bool, 0);
 void __init xen_init_IRQ(void)
 {
 	int ret = -EINVAL;
+	unsigned int evtchn;
 
 	if (fifo_events)
 		ret = xen_evtchn_fifo_init();
@@ -1692,7 +1684,8 @@ void __init xen_init_IRQ(void)
 	BUG_ON(!evtchn_to_irq);
 
 	/* No event channels are 'live' right now. */
-	xen_evtchn_mask_all();
+	for (evtchn = 0; evtchn < xen_evtchn_nr_channels(); evtchn++)
+		mask_evtchn(evtchn);
 
 	pirq_needs_eoi = pirq_needs_eoi_flag;
 
-- 
2.12.3

[toc] | [next] | [standalone]


#1689850 — Re: [PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume

FromThomas Gleixner <tglx@linutronix.de>
Date2017-07-18 10:10 +0200
SubjectRe: [PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume
Message-ID<u4vJU-8k9-5@gated-at.bofh.it>
In reply to#1689309
On Mon, 17 Jul 2017, Juergen Gross wrote:

> Instead of fiddling with masking the event channels during suspend
> and resume handling let do the irq subsystem do its job. It will do
> the mask and unmask operations as needed.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Acked-by: Thomas Gleixner <tglx@linutronix.de>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web