Skip to content

Commit

Permalink
powerpc/mpic: Create a revmap with enough entries for IPIs and timers
Browse files Browse the repository at this point in the history
The current mpic code creates a linear revmap just big enough for all
the sources, which happens to miss the IPIs and timers on some machines.

This will in turn break when the irqdomain code loses the fallback of
doing a linear search when the revmap fails (and really slows down IPIs
otherwise).

This happens for example on the U4 based Apple machines such as the
dual core PowerMac G5s.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Jul 23, 2012
1 parent 668fcb6 commit 574ce79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ struct mpic * __init mpic_alloc(struct device_node *node,
mpic->isu_mask = (1 << mpic->isu_shift) - 1;

mpic->irqhost = irq_domain_add_linear(mpic->node,
last_irq + 1,
intvec_top,
&mpic_host_ops, mpic);

/*
Expand Down

0 comments on commit 574ce79

Please sign in to comment.