Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp758941pxu; Thu, 15 Oct 2020 16:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlUKs8/jac1+cMGp55tEZpPK4KojiQbZ1icd+IJT4SQZ6/xk0RouK/1rm1pkGlmrOwoex0 X-Received: by 2002:a17:907:43c6:: with SMTP id i6mr736365ejs.207.1602803464157; Thu, 15 Oct 2020 16:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602803464; cv=none; d=google.com; s=arc-20160816; b=okfHBZhQvOFH2Q/EL7Ua/PXii2jM2hEx+gRjBXR/20926jV4UEmba+4HAsCVHju/9R fy7WE3Q1HsfbG1cTy/hNuSefCmL7JC2S6PTTqPdzkC8uRUv8VbflfJAYSHlAlI/QnCrO xq68o1gw3Ppl8PMPkw9D8VOwuO4UoxRz00FlDbbJHgnlQ1iGGupdy8fAto1mDeBJ7cgT wp5s0pKsEdrbuNhBL1ZFbw401d89Y8D5HGquVlr4bptz6Cx0S8zaBOedP63VJrec9uR2 hHi0WGxz0tbFQG0Y7OFsxQ2VQTQC3w3l+EY0Va0LgCo+xYSPgDpLjJCgWJhT9zTI4wvw 9O7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=X6f5GmbX5aqLto3aiJD2qJ72mCfqnt5/mJr9HWMuxMY=; b=sPUO4Ma6uX4NecCbnAsI7feS5MwX+o1ZLC1LR0C1rjxDOWuX5D4mQTTnz0hkEwvuoz IHHCIxnBiFPLd1iJAxaY+7I0It4iu83HvDfRFImZ70Pb74E5PgLUbIz4oEogMcacQQOa 4jd0J46/UIoxb2JyXxyc7bxF8b/k55DRFqCHKt4B32zc9E4LRNxY0OT1+SOpOMu9CiVA jEpLxK67SP+ewbhlUhil726q4O9rozoCk9I9TPhH4ZRFrj+bNK+wpIbTBtHzwvneVetV QO6BliUPjzXjijpCTcykX5tJ2nC3HUU5WznY24zKkltroLxmwdix3kfSj2BMZzjjzzfT JZ8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zj12si343171ejb.93.2020.10.15.16.10.41; Thu, 15 Oct 2020 16:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733108AbgJOSeP (ORCPT + 99 others); Thu, 15 Oct 2020 14:34:15 -0400 Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:58385 "EHLO outbound-smtp01.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731154AbgJOSeO (ORCPT ); Thu, 15 Oct 2020 14:34:14 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp01.blacknight.com (Postfix) with ESMTPS id 6E8EEC4A58 for ; Thu, 15 Oct 2020 19:34:12 +0100 (IST) Received: (qmail 19352 invoked from network); 15 Oct 2020 18:34:12 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 15 Oct 2020 18:34:12 -0000 Date: Thu, 15 Oct 2020 19:34:10 +0100 From: Mel Gorman To: "Rafael J. Wysocki" Cc: Takashi Iwai , linux-kernel@vger.kernel.org, Len Brown , Srinivas Pandruvada , rafael@kernel.org, Linux PM Subject: Re: ACPI _CST introduced performance regresions on Haswll Message-ID: <20201015183410.GU3227@techsingularity.net> References: <20201006190322.GL3227@techsingularity.net> <25f31d3e-7a67-935f-93ba-32216a5084e2@intel.com> <20201006211820.GN3227@techsingularity.net> <2382d796-7c2f-665e-9169-5cdc437bf34c@intel.com> <20201008090909.GP3227@techsingularity.net> <20201008173436.GQ3227@techsingularity.net> <20201014223703.GT3227@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201014223703.GT3227@techsingularity.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Yes, it's well hidden but it's there. If the profile is made custom, then > the p-states can be selected and "custom" default enables C6 but not C3 > (there is a note saying that it's not recommended for that CPU). If I > then switch it back to the normal profile, the c-states are not restored > so this is a one-way trip even if you disable the c-state in custom, > reboot, switch back, reboot. Same if the machine is reset to "optimal > default settings". Yey for BIOS developers. > > This means I have a limited number of attempts to do something about > this. 2 machines can no longer reproduce the problem reliably. > Turns out I didn't even have that. On another machine (same model, same cpu, different BIOS that cannot be updated), enabling the C6 state still did not enable it on boot and dmesg complained about CST not being usable. This is weird because one would expect that if CST was unusable that it would be the same as use_acpi == false. This could potentially be if the ACPI tables are unsuitable due to bad bad FFH information for a lower c-state. If _CST is not found or usable, should acpi_state_table.count be reset to go back to the old behaviour? diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 13600c403035..3b84f8631b40 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -1261,6 +1261,7 @@ static bool intel_idle_acpi_cst_extract(void) return true; } + acpi_state_table.count = 0; pr_debug("ACPI _CST not found or not usable\n"); return false; } -- Mel Gorman SUSE Labs