On Fri, Jun 21, 2013 at 12:01:19PM -0500, Steven J. Hill wrote: > On 06/21/2013 06:13 AM, Tony Wu wrote: > >There is an infinite loop in gic_set_affinity. When irq_set_affinity > >gets called on gic controller, it blocks forever. > > > Tony, > > What hardware platform is this on and how do you trigger the call to > 'gic_set_affinity' such that you get stuck? Thanks. I assume on a SMP GIC configuration he must have tried something like echo 1 > /proc/irq/2/smp_affinity Where 1 is a CPU bit mask and 2 the number of a GIC interrupt of which to change the affinity. This is a hillarious bug, this obviously has never been working. I'm not sure if anything else would need fixing or if the loop had any sane purpose but as of now I can't see one so I'm queueing the patch for linux-next. Ralf