Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1348601ybh; Sun, 19 Jul 2020 17:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbow7kSqX5qSDxSp7tun/csEwvxN/uwBZydz7KvRH+lMy+42eS7XYVCl7Io/3OUs+ViWdM X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr19730405edb.232.1595203410612; Sun, 19 Jul 2020 17:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595203410; cv=none; d=google.com; s=arc-20160816; b=AhjgUdHIfsI9P1HS91UCD/iBGggydZiHsudz0l+OXGExIkqdg6nyXpi5YQu8yHslu2 FbCyP1/GGhAE4gVpDC0OxuKPafnzyUCgThkUdPyjoVW63293PQHJR/SrSH4TY7puQxNp O2bb3RLb42kRI/gDqCn9IpKU/JtdsJ9FIre7MwmnCQAVvLWrGHYjt9kFxnrhF9bTVaU5 TxKt9u7vzzF2AuuLYDrTNk/OWVIyWI6mbnirtMh/v9TIR3XVTHvVNwfCyThHe+UinF8L H9gsu2iE74LcHLATstbie3kYy3vebhVGBCARQrzFXUEtwoyeru4Jjoc9BVHlxuC7Vwy8 t1AQ== 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:message-id :mime-version:in-reply-to:references:to:subject:from:date :dkim-signature; bh=Qp/O47B+/PTH5X4r1WOkvdClsD8CXSU1831njywVtAo=; b=ikSY4uWozWfXdxgFQ7856KRCjPyrTRJaUZ2HiIKgHtUtHhzz6/h1E6HRZ1JV6Pz2C1 GMedCBfAr0ZQ5GUCRUkBjQI2HCiUmxkr+9K9oEK3ovpJGkAztsSc0uqPZT5oZkp5/Mhm M2PQ7h1cSunQ1lKa6R0VVuiDcSnvGAo6ziNlGzRfaTcDAlAS6AAJYX6Vcpm6CZPoIbt0 KM+l+qvUCnK3YS/2vmgWTTcfDlVkAFKq+9IUy2M6rhNaWEaxXdKvtU3zmDa1micaN1CL raO66u6TGWHepsDKXwLaNCRsY9FuaUoMDe4V2z62p/yrQTbgW/GkDOI5qvcDbPPw1HjH ZLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OaExb+xE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by17si11024998edb.369.2020.07.19.17.03.07; Sun, 19 Jul 2020 17:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OaExb+xE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726963AbgGTABY (ORCPT + 99 others); Sun, 19 Jul 2020 20:01:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgGTABY (ORCPT ); Sun, 19 Jul 2020 20:01:24 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 227BEC0619D2 for ; Sun, 19 Jul 2020 17:01:24 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o13so9475239pgf.0 for ; Sun, 19 Jul 2020 17:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:references:in-reply-to:mime-version:message-id :content-transfer-encoding; bh=Qp/O47B+/PTH5X4r1WOkvdClsD8CXSU1831njywVtAo=; b=OaExb+xEqxuCJzRAkbSTE7/vjzqXUxq0pS5W7iEGg3sQSK7pKf41wbBSVIuJDpORU0 5FlO6/kh4s4F57PcL+uXBcfem6TRvn6uYQelzWm8U/ppLVZPQXH8e4ZcSxiaGro+a1eZ TZX4IrosFE9de4fHS1QpS4Wb5yZW4hmz+AzHAPmmXz2vpnpmOqP6JdFboPpwngh+XHEE vwQ0CQFfoxP0kpYEmERctaoqftHj6ymkgTfHbAwiN+A2OFQEZ/i7o9SBgN4lTtjNJUKE uuNBY9bCjd9IvAh+L8Ugd89CCS2JdzBywV/ENymGAV2itR5dCxel1E3OSiqdnsFEVbIa 6OyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=Qp/O47B+/PTH5X4r1WOkvdClsD8CXSU1831njywVtAo=; b=j1fEbto6e1sHo9Rezatd94Tk1bf6aud98ClQVKg47YdFL0PKyvypUExHUp2DwTyOiU kDR3DEUW9qvA6161ST25fRxJ7gFeQH8l4q+7MWiyh2yYKXxRbtk2r/zSaLkJTYJwlT13 +lI0IYOO8eOCohN+ZIaxx5/ItelSByGSYfG3M2dPcYuFXQisPRn5aFbudpY+s/uBaOgV RcOT3X5pIkwQNCDQ2ES7TZY8QXZi+jR8Drr+gZuzjlyfmvDLXyYm+O0bP0xmKXOAcZfZ HkLlr6NNIZXZYRpcBUa40MsgjqHJy2qD7xYtEg7n8bxTnP6XvdHp9MdYxWH30D67su74 J5CQ== X-Gm-Message-State: AOAM531xD1TXEoTE+rh0hFu51M1ScWQARBekcQm+L1GG54Os8RQmRQ7C IszAcFEoqGaUzvvUi0TYE0c= X-Received: by 2002:a05:6a00:2294:: with SMTP id f20mr17462713pfe.126.1595203283725; Sun, 19 Jul 2020 17:01:23 -0700 (PDT) Received: from localhost (110-174-173-27.tpgi.com.au. [110.174.173.27]) by smtp.gmail.com with ESMTPSA id y6sm9807212pji.2.2020.07.19.17.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 17:01:23 -0700 (PDT) Date: Mon, 20 Jul 2020 10:01:17 +1000 From: Nicholas Piggin Subject: Re: [PATCH v3 3/3] powerpc/powernv/idle: Exclude mfspr on HID1,4,5 on P9 and above To: benh@kernel.crashing.org, ego@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mikey@neuling.org, mpe@ellerman.id.au, paulus@samba.org, pratik.r.sampat@gmail.com, Pratik Rajesh Sampat , svaidy@linux.ibm.com References: <20200717185306.60607-1-psampat@linux.ibm.com> <20200717185306.60607-4-psampat@linux.ibm.com> In-Reply-To: <20200717185306.60607-4-psampat@linux.ibm.com> MIME-Version: 1.0 Message-Id: <1595203265.suaijimybo.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Excerpts from Pratik Rajesh Sampat's message of July 18, 2020 4:53 am: > POWER9 onwards the support for the registers HID1, HID4, HID5 has been > receded. > Although mfspr on the above registers worked in Power9, In Power10 > simulator is unrecognized. Moving their assignment under the > check for machines lower than Power9 >=20 > Signed-off-by: Pratik Rajesh Sampat > Reviewed-by: Gautham R. Shenoy Reviewed-by: Nicholas Piggin > --- > arch/powerpc/platforms/powernv/idle.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platfor= ms/powernv/idle.c > index d439e11af101..d24d6671f3e8 100644 > --- a/arch/powerpc/platforms/powernv/idle.c > +++ b/arch/powerpc/platforms/powernv/idle.c > @@ -73,9 +73,6 @@ static int pnv_save_sprs_for_deep_states(void) > */ > uint64_t lpcr_val =3D mfspr(SPRN_LPCR); > uint64_t hid0_val =3D mfspr(SPRN_HID0); > - uint64_t hid1_val =3D mfspr(SPRN_HID1); > - uint64_t hid4_val =3D mfspr(SPRN_HID4); > - uint64_t hid5_val =3D mfspr(SPRN_HID5); > uint64_t hmeer_val =3D mfspr(SPRN_HMEER); > uint64_t msr_val =3D MSR_IDLE; > uint64_t psscr_val =3D pnv_deepest_stop_psscr_val; > @@ -117,6 +114,9 @@ static int pnv_save_sprs_for_deep_states(void) > =20 > /* Only p8 needs to set extra HID regiters */ > if (!pvr_version_is(PVR_POWER9)) { > + uint64_t hid1_val =3D mfspr(SPRN_HID1); > + uint64_t hid4_val =3D mfspr(SPRN_HID4); > + uint64_t hid5_val =3D mfspr(SPRN_HID5); > =20 > rc =3D opal_slw_set_reg(pir, SPRN_HID1, hid1_val); > if (rc !=3D 0) > --=20 > 2.25.4 >=20 >=20