Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2744251ybl; Mon, 19 Aug 2019 06:58:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJNpLZDRq441ku90PN4HsQEEYJ6F/0Qp7jtip2fvidrhL2N/eiK2fZMkSZpam8z1v4JCc8 X-Received: by 2002:a65:5786:: with SMTP id b6mr19790005pgr.236.1566223080153; Mon, 19 Aug 2019 06:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566223080; cv=none; d=google.com; s=arc-20160816; b=Upc6a4WzchecOHpHviVZmOoMXcsmi0rkja7KWFzJpNxJq39wyBMtOWbs3kHvUeLzdG cYx3k6cOFE9ADcf91/eJFDl81hwdr4+beQH+A33ckO0QWN6Xz/2tXJNsMdBW0tquRscB uS5M2OkcvnBxxyBjNE+2VwMrDWYk8WYBp67zGI0tot+ojcD2xGF91Y4wHBDwyVFWjqyW ISzifqycdwCcGjvs7q2oPSPEOhoAHuYbjEv0YOTC1uU8d2cKmoY0X/xcNq1QGsdZmAZo qQKlEK3+vkSNtPOf7WkxPT1OdseO8Zdq9ZVDge0ngLCcIW9Kp8uVwtAw/S7AatUo0fmP v8ng== 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 :user-agent:mime-version:in-reply-to:references:cc:to:subject:from :date:dkim-signature; bh=39/k8iI4wKhtmhee8gWVY7ASF3R5OBsTld60CZUT6Sc=; b=FjHdYrsO4Znt+CXBFJIgc7gg83Id1i6NL2Dc8290iA3sUiURsWlH9rkF1UoAe/AW18 XvgRAXcvs1UeIQNLGfQyRkwDWhn515v7X3Nx6giGg8+MmQqqwpmL/SUsphp+cMYnvB8a 4KNfqZnSyvLOQ+sTeWwRulHL4hmyjmaXDAdxlgPRw3fCuPLwC/lMltKUriPpuNc/sw9j gRpThoXg5EpeHPB1NSohSOmKn6DABUfnajhrB2/YV0Z3WswhwxPrbMhx752E9Is80tEr DDHegCAmwiZFZbyLuZ9I7RKEhJUdy24cy05kvsOA34Jzg0NBi16CeM2Wr6SAMHmPLIeA pyHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ezw4XWKp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si10398573pfo.33.2019.08.19.06.57.44; Mon, 19 Aug 2019 06:58:00 -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=@gmail.com header.s=20161025 header.b=ezw4XWKp; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727529AbfHSN4z (ORCPT + 99 others); Mon, 19 Aug 2019 09:56:55 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36465 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfHSN4z (ORCPT ); Mon, 19 Aug 2019 09:56:55 -0400 Received: by mail-pg1-f195.google.com with SMTP id l21so1280714pgm.3 for ; Mon, 19 Aug 2019 06:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=39/k8iI4wKhtmhee8gWVY7ASF3R5OBsTld60CZUT6Sc=; b=ezw4XWKp+t4ah2r4cQe34oQjbF1z9O+w4gszDJ8HrBYxpZq65brA39qI2LiFXF1rAw dUH5COYyDWypNDZ6f025q/2G/wxcAf+BZ/NPv3uZpFGjsE0ZX+oaUXaH8yDwBg71WBRn fl0Ui1qFS4zPuQhRptEo6Kpe3hcPH2ECmDr3f4vcYQtM3XUag7BFFs8bGBaUurFb7uyS w9m3nVVSXDuSJt/8tOYFEBaLWMgzYljvOYKDLuor9AIThqxpQc4yiXzz7A0gJYUULo3X YSyibsUagjr+DHCHinTG1Aqla6OqDPI1E/ydiqgCqL7/kUYfkYQ+n3ZPNxAO1rSVbMqB 67VA== 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:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=39/k8iI4wKhtmhee8gWVY7ASF3R5OBsTld60CZUT6Sc=; b=pbltTqZtBHSHM+/Kb/e29ejE4Rdjxah73I60bzSZB3rZ+SSm4Diyi4bYfyk6+5IzOh 0iPBHdxvaRr3idwetfsHcpvG+XgkS/Y+wbISK7TTnxnsocGSsAF1DVd0w9UroUQAxETz uj0VTjuFqfLPJlCjLU0c0MKxLcFGb57KlnNJD/EtX+sKXXkF8F5rHJ1Q/gPr/zjMh4mq el/wDBctCxkBYe1nXBrY1aMckuNwXnUW0gsvdlzPbtp/2gmsdc61lKOjGUoNYr9Ign4K 6Qcw/bkd4Ui58xu0vM2wRLNqOxpYlu+qvBRGG6qkwTMM/rQ1txAfzDbpDeYbmQF5mD0r j+FQ== X-Gm-Message-State: APjAAAWiYVn0qWdZDZCCaPvZ3nhKhTRqT2P7bheeSiWtLUlhkOkGF8Md xPbJrck8TJKwqiqdKt7JabE= X-Received: by 2002:a63:b904:: with SMTP id z4mr19572193pge.388.1566223014873; Mon, 19 Aug 2019 06:56:54 -0700 (PDT) Received: from localhost (193-116-95-121.tpgi.com.au. [193.116.95.121]) by smtp.gmail.com with ESMTPSA id v18sm16628116pgl.87.2019.08.19.06.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 06:56:54 -0700 (PDT) Date: Mon, 19 Aug 2019 23:56:43 +1000 From: Nicholas Piggin Subject: Re: [PATCH v4 1/2] powerpc/time: Only set CONFIG_ARCH_HAS_SCALED_CPUTIME on PPC64 To: Christophe Leroy Cc: Benjamin Herrenschmidt , Frederic Weisbecker , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Paul Mackerras , Segher Boessenkool References: <20180607114304.327c4ab5@roar.ozlabs.ibm.com> <26969bb5-c01b-0674-5773-027f1851bd44@c-s.fr> In-Reply-To: <26969bb5-c01b-0674-5773-027f1851bd44@c-s.fr> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1566222563.zuxi8x5ryi.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 Christophe Leroy's on August 14, 2019 4:31 pm: > Hi Nick, >=20 >=20 > Le 07/06/2018 =C3=A0 03:43, Nicholas Piggin a =C3=A9crit=C2=A0: >> On Wed, 6 Jun 2018 14:21:08 +0000 (UTC) >> Christophe Leroy wrote: >>=20 >>> scaled cputime is only meaningfull when the processor has >>> SPURR and/or PURR, which means only on PPC64. >>> >=20 > [...] >=20 >>=20 >> I wonder if we could make this depend on PPC_PSERIES or even >> PPC_SPLPAR as well? (That would be for a later patch) >=20 > Can we go further on this ? >=20 > Do we know exactly which configuration support scaled cputime, in=20 > extenso have SPRN_SPURR and/or SPRN_PURR ? >=20 > Ref https://github.com/linuxppc/issues/issues/171 Unfortunately I don't know enough about the timing stuff and who uses it. SPURR is available on all configurations (guest, bare metal), so it could account scaled time there too. I guess better just leave it for now. Thanks, Nick =