lkml.org 
[lkml]   [2017]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace
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

\
 
 \ /
  Last update: 2017-08-16 16:51    [W:0.043 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site