[RFC PATCH v3 11/12] powerpc: Support to replay PMIs

Madhavan Srinivasan maddy at linux.vnet.ibm.com
Fri Aug 26 11:29:39 AEST 2016

On Thursday 25 August 2016 12:38 PM, Nicholas Piggin wrote:
> On Thu, 25 Aug 2016 12:00:02 +0530
> Madhavan Srinivasan <maddy at linux.vnet.ibm.com> wrote:
>> Code to replay the Performance Monitoring Interrupts(PMI).
>> In the masked_interrupt handler, for PMIs we reset the MSR[EE]
>> and return. In the __check_irq_replay(), replay the PMI interrupt
>> by calling performance_monitor_common handler.
>> Patch also adds a new soft_irq_set_mask() to update paca->soft_enabled.
>> New Kconfig is added "CONFIG_IRQ_DEBUG_SUPPORT" to add a warn_on
>> to alert the usage of soft_irq_set_mask() for disabling lower
>> bitmask interrupts.
>> Have also moved the code under the CONFIG_TRACE_IRQFLAGS in
>> arch_local_irq_restore() to new Kconfig as suggested.
> Should you make a single patch out of this and patch 10?
> It doesn't make sense to mask perf interrupts if we can't
> replay them.
> Perhaps split the CONFIG_IRQ_DEBUG_SUPPORT change into its
> own patch first and have the PMU masking and replaying as
> a single patch?

Make senses. Will make the changes.


> Just a suggestion.

More information about the Linuxppc-dev mailing list