Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp246239rdb; Tue, 5 Dec 2023 04:31:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3wDdaD3eGwqbeXRPo9m9lZ+YFLfZPDN/5sRLtfTr002HRReiTiezA55hQ1zG7JMn2YTFw X-Received: by 2002:a05:6a00:4305:b0:6bd:4ab7:5f69 with SMTP id cb5-20020a056a00430500b006bd4ab75f69mr1273234pfb.12.1701779507712; Tue, 05 Dec 2023 04:31:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701779507; cv=none; d=google.com; s=arc-20160816; b=tevOM/6A+6qBKUr1Iy1yedXTmH351tEurv8s1t0ZMn20U/trqmMH/xe2dnMaVYMOT1 ZxL8q62UZuJPbyRg9F6ISFf2ruXk4cpYu3GNADPrSYQmYXFRTmGyYuEJVVB8/a87MDiH Ftq/gGjLp4FDTzVNt0SjR2A/ygBjtdt9I36OLJVb9Whbc5judLk5m43OI1W6X8DghK2a oeK624QYWKK4UOM/rYz1+C1bCIVVIHKivS6kSHsHsF0FKBqSwe9YD0LI9ZiIW7sx4Hb1 hjGZZoqq/tGKlmRdogNNxSYBhzOO0NDjLo2/2Wyd4iQF5nagJQRBCjOvAw1M2wNVsxZp 28FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=5Jtsi3ErSeuhCU4NXSlvz7oQA0kRHUDIfJQkEIjAKTE=; fh=ETS5o/r4qM4bBSCto4uUh6ibyc0shFPfUk0QO2GeP68=; b=i3KFJ5pRMPWXajLlAwbel2SWk2sle1pBOgy4m8q+frxkFZp1NG60TBTz5hsQ1RGctC z2FF02JQY7Q98gHVvddfbddw/HzDJ1T55yoM1uLeOcoIltzBqF6405/rtaxW/vp8RVf2 IaiUDNSEwN95yMAK6HIbVZ8grOlP8ZN3bAF9OtENenUjXM2jrkxs1VcOPU9NHifzDae6 HHn043ZJk8zdgl3TKj7k+aqlAmsSbtefi65bTnH/Ne87BsS3gZWkkMuW4WwGyj1p13W2 z9RrAPF7sbyXDXt4kdfiV2zHo7ilQv3IOyzIOMWOpmCVaedVZJ7l8ryrKjC69Qeq70xO gjyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id b22-20020a63d816000000b005c658c16acesi5635807pgh.232.2023.12.05.04.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 04:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A69AA822AE65; Tue, 5 Dec 2023 04:31:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345004AbjLEMb0 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 07:31:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbjLEMbZ (ORCPT ); Tue, 5 Dec 2023 07:31:25 -0500 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8058C6 for ; Tue, 5 Dec 2023 04:31:31 -0800 (PST) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-1faf1ba2219so484813fac.0 for ; Tue, 05 Dec 2023 04:31:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701779491; x=1702384291; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d2l658lAAB8UER6owiPHSWpp2VkIA+Dz5LPSsaJSpPQ=; b=pL3z9MDSlRDQ9ltyYEB2tRYwwoQkrt7YiPari6BaGj16UU3tySF3St9yM5i2+IWi8j yRDkhQf7mgjS+J/61l+GGKw7HD1qvRq1rUPT8xVLHV5Et8qBVR4PRZiI+rN0OxmCPIT8 SQnzt6JEBPeYmgF8UIZ+hR5HM4UAhNAFNFeIKA4txRpTDz8gbuEAWTE55r7EetQI4RAY 4HxTBjCYyirG6poZ6FY5lO/KHqiLF1yhFBv/uDnprH9ooZitspjhNtzXh8mP6I9nH+xU T/0pOSXwCm5vSKftiw3CrZ68ZLXhPCn0IE5uofKdcB8Y1JCZZuyqepdA/l+OnUSlxvxy MtUw== X-Gm-Message-State: AOJu0YzkvkLe+m4WCpEZKMFKSCO1jfRyi30Jhtvpcx2cL2/uyLuorTOG Vs/z0xKLU59injOkhNVOfvRYWgO6XGJ6IRXPzfg= X-Received: by 2002:a05:6870:4d09:b0:1fb:19d6:8715 with SMTP id pn9-20020a0568704d0900b001fb19d68715mr10526151oab.4.1701779491026; Tue, 05 Dec 2023 04:31:31 -0800 (PST) MIME-Version: 1.0 References: <53bce76c5c60463eba1372df426a64b9@amazon.co.uk> <1D71D218-5EB6-47DE-A01B-3A66F9F4C74E@infradead.org> <5322CF05-344D-4ADE-B38C-7DCE7F076E0C@infradead.org> In-Reply-To: <5322CF05-344D-4ADE-B38C-7DCE7F076E0C@infradead.org> From: "Rafael J. Wysocki" Date: Tue, 5 Dec 2023 13:31:19 +0100 Message-ID: Subject: Re: [PATCH] x86: intel_epb: Add earlyparam option to keep bias at performance To: David Woodhouse Cc: "Rafael J. Wysocki" , pdurrant@amazon.co.uk, bp@alien8.de, dave.hansen@intel.com, dave.hansen@linux.intel.com, hdegoede@redhat.com, hpa@zytor.com, jalliste@amazon.co.uk, juew@amazon.com, len.brown@intel.com, linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, rafael.j.wysocki@intel.com, tglx@linutronix.de, usama.arif@bytedance.com, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 04:31:42 -0800 (PST) On Tue, Dec 5, 2023 at 1:15 PM David Woodhouse wrote: > > On 5 December 2023 12:12:09 GMT, "Rafael J. Wysocki" wrote: > >On Tue, Dec 5, 2023 at 1:00 PM David Woodhouse wrote: > >> > >> > >> Paul writes: > >> > The problem is that this will take effect even on a kexec and hence it is throttling > >> > a system that set ENERGY_PERF_BIAS_PERFORMANCE prior to the kexec. We use kexec to > >> > live update the host kernel of our systems whilst leaving virtual machines running. > >> > This resetting of the perf bias is having a very detrimental effect on the downtime > >> > of our systems across the live update - about a 7 fold increase. > >> > >> It isn't just about kexec, is it? Even in a clean boot why wouldn't we want to stay in performance mode until the kernel has *finished* booting? > > > >Because it may overheat during that period. > > > >> It's literally adding seconds to the startup time in some cases. > >> > >> And yes, we *particularly* care in the kexec case because guests experience it as excessive steal time. But it ain't great in the general case either, surely? > > > >So IMV it would be perfectly fine to add a command line arg to provide > >the initial value of energy_perf_bias for the ones who know what they > >are doing. > > We don't even care about setting it to an "initial value" during boot. We just want to leave it how it was already set up. Which does not work on some systems. The problem here is that the BIOS cannot be trusted to set the initial value that makes sense for the given platform and that's why the code is the way it is.