Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1739282
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Thomas Gleixner <tglx@linutronix.de> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v1 2/9] genirq: Support shared per_cpu_devid interrupts |
| Date | Mon, 25 Sep 2017 23:10:02 +0200 |
| Message-ID | <utINA-3rn-13@gated-at.bofh.it> (permalink) |
| References | <umTE6-1fa-5@gated-at.bofh.it> <unepb-6Sv-5@gated-at.bofh.it> <unepb-6Sv-3@gated-at.bofh.it> |
| User-Agent | Alpine 2.20 (DEB 67 2015-01-07) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| X-Linutronix-Spam-Score | -1.0 |
| X-Linutronix-Spam-Level | - |
| X-Linutronix-Spam-Status | No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 43 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Ralf Baechle <ralf@linux-mips.org>, dianders@chromium.org, James Hogan <james.hogan@imgtec.com>, Brian Norris <briannorris@chromium.org>, Jason Cooper <jason@lakedaemon.net>, jeffy.chen@rock-chips.com, Marc Zyngier <marc.zyngier@arm.com>, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, tfiga@chromium.org |
| X-Original-Date | Mon, 25 Sep 2017 23:06:39 +0200 (CEST) |
| X-Original-Message-ID | <alpine.DEB.2.20.1709252259270.2418@nanos> |
| X-Original-References | <1682867.tATABVWsV9@np-p-burton> <20170907232542.20589-1-paul.burton@imgtec.com> <20170907232542.20589-3-paul.burton@imgtec.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1739282 |
Show key headers only | View raw
On Thu, 7 Sep 2017, Paul Burton wrote: > Up until now per_cpu_devid interrupts have not supported sharing. On > MIPS we have some percpu interrupts which are shared in many systems - > a single CPU interrupt line may be used to indicate a timer interrupt, > performance counter interrupt or fast debug channel interrupt. We have > up until now supported this with a series of hacks, wherein drivers call > each other's interrupt handlers & our MIPS GIC irqchip driver includes a > hack which configures the interrupt(s) for all CPUs. In order to allow > this mess to be cleaned up, this patch introduces support for shared > per_cpu_devid interrupts. > > The major portion of this is supporting per_cpu_devid interrupts in > __handle_irq_event_percpu() and then making use of this, via > handle_irq_event_percpu(), from handler_percpu_devif_irq() to invoke the > handler for all actions associated with the shared interrupt. This does > have a few side effects worth noting: > > - per_cpu_devid interrupts will now add to the entropy pool via > add_interrupt_randomness(), where they previously did not. > > - per_cpu_devid interrupts will record timings when IRQS_TIMINGS is > set, via record_irq_time(), where they previously did not. > > - per_cpu_devid interrupts will handle an IRQ_WAKE_THREAD return from > their handlers to wake a thread, where they previously did not. That's broken because it lacks the magic synchronization which is described in the comment in __irq_wake_thread(). > I'm not aware of any reason the above should be bad side effects, so > sharing __handle_irq_event_percpu() for per_cpu_devid interrupts seems > like a positive. Now you are :) The other side effect of this is the extra overhead. You add an extra conditional into the main interrupt handling function __handle_irq_event_percpu() and the extra loop and hoops overhead for handle_percpu_devid_irq(). Thanks, tglx
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [RFC PATCH v1 2/9] genirq: Support shared per_cpu_devid interrupts Thomas Gleixner <tglx@linutronix.de> - 2017-09-25 23:10 +0200 Re: [RFC PATCH v1 2/9] genirq: Support shared per_cpu_devid interrupts Thomas Gleixner <tglx@linutronix.de> - 2017-09-26 14:10 +0200
csiph-web