Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp182588rdb; Tue, 5 Dec 2023 02:23:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMpBJy3BVkQrNN3P987jKhReUO064bEy7HlwzUKfAKFo2nXgQyxy4DlaGUP6j0HhnhFGDG X-Received: by 2002:a05:6830:208c:b0:6d8:7ea6:2f0c with SMTP id y12-20020a056830208c00b006d87ea62f0cmr4498715otq.63.1701771801494; Tue, 05 Dec 2023 02:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701771801; cv=none; d=google.com; s=arc-20160816; b=VIY4tzAj3ZoZptqsHC1x4B0pXcsCqdY8iaxZfUuD+3u0tI6Kb/s7+4W/C6RPJtAQUD qEmw87kJWjo861FVJ7MuvXEzqLkauOrSh5s7wqVprnXYv6gKZ2giq+qBlZDJjp6zbYwo no3X5OmBw4mNDreMz4Jd0AFLCMprzlngNGiYpDBvajx1dO8Yiku0JHF407cz7HeeWW3P 6c3eUJtT79xKTEdpn/0bQ0KRTNsEK/c2TCiLvJCH3lqcyhs1AiqwPjjuqm2jIGt7vZ1j ec06bBJDYr8poWihfvTC1aiNYTrBrNLZrCBErPepwyZ4a9gsMMS7EcZSeoVVHOTs+Emk 0U4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hO/h+lg9f5XLL35KHLPwlXxDM0DUClE8yQc1o+OW3BU=; fh=qSww++/8oPXUxqTlgYxJ2n/yCCvoIac5Ud0du4QqKuc=; b=j/OxeUx/C2D0FrE4WssDZrO3mNY/rsYgTBK0oZ7ld0IjS514f2N3TRblM/HcFxsVBQ g4p5Js3hVzOYUj6CTNk9QoI9kUKSsK7HY+mMyywIqbqU24BmTlCQCHpcSQ8zesmRt4Td 30cS0VV+dajnrDAX4fWLoLMxztmEGS+wDD5erYSwFZ1XH+PPy06nVucWVbSYENcA3xVV H8kc9Bvx4dumnz0FbAf50sX3CYdsEXQoW6kc+9IS6VvztcciowVfwBHi54nF9ESuc81t Joh5kMRORt/x3rza05VtsBbPSIq4uM5CNtlHB8YWyAoaeNO7Yq/L8sXrWw4XUuD6+WtD DPcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=sukbXIEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p15-20020a63fe0f000000b005c21fbab567si9552953pgh.659.2023.12.05.02.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 02:23:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=sukbXIEH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 21CA3804E2FE; Tue, 5 Dec 2023 02:23:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344956AbjLEKXI (ORCPT + 99 others); Tue, 5 Dec 2023 05:23:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235071AbjLEKXH (ORCPT ); Tue, 5 Dec 2023 05:23:07 -0500 Received: from smtp-fw-9105.amazon.com (smtp-fw-9105.amazon.com [207.171.188.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9430A0 for ; Tue, 5 Dec 2023 02:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1701771794; x=1733307794; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hO/h+lg9f5XLL35KHLPwlXxDM0DUClE8yQc1o+OW3BU=; b=sukbXIEHPqtUdRhyOl1g2mo6PwPtxvYKUMBVTClzp9ivDiEna+/MF03D twk6OswQ+lej1ob4Evo3sBmtpcjmor8TfsuXtAbgM/Knz83JUP/pti62t +mNkidpzn0rO7SM899RdzLycVoAJVCq2z03wxshMQ8d6o0Bm52gwqyL/N 0=; X-IronPort-AV: E=Sophos;i="6.04,251,1695686400"; d="scan'208";a="688983494" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2b-m6i4x-32fb4f1a.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-9105.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 10:23:08 +0000 Received: from smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev (pdx2-ws-svc-p26-lb5-vlan2.pdx.amazon.com [10.39.38.66]) by email-inbound-relay-pdx-2b-m6i4x-32fb4f1a.us-west-2.amazon.com (Postfix) with ESMTPS id 20922C0627; Tue, 5 Dec 2023 10:23:07 +0000 (UTC) Received: from EX19MTAUWA002.ant.amazon.com [10.0.21.151:33822] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.56.167:2525] with esmtp (Farcaster) id a0c1ba25-1530-4c7b-9df8-401cf816d3de; Tue, 5 Dec 2023 10:23:06 +0000 (UTC) X-Farcaster-Flow-ID: a0c1ba25-1530-4c7b-9df8-401cf816d3de Received: from EX19D037UWC004.ant.amazon.com (10.13.139.254) by EX19MTAUWA002.ant.amazon.com (10.250.64.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 5 Dec 2023 10:23:06 +0000 Received: from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by EX19D037UWC004.ant.amazon.com (10.13.139.254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 5 Dec 2023 10:23:06 +0000 Received: from dev-dsk-jalliste-1c-e3349c3e.eu-west-1.amazon.com (10.13.244.142) by mail-relay.amazon.com (10.250.64.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40 via Frontend Transport; Tue, 5 Dec 2023 10:23:03 +0000 From: Jack Allister To: CC: , , , , , , , , , , , , , , , Subject: Re: [PATCH] x86: intel_epb: Add earlyparam option to keep bias at performance Date: Tue, 5 Dec 2023 10:23:02 +0000 Message-ID: <20231205102302.58434-1-jalliste@amazon.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 02:23:20 -0800 (PST) > This is fundamentally a hack. I do not totally agree that this is a hack, the setting of it to the ENERGY_PERF_BIAS_NORMAL is an equivalent workaround which is used for systems where the platform firmware has not configured it as expected for laptops etc. and that is already present. > It sounds like you want the system default to be at > ENERGY_PERF_BIAS_PERFORMANCE. You also mentioned that this was done "on > kernel boot". How did you do that, exactly? Shouldn't that "on kernel > boot" action be reflected over here rather than introducing another > command-line parameter? As Paul has mentioned, we perform live-updates of the host kernel running on servers. This is done while virtual machines are still running so that there is no perceived downtime for the guest/customer. This requires a kexec into the new kernel and there are specific areas such as PCI device enumeration which can take a substantial amount of time in it's current form and can be perceived as downtime while the kernel is loading. > Shouldn't that "on kernel > boot" action be reflected over here rather than introducing another > command-line parameter? A kernel parameter may not be the most elegant solution, would a proposal for a kernel build configuration be a bit more suitable?