From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757555AbaDKKfw (ORCPT ); Fri, 11 Apr 2014 06:35:52 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:42216 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756111AbaDKKfp (ORCPT ); Fri, 11 Apr 2014 06:35:45 -0400 Subject: [PATCH 0/3] ppc:Set runlatch bits correctly for offline threads and vcpus To: linuxppc-dev@ozlabs.org From: Preeti U Murthy Cc: benh@kernel.crashing.org, paulus@samba.org, linux-kernel@vger.kernel.org, srivatsa.bhat@linux.vnet.ibm.com Date: Fri, 11 Apr 2014 16:01:39 +0530 Message-ID: <20140411103030.27683.2107.stgit@preeti.in.ibm.com> User-Agent: StGit/0.16-38-g167d MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14041110-7182-0000-0000-00000A4DB41D Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) --