Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6584416rdb; Tue, 2 Jan 2024 06:47:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuH+N8HY4kVvPui/uYQdcz4nyQPNBWvV9C12uXDmZgg1bs1C8X+RdxYYRx2vXaf90COz+C X-Received: by 2002:a05:6214:1d01:b0:67f:44c6:4691 with SMTP id e1-20020a0562141d0100b0067f44c64691mr25395630qvd.48.1704206820881; Tue, 02 Jan 2024 06:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704206820; cv=none; d=google.com; s=arc-20160816; b=uDtUufFXDzYmn3PzysRlz6NoacbpoJzryaEBqn14AGyHECDSgKSQKt4yaoUbgonh4J e7G8MzFPwRa6fUNJ3EHEVrG8gfSYEDGuEVUNWFlCd+C3d9Ayoch0jBYLb76XQpuL36c+ Y99VI8JVRlWPYOP8VOfmjhjMqq7OY54pdgTuo6GMgOd1cGt3+cJOCP2w4hppO5oRT3ph NCcUES3slw8DqaBcZBHKUF77xdQDLtrohWDqK+zpVJqZ+htBC/K53e0Vdoq4nPjebSmb 78/UkPql456OJYeg9cz2056wZL2c2OMJ/vNJZu1nfKnopJpntxnOK25dEzw4ct9W27vB /EsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=1xOgkD9JBJe8uies5tEljqRtMC1wo5efArySvQ9q9+o=; fh=qSww++/8oPXUxqTlgYxJ2n/yCCvoIac5Ud0du4QqKuc=; b=CzUpx9iOiwr2o8xsLC7c8e4AKAdogDGxUPWZV9Zy65MTQ3ZsWvvPEjOvJhMx3VHnuh d0HurAxOM3KiheK/sfM7+lGG3PDbts/Tg9Drbp5v0EVLsBquP7Meh4jqhvw3fDhaMrWj 6PQMTed6Iszva+SAUwiO6Nb3r5T39VtrwIVEanRvKy1Xs91ObDIJLwVhkqnJTJWB8yHE wSMRCQTjfh+9smnULKa2YjGpd6DhQXCTO6yeAfUkVd+9E0rmSz4p+ZMQY7M1XDoQZMS0 GTZvqmfmj1SsNtK1TJrLnUHHFmQymQwIQbpBFmKiO9lYYRNaJvQpWbR+zK6VVUVbdlpZ CrQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="Ppg+h/jS"; spf=pass (google.com: domain of linux-kernel+bounces-14503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h8-20020a0cf448000000b0067f96e452casi24920669qvm.195.2024.01.02.06.47.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 06:47:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="Ppg+h/jS"; spf=pass (google.com: domain of linux-kernel+bounces-14503-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9FE561C222A6 for ; Tue, 2 Jan 2024 14:47:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27DCE12E5F; Tue, 2 Jan 2024 14:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="Ppg+h/jS" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F400112E55 for ; Tue, 2 Jan 2024 14:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.co.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1704206813; x=1735742813; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1xOgkD9JBJe8uies5tEljqRtMC1wo5efArySvQ9q9+o=; b=Ppg+h/jSD272CSoSSe59ulD+5bgmcU/lFGujudTnrxdCYIrpcJTTDYWe aKbuqJyGcGL2jFjcbdhSoH2zcnCPaYWhilHtSWkUljNph63zjV73Z09mN 1G40yxj/qeMtng1DmcbDwVb1pfa9aScZ6a0QBDPn8p9KPslG2kDVhL1V2 0=; X-IronPort-AV: E=Sophos;i="6.04,325,1695686400"; d="scan'208";a="263877950" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2b-m6i4x-26a610d2.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 14:46:51 +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-26a610d2.us-west-2.amazon.com (Postfix) with ESMTPS id 3365640D65; Tue, 2 Jan 2024 14:46:50 +0000 (UTC) Received: from EX19MTAUWA002.ant.amazon.com [10.0.21.151:38664] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.31.59:2525] with esmtp (Farcaster) id 5351803e-5eff-4784-a7ab-0c4a56c9f593; Tue, 2 Jan 2024 14:46:49 +0000 (UTC) X-Farcaster-Flow-ID: 5351803e-5eff-4784-a7ab-0c4a56c9f593 Received: from EX19D037UWC001.ant.amazon.com (10.13.139.197) 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, 2 Jan 2024 14:46:49 +0000 Received: from EX19MTAUWA001.ant.amazon.com (10.250.64.204) by EX19D037UWC001.ant.amazon.com (10.13.139.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 2 Jan 2024 14:46:49 +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, 2 Jan 2024 14:46:47 +0000 From: Jack Allister To: CC: , , , , , , , , , , , , , , , Subject: Re: [PATCH v4] x86: intel_epb: Add earlyparam option to keep bias at performance Date: Tue, 2 Jan 2024 14:46:46 +0000 Message-ID: <20240102144646.44355-1-jalliste@amazon.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain > Jack, I'd really appreciate if you could please slow down. I'm sorry about this, I'm still extremely unfamiliar with the open-sourcing conventions/ workflow when working with mailing lists & the upstreaming to the Linux kernel. I have taken this feedback & have started to look through the maintainer tips & docs for guidance. Also sorry for the delay in actual response here too, general work responsibilities & the holiday period has had an affect here. Before I go ahead with posting up a revision 5 with all of your queries/suggestions I do have a few questions I'd just like to clarify. > We could, for instance just support this pair: > intel_epb=auto (default, will hack performance=>normal) > intel_epb=preserve (leave it alone) With the suggestion above you mentioned implementing this, if this was to be implemented do you think keeping it `intel_epb_restore_default` as a bool is still worth it? e.g: ``` static __init int intel_epb_no_override_setup(char *str) { if (!str) return 0; if (!strcmp(str, "preserve")) intel_epb_no_override = true; ``` Or do you think it would be worth actually removing `intel_epb_no_override` and creating a module variable `intel_epb_restore_default` which is an enum of the performance values. Doing so would then allow for expansability in the future which you had already alluded to e.g setting to other values such as EPB_INDEX_BALANCE_POWERSAVE/PERFORMANCE.