Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp607809img; Wed, 20 Mar 2019 07:18:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSN0md/0SG7T31mzskuZhszshwFi3UWjSsVc+3qD42ccVExt3ktOplV9ifVsIZm7sMWVrq X-Received: by 2002:a65:624a:: with SMTP id q10mr29152312pgv.377.1553091497221; Wed, 20 Mar 2019 07:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553091497; cv=none; d=google.com; s=arc-20160816; b=rI78rUBcHZh584SZ5fX+cil7qRBsIyAAy9PwNBacjzt2lCrHz8ys0dmo0jItfu3nv3 ZpTltfHplNVqzxejwz+2FiG9GCg31Y8QH3U4g1e5g5l+klBqd9PHk0SoUE5Z8Py08sBV EZ3bR5qhf1sinMoAdPvvZQGgxAghCNGn038KOX0Ep9r+BTxu/Su5bzQR3qZSSeR4UCGb i3/LYLqIlucs25M7v5o6HxDEpsbyo+8i3brcE15ZcQIxf45l0PQ3gwnUwMciATZT716P jx5VVBlOhcWjWeVeGScox5z6oaHMUTLPk6QTb+ownIRyFZa72azhABa/Eolt9G8c6/+r uq/w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FfAaSTYin+6UOMQ5Y+BUWcYl2QVYh3FZ/P2iyfaml2c=; b=CvJx6qimoh9E8OWMQzSuQ0gg3+eOsUrFAlGCGiW1MIcNtHKUnGXs4QxRRddjTE2HXP G7XVxBJywy4Y8Uo61XGBsmRSyXdIYNtVGcSoOTx3QBBSebOVdZaJMX22J8s259KuSXkE b5Dk5WOBZ/puatLPogkAujXah5Mr6BrQZ7SpuWIabb0gCh4CdcUXCONSTOVcIThFes8K cm7g5l5ntim0vPZaXCWSbDVmnddJc1qrnuWHRFyDtX/duVmma+M6GrpSSCVdHnTHtzFu HvdbOiTIg5bfxsQ4M7DMsBBeo3QbcQbW3I5TM+LhYfQGShhwZ6weCV4Pq9zGNAit9b0y j2pg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18si1774287pgb.91.2019.03.20.07.18.02; Wed, 20 Mar 2019 07:18:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727159AbfCTORD (ORCPT + 99 others); Wed, 20 Mar 2019 10:17:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:59682 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726644AbfCTORD (ORCPT ); Wed, 20 Mar 2019 10:17:03 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EC334ACE8; Wed, 20 Mar 2019 14:17:00 +0000 (UTC) From: Thomas Renninger To: "Rafael J. Wysocki" Cc: Len Brown , Hannes Reinecke , Linux PM , LKML , Borislav Petkov , Simon Schricker , Srinivas Pandruvada , Len Brown Subject: Re: [PATCH] [RESEND] Do not modify perf bias performance setting by default at boot Date: Wed, 20 Mar 2019 15:17:00 +0100 Message-ID: <2885751.XIsKOnZRY2@house> In-Reply-To: References: <6369897.qxlu8PgE1t@house> <3100343.nkNWlhakcz@house> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rafael, I top post the general things and answer in only a few sentences embedded in context below: I very much honour your work and your neutral opinions and reasoning and I always have. This patch is a resend and while I try to come up with alternative hacks, there still is no solution, not even a suggestion. I sent the patch 3 years ago: https://lkml.org/lkml/2016/2/26/675 And I found this when doing performance analysis with Mel (Gorman). This time Hannes (Reinicke) stumbled over it, while he was working on performance tests on NVE over fabrics. We need this fixed and I am going to repush this into our kernel(s) now. On Monday, March 18, 2019 11:57:08 PM CET Rafael J. Wysocki wrote: > On Mon, Mar 18, 2019 at 2:22 PM Thomas Renninger wrote: > > On Monday, March 18, 2019 12:40:46 PM CET Rafael J. Wysocki wrote: > > > On Mon, Mar 18, 2019 at 12:15 PM Thomas Renninger wrote: > > ... ... > > > > > It may not match every setup perfectly, but at least it > > > > > is consistent. Why exactly is it worse than whatever the BIOS has > > > > > set? > > > > > > > > Because there may be BIOS settings for the CPU which justify > > > > initialization > > > > of the Perf BIAS value by BIOS. > > > > > > Well, the EPB is there for users to set it via the OS. The BIOS > > > setting is not guaranteed to work for all users anyway. > > > > Who says that? > > I do. And this is the reason you do not see much patches from myself anymore over the last years. It's certainly not your fault. I had quite some discussions with Len about specification and BIOS breakages. Especially in the CPU powersave area, idle states and cpufreq drivers, Intel was doing it differently all time long the last 5 years. Ignoring their own specifications, ignoring possible BIOS settings and changing kernel and userspace interfaces all the time. And now I have the discussion again... While it is related to this patch, it gets off topic. I guess there should be a more general thread on lkml: "Do not change APIs every second day" Up to userspace, but also to BIOS. > And then we can get back to the initial setting discussion. Let's stick to this topic in this thread. There is no reason to not find a proper fix for this meanwhile. Overriding the BIOS setting should IMO only take place: - if lifetime of CPU could be affected as you mentioned. But in this case the affected CPUs should be matched - if we expect that there are BIOSes which "want to set this value to 6, but may have forgotten to do so", as mentioned in the original patch from Len. BIOSes where this is the case should get a quirk to set it to 6. Still, ideally the whole overriding and the message should vanish IMO. Last time I sent this patch your answer was: "I need to talk to Len about that," https://lkml.org/lkml/2016/3/4/371 But as this is x86 kernel core code, I guess this should be discussed and pushed by the general x86 maintainers anyway. Sigh. Thomas