Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9942000ybi; Wed, 24 Jul 2019 12:44:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrT3CMpMOxfy4JjsYa4KDbYS4+6BmwjkkgLBxnuE9fRTUzHs05rj+5pmpqQySo6UAkNqUv X-Received: by 2002:a62:3347:: with SMTP id z68mr13242880pfz.174.1563997484007; Wed, 24 Jul 2019 12:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563997483; cv=none; d=google.com; s=arc-20160816; b=xxxRFwvy/RehSiIAWgUlJBpqzdkRwUCqUy6IpGU1YwPkZH7DrEeRM424QUxAyoXQZM yG8/SXZqqdbEdXGeHAaiHX6P9FWpU1gbqwm9L3x4plXqvXzs4GNMHjHMxDlEfsp2XuyF 5VOkV3fQDtFddKntyHOtFPXNhHD+/qRJacysA53gqQhsUDc0PVvtR/Z12LMLGsT/L9Ye o9NhI6RY7ICXUQ/4VYasLk4peQYInzCQps5oy90EK0DAIBvq/rOEBtgT9EI3Aet5Fr7V dBshHSSTOy3gZm8pwtlP71+KTECBkfyTBMfua/1zJwPh84gaZqz6HUmPhyr0LgM2HUWe rlyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pZsFD+NxwVodoxtkl9R7rtTmZkQMqnJAfp6fKCEzwE8=; b=ZTykI9pscMtNbozLt/fIukxtOOQtf7lYjgb27UX85fI/0FIdVjJJ+buUatyWJ92a7o pgT7LsbFfwyR9IhH9Adeyjn5ZeIIOOxw5C/t3A64hHMjNONmqlxIxNrZYeA7fI0XlBiz CCJboR+GaoSnGji4sen95HGoo74pSmwr6T/uGsx5isG+WADwvu4RC1KmoEPn27+2Ri4O iEaXY6yUeMMfCH/LKs7HNqDDTnGMUufa9JVNDJZl/66rpHulN6NxBNrZoRCenD5XBuvX YU8FiFEZ0V2Qsx/YgEg/Yz0+JY8S2+Djxgg8dfo1bf6mMoZr4lPwb/svvlJKj0X2p+ho MUBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S0mH8cji; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m42si15490957pje.31.2019.07.24.12.44.28; Wed, 24 Jul 2019 12:44:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S0mH8cji; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390499AbfGXTnL (ORCPT + 99 others); Wed, 24 Jul 2019 15:43:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:45034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390475AbfGXTnE (ORCPT ); Wed, 24 Jul 2019 15:43:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88EEA21873; Wed, 24 Jul 2019 19:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997384; bh=OoLstCwrj4LwdSUJRZg8bJXqPiWJi3vK9rLCWGtd5fA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S0mH8cjiwgvFTyODDIEpEq8VZOonm46WMwXwKIrNtdG3UtPizrPfM0H4oXzf2j/rb zRHGNbBtnY/5WLhBXGjfmnwqoeb4oN/kCuJ3VSaVuNJKDmDx2aj3j4o0/hw9Stq6XK y0LIN4X9jDKcp+7rR7O3/XyN1JVhPJc25n+Ig7Q4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Athira Rajeev , Madhavan Srinivasan , Nicholas Piggin , Michael Ellerman Subject: [PATCH 5.2 391/413] powerpc/powernv/idle: Fix restore of SPRN_LDBAR for POWER9 stop state. Date: Wed, 24 Jul 2019 21:21:22 +0200 Message-Id: <20190724191802.842404671@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Athira Rajeev commit f5a9e488d62360c91c5770bd55a0b40e419a71ce upstream. commit 10d91611f426 ("powerpc/64s: Reimplement book3s idle code in C") reimplemented book3S code to pltform/powernv/idle.c. But when doing so missed to add the per-thread LDBAR update in the core_woken path of the power9_idle_stop(). Patch fixes the same. Fixes: 10d91611f426 ("powerpc/64s: Reimplement book3s idle code in C") Cc: stable@vger.kernel.org # v5.2+ Signed-off-by: Athira Rajeev Signed-off-by: Madhavan Srinivasan Reviewed-by: Nicholas Piggin Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20190702105836.26695-1-maddy@linux.vnet.ibm.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/powernv/idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/platforms/powernv/idle.c +++ b/arch/powerpc/platforms/powernv/idle.c @@ -758,7 +758,6 @@ static unsigned long power9_idle_stop(un mtspr(SPRN_PTCR, sprs.ptcr); mtspr(SPRN_RPR, sprs.rpr); mtspr(SPRN_TSCR, sprs.tscr); - mtspr(SPRN_LDBAR, sprs.ldbar); if (pls >= pnv_first_tb_loss_level) { /* TB loss */ @@ -790,6 +789,7 @@ core_woken: mtspr(SPRN_MMCR0, sprs.mmcr0); mtspr(SPRN_MMCR1, sprs.mmcr1); mtspr(SPRN_MMCR2, sprs.mmcr2); + mtspr(SPRN_LDBAR, sprs.ldbar); mtspr(SPRN_SPRG3, local_paca->sprg_vdso);