linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Warning seen when removing a module using irqdomain framework
@ 2019-07-23 21:52 pheragu
  2019-07-24  6:51 ` Marc Zyngier
  0 siblings, 1 reply; 3+ messages in thread
From: pheragu @ 2019-07-23 21:52 UTC (permalink / raw)
  To: marc.zyngier, Linux Kernel, Linux-arm Msm
  Cc: psodagud, Tsoni, rananta, mnalajal

Hi,

I have been working on a interrupt controller driver that uses tree 
based mapping for its domain (irq_domain_add_tree(..)).
If I understand correctly, the clients get a mapping when they call 
platform_get_irq(..).
However, after these clients are removed (rmmod), when I try to remove 
the interrupt controller driver where it calls irq_domain_remove(..), I 
hit this warning from kernel/kernel/irq/irqdomain.c:: 
irq_domain_remove(..)
[WARN_ON(!radix_tree_empty(&domain->revmap_tree));]-
WARNING: CPU: 0 PID: 238 at /kernel/kernel/irq/irqdomain.c:246 
irq_domain_remove+0x84/0x98

Also, I see that the requested IRQs by the clients are still present (in 
/proc/interrupts) even after they had been removed.
Hence, I just wanted to know how to handle this warning. Should the 
client clean up by calling irq_dispose_mapping(..) or is it the 
responsibility of the interrupt controller driver to dispose the 
mappings one by one?

Regards,
Prakruthi Deepak Heragu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-25 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 21:52 Warning seen when removing a module using irqdomain framework pheragu
2019-07-24  6:51 ` Marc Zyngier
2019-07-25 21:41   ` pheragu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).