mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marc Zyngier <marc.zyngier@arm.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace
Date: Wed, 16 Aug 2017 15:58:04 +0100	[thread overview]
Message-ID: <4adc52d6-b7f6-a992-cd67-ba112edc1d01@arm.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1708161645220.1987@nanos>

On 16/08/17 15:50, Thomas Gleixner wrote:
> 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?
Definitely. That'd allow more HW to be supported. I'll have a look.

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

      reply	other threads:[~2017-08-16 14:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20 15:51 Marc Zyngier
2017-08-16 14:50 ` Thomas Gleixner
2017-08-16 14:58   ` Marc Zyngier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4adc52d6-b7f6-a992-cd67-ba112edc1d01@arm.com \
    --to=marc.zyngier@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®