Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1835624imm; Sun, 27 May 2018 17:50:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLmZuOciycQ7pjT4zuB6Nbkii3T1wASDUnosHIRD5HW0OAiFULjMhgasLVpqjp9kJcrfRC6 X-Received: by 2002:a63:2f04:: with SMTP id v4-v6mr3610581pgv.33.1527468619023; Sun, 27 May 2018 17:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527468618; cv=none; d=google.com; s=arc-20160816; b=wCQrtEmcfIe4c9joAsmsn3OxxZYCKx/hAMOoauFHVNDA4rmZ3e2DC50D2/4JtTqQU9 b2ZzB4FAoX7rmLGtd1E34R7pNwqmfPN05A4Tf855WpM4St9lh7OFrgf3YaKG/2V9HQ+x MYSE/7HpS3eRaUUIT6F6li9aJeYs5dFHMoZGCun9Wf64FHNIlqlBWFoYapMuCGMn1H9W WxawHmJJXlJ60aMweczKVvbxez+pNW0PLqerujUsc0SeugxH6ZlNcAt7I4uokaz2+Gbs kfIEwCcJzviMEbaHBYZmodWGBi0d+WyJhPVJuoTGcVVWJd7XBpmjSTlxNG6dpQgU2tmk DqMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=4LdO4PcPBqWG6JOSPZ01ii0RuDPDnnkE65K9crZjgqw=; b=dXOtf9DEaL9aD8Pqq4pf3WUq8gQkxvx3s0cula9f/cGamMD//nsYsRhz3eUnhNgJUW /NWh8JDz6MxlGoI38psbHT7PBIIwEwf56t2kuivXNiMpxBg84dnDIEmGFhrelWp5UMO3 GDpKw2rervQVJz4U5SOxf+2WR5kCMHURYb9vepDfO+YQyKL/64mveANZwlXr1qhj3UMX tzfwGEypDrs5UukiaxDOpXHZy34i1ZupNZkL8FRkmnStDho/WA842VHk3Tgnj8SWLyB8 qw11y4A+bYQAE7YmlC1t2EvC8jGLh6VD649dfw1FLYanmomHXyEtI6Q5rdQQRfXdW5T/ SX7g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si29836451plk.61.2018.05.27.17.49.36; Sun, 27 May 2018 17:50:18 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752833AbeE1Aq2 (ORCPT + 99 others); Sun, 27 May 2018 20:46:28 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44598 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752721AbeE1AqZ (ORCPT ); Sun, 27 May 2018 20:46:25 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4S0hrRr043537 for ; Sun, 27 May 2018 20:46:25 -0400 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j86hphnc3-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 27 May 2018 20:46:25 -0400 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 27 May 2018 20:46:24 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sun, 27 May 2018 20:46:21 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4S0kKLH5046772 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 28 May 2018 00:46:20 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A511AC03F; Sun, 27 May 2018 20:47:48 -0400 (EDT) Received: from birb.localdomain (unknown [9.102.51.138]) by b01ledav006.gho.pok.ibm.com (Postfix) with SMTP id AA32CAC048; Sun, 27 May 2018 20:47:45 -0400 (EDT) Received: by birb.localdomain (Postfix, from userid 1000) id 2427E4EC649; Mon, 28 May 2018 10:46:11 +1000 (AEST) From: Stewart Smith To: Michael Ellerman , Akshay Adiga , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: npiggin@gmail.com, ego@linux.vnet.ibm.com, Akshay Adiga Subject: Re: [PATCH] cpuidle/powernv : init all present cpus for deep states In-Reply-To: <87fu2gqa9o.fsf@concordia.ellerman.id.au> References: <1526472134-23757-1-git-send-email-akshay.adiga@linux.vnet.ibm.com> <87fu2gqa9o.fsf@concordia.ellerman.id.au> Date: Mon, 28 May 2018 10:46:11 +1000 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 18052800-0056-0000-0000-000004578E4D X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009093; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000262; SDB=6.01038644; UDB=6.00530875; IPR=6.00817772; MB=3.00021329; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-28 00:46:22 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052800-0057-0000-0000-0000089BB016 Message-Id: <87k1ror4j0.fsf@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-27_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805280008 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael Ellerman writes: > Akshay Adiga writes: > >> Init all present cpus for deep states instead of "all possible" cpus. >> Init fails if the possible cpu is gaurded. Resulting in making only >> non-deep states available for cpuidle/hotplug. > > This is basically the opposite of what we just did for IMC. > > There we switched from present to possible, to make it work when some > CPUs are guarded. > > Which makes me think we need a better way of dealing with guarded CPUs, > because working out which code should use present or possible seems to > be basically trial-and-error. > > I'm not actually sure why Guarded CPUs are showing up as possible but > not present, did we do that on purpose or is it just happening by > accident? My guess is that it flows through from firmware putting the guarded out CPUs in the device tree with a not "okay" status (which, I just realised, we're putting something in 'status' that isn't what the current DeviceTree spec says we should... gah - https://github.com/open-power/skiboot/issues/178 filed for that one). The idea behind that is that you can answer "where did all my CPUs go?" by looking at the device tree rather than having to know the platform specific way of how guards are stored. -- Stewart Smith OPAL Architect, IBM.