From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tcdPH3X7tzDvhQ for ; Mon, 12 Dec 2016 20:50:27 +1100 (AEDT) Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tcdPG68Mzz9t0v for ; Mon, 12 Dec 2016 20:50:26 +1100 (AEDT) Received: by mail-pg0-x242.google.com with SMTP id 3so509125pgd.0 for ; Mon, 12 Dec 2016 01:50:26 -0800 (PST) From: Balbir Singh To: linuxppc-dev@ozlabs.org Cc: Balbir Singh , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Nicholas Piggin Subject: [powerpc/nmi: RFC 0/2] Support Soft NMI Date: Mon, 12 Dec 2016 20:50:01 +1100 Message-Id: <20161212095003.1885-1-bsingharora@gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This patch is based on suggestions from paulus and benh. The bugs are all mine. The idea was to implement soft NMI(s) by keeping interrupts enabled in the soft-disabled state, but to use the interrupt controller to gate posting of new interrupts to the processor. This is still work in progress and a preliminary RFC that needs testing. Nick posted a more comprehensive version for soft NMI at https://patchwork.ozlabs.org/patch/704605/, but it does not work when interrupts are disabled Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Balbir Singh (2): Merge IPI and DEFAULT priorities Keep interrupts enabled even on soft disable arch/powerpc/include/asm/paca.h | 1 + arch/powerpc/include/asm/xics.h | 8 ++------ arch/powerpc/kernel/exceptions-64s.S | 17 ++++++++++------- arch/powerpc/kernel/irq.c | 21 ++++++++++++++++++++- arch/powerpc/kernel/time.c | 27 ++++++++++++++++++++++++++- 5 files changed, 59 insertions(+), 15 deletions(-) -- 2.9.3