Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1700695
| From | Tomi Sarvela <tomi.p.sarvela@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] x86/hpet: Cure interface abuse in the resume path |
| Date | 2017-08-01 09:40 +0200 |
| Message-ID | <u9zWy-iZ-19@gated-at.bofh.it> (permalink) |
| References | <u9paN-2ga-3@gated-at.bofh.it> |
| Organization | Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo |
On 31/07/17 23:07, Thomas Gleixner wrote:
> The HPET resume path abuses irq_domain_[de]activate_irq() to restore the
> MSI message in the HPET chip for the boot CPU on resume and it relies on an
> implementation detail of the interrupt core code, which magically makes the
> HPET unmask call invoked via a irq_disable/enable pair. This worked as long
> as the irq code did unconditionally invoke the unmask() callback. With the
> recent changes which keep track of the masked state to avoid expensive
> hardware access, this does not longer work. As a consequence the HPET timer
> interrupts are not unmasked which breaks resume as the boot CPU waits
> forever that a timer interrupt arrives.
>
> Make the restore of the MSI message explicit and invoke the unmask()
> function directly. While at it get rid of the pointless affinity setting as
> nothing can change the affinity of the interrupt and the vector across
> suspend/resume. The restore of the MSI message reestablishes the previous
> affinity setting which is the correct one.
>
> Fixes: bf22ff45bed6 ("genirq: Avoid unnecessary low level irq function calls")
> Reported-by: Martin Peres <martin.peres@linux.intel.com>
> Reported-by: Tomi Sarvela <tomi.p.sarvela@intel.com>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Cc: jeffy.chen@rock-chips.com
> Cc: Marc Zyngier <marc.zyngier@arm.com>
> Cc: Peter Ziljstra <peterz@infradead.org>
> Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Tested-by: Tomi Sarvela <tomi.p.sarvela@intel.com>
Tested only on the regressed Eagle Lake testhost. This patch fixes the
suspend/resume issue.
Tomi
--
Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] x86/hpet: Cure interface abuse in the resume path Thomas Gleixner <tglx@linutronix.de> - 2017-07-31 22:10 +0200
Re: [PATCH] x86/hpet: Cure interface abuse in the resume path "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> - 2017-08-01 00:30 +0200
Re: [PATCH] x86/hpet: Cure interface abuse in the resume path Tomi Sarvela <tomi.p.sarvela@intel.com> - 2017-08-01 09:40 +0200
Re: [PATCH] x86/hpet: Cure interface abuse in the resume path Thomas Gleixner <tglx@linutronix.de> - 2017-08-01 09:50 +0200
Re: [PATCH] x86/hpet: Cure interface abuse in the resume path Thomas Gleixner <tglx@linutronix.de> - 2017-08-01 13:00 +0200
[tip:x86/urgent] x86/hpet: Cure interface abuse in the resume path tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2017-08-01 13:20 +0200
csiph-web