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 AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 58E791A01BD for ; Tue, 29 Jul 2014 23:10:00 +1000 (EST) Received: from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1C3681400B5 for ; Tue, 29 Jul 2014 23:09:59 +1000 (EST) Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 29 Jul 2014 23:09:59 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 62B553578047 for ; Tue, 29 Jul 2014 23:09:56 +1000 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s6TD9XrI13566000 for ; Tue, 29 Jul 2014 23:09:34 +1000 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s6TD9tR0006603 for ; Tue, 29 Jul 2014 23:09:55 +1000 Subject: [PATCH 0/3] Add HMI handling in Linux host. From: Mahesh J Salgaonkar To: linuxppc-dev , Benjamin Herrenschmidt Date: Tue, 29 Jul 2014 18:39:53 +0530 Message-ID: <20140729130900.13492.85976.stgit@mars> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This patch series implements HMI interrupt handling in Linux. First patch implements basic infrastructure to handle HMI in Linux host. Second patch invokes opal call to handle hmi in opal firmware and retrieve HMI event generated by opal. Third patch handles HMI received on cpus in sleep/nap mode. This patchset have been tested with following scenario: a. SMT on mode b. SMT off mode without any guest c. SMT off + multiple guest c. SMT off + multiple guest running 'find /' command Thanks, -Mahesh. --- Mahesh Salgaonkar (3): powerpc/book3s: Add basic infrastructure to handle HMI in Linux. powerpc/powernv: Invoke opal call to handle hmi. powerpc/book3s: handle HMIs for cpus in nap mode. arch/powerpc/include/asm/exception-64s.h | 2 arch/powerpc/include/asm/hardirq.h | 1 arch/powerpc/include/asm/hw_irq.h | 1 arch/powerpc/include/asm/kvm_asm.h | 1 arch/powerpc/include/asm/machdep.h | 4 + arch/powerpc/include/asm/opal.h | 49 ++++++ arch/powerpc/include/asm/paca.h | 1 arch/powerpc/kernel/entry_64.S | 5 + arch/powerpc/kernel/exceptions-64s.S | 66 ++++++++ arch/powerpc/kernel/idle_power7.S | 32 ++++ arch/powerpc/kernel/irq.c | 14 ++ arch/powerpc/kernel/traps.c | 24 +++ arch/powerpc/kvm/book3s_hv_rmhandlers.S | 6 + arch/powerpc/platforms/powernv/Makefile | 2 arch/powerpc/platforms/powernv/opal-hmi.c | 188 ++++++++++++++++++++++++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 arch/powerpc/platforms/powernv/opal.c | 43 +++++ arch/powerpc/platforms/powernv/setup.c | 2 18 files changed, 435 insertions(+), 7 deletions(-) create mode 100644 arch/powerpc/platforms/powernv/opal-hmi.c -- Signature