Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713030
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace |
| Date | 2017-08-16 17:00 +0200 |
| Message-ID | <uf7XA-8ld-25@gated-at.bofh.it> (permalink) |
| References | <u5m1P-11d-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 20 Jul 2017, Marc Zyngier wrote:
> When developing new (and therefore buggy) interrupt related
> code, it can sometimes be useful to inject interrupts without
> having to rely on a device to actually generate them.
>
> This functionnality relies on the irqchip driver to expose
> a irq_set_irqchip_state(IRQCHIP_STATE_PENDING) callback.
I like that, but can we please extend that to utilize the irq resend
mechanism:
desc = ....;
chip_bus_lock(desc);
raw_spin_lock_irq(&desc->lock);
if (has_set_state(desc))
set_state(desc);
else
check_irq_resend(desc);
or something to that effect?
Thanks,
tglx
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace Thomas Gleixner <tglx@linutronix.de> - 2017-08-16 17:00 +0200 Re: [RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace Marc Zyngier <marc.zyngier@arm.com> - 2017-08-16 17:00 +0200
csiph-web