From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EFF0E1400A8 for ; Fri, 11 Apr 2014 20:16:22 +1000 (EST) Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 11 Apr 2014 04:16:20 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id C301F1FF001A for ; Fri, 11 Apr 2014 04:16:17 -0600 (MDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by b03cxnp08025.gho.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s3BAG9gk10944934 for ; Fri, 11 Apr 2014 12:16:17 +0200 Received: from d03av02.boulder.ibm.com (localhost [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s3BAFi7u017090 for ; Fri, 11 Apr 2014 04:15:45 -0600 Subject: [PATCH 0/3] ppc:Set runlatch bits correctly for offline threads and vcpus To: linuxppc-dev@ozlabs.org From: Preeti U Murthy Date: Fri, 11 Apr 2014 15:41:25 +0530 Message-ID: <20140411101035.24827.17887.stgit@preeti.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Cc: paulus@samba.org, linux-kernel@vger.kernel.org, srivatsa.bhat@linux.vnet.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The runlatch bits with their value indicated by CTRL_RUNLATCH are set and cleared in the SPRN_CTRL registers to indicate a busy and idle cpu respectively. This is currently being done in the cpuidle path of the host. But needs to be taken care of in hotplug and kvm scenarios. This patchset is aimed at ensuring that the runlatch bits are consisten with the utilization of a CPU under all circumstances. --- Preeti U Murthy (3): ppc/powernv: Set the runlatch bits correctly for offline cpus ppc/kvm: Set the runlatch bit of a CPU just before starting guest ppc/kvm: Clear the runlatch bit of a vcpu before napping arch/powerpc/kvm/book3s_hv_rmhandlers.S | 18 +++++++++++++++++- arch/powerpc/platforms/powernv/smp.c | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-) --