From patchwork Fri May 26 08:29:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaidyanathan Srinivasan X-Patchwork-Id: 767325 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wYzqV2F4mz9s86 for ; Fri, 26 May 2017 18:31:02 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wYzqV1TWszDqWJ for ; Fri, 26 May 2017 18:31:02 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wYzpn0f8VzDqTl for ; Fri, 26 May 2017 18:30:24 +1000 (AEST) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v4Q8SXuP024424 for ; Fri, 26 May 2017 04:30:15 -0400 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0a-001b2d01.pphosted.com with ESMTP id 2apbxrtcgk-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 26 May 2017 04:30:15 -0400 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 May 2017 18:30:12 +1000 Received: from d23relay06.au.ibm.com (202.81.31.225) by e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 26 May 2017 18:30:10 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v4Q8U2YD66715868 for ; Fri, 26 May 2017 18:30:10 +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 v4Q8TbGn020162 for ; Fri, 26 May 2017 18:29:37 +1000 Received: from drishya.in.ibm.com (drishya.in.ibm.com [9.124.35.218]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id v4Q8TVoA019148; Fri, 26 May 2017 18:29:36 +1000 From: Vaidyanathan Srinivasan To: Stewart Smith Date: Fri, 26 May 2017 13:59:00 +0530 X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170526082900.11772-1-svaidy@linux.vnet.ibm.com> References: <20170526082900.11772-1-svaidy@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 17052608-0048-0000-0000-00000233EC09 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17052608-0049-0000-0000-000047E2B691 Message-Id: <20170526082900.11772-5-svaidy@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-05-26_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705260155 Subject: [Skiboot] [PATCH v8 4/4] occ: Skip setting cores to nominal frequency in P9 X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: skiboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" From: Shilpasri G Bhat In P9, once OCC is up, it is supposed to setup the cores to nominal frequency. So skip this step in OPAL. Signed-off-by: Shilpasri G Bhat --- hw/occ.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/occ.c b/hw/occ.c index 8c6bb56..a2c794a 100644 --- a/hw/occ.c +++ b/hw/occ.c @@ -907,11 +907,14 @@ void occ_pstates_init(void) return; } - /* Setup host based pstates and set nominal frequency */ - for_each_chip(chip) { - for_each_available_core_in_chip(c, chip->id) { - cpu_pstates_prepare_core(chip, c, pstate_nom); - } + /* + * Setup host based pstates and set nominal frequency only in + * P8. + */ + if (proc_gen == proc_gen_p8) { + for_each_chip(chip) + for_each_available_core_in_chip(c, chip->id) + cpu_pstates_prepare_core(chip, c, pstate_nom); } /* Add opal_poller to poll OCC throttle status of each chip */