Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1104776lqj; Mon, 3 Jun 2024 10:11:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6Azrc3XqJwh4FW5yOF2fsqVHHFz9BEpJC0A+p7/Gbld1CNNvzWX5VpPFLNIj6LoAiK/xCip1dKIOZw5Pk3InpAklWdKmW7IsohQYhTg== X-Google-Smtp-Source: AGHT+IHwOPZl4/XUg4ds2cvNaMMAT6u0UVFnaMrPpxhwkGCvPW5NfpLUOOyNTC4MUV7B/NaJBHvA X-Received: by 2002:a05:6a20:1002:b0:1b1:ed95:6192 with SMTP id adf61e73a8af0-1b26f28ed75mr9561601637.52.1717434688352; Mon, 03 Jun 2024 10:11:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717434688; cv=pass; d=google.com; s=arc-20160816; b=teUQHCnirkBYG2MIf0rADvEePvwJTYLzSIRFdPLx94zlcQzyd/1RYL8iO1/PEeCtBp ybWyWyBBKD4UOKFN6NvSkYVHeMl87tW9vSH9Sk6JRpmLmNUcauLbktbDnuQAKL345kfK 3tnYGcw4Q6Ybdk+Y0wbKQRpr68BccQbisZGgvgefhLjnns8v0Z4uSozH+VoRj+HBJlMF 0FTzej18oDKfg+aKSiifxLJbl1M/6im6oinvh9JXF6zr3HmyRS6Fr6YKRPEOm7VAgmYX EgYX9FRSSQQXr1p0x5QYWQQuGzozlAAHnHSreVR857icftKC0Lw9+pzvigqDuswtsZ6x PzLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=NjLDT7cs+dCU+pDcUFffYxuBdRTC85LI9u06hQm0TKk=; fh=xrkL5PxAQXhFicTamXjfKvqI05HKtutp2rAf13IMZFg=; b=kvUDzN0tDNCPsQ4qQzLxdCkDe1EhMBTr4FrVoncUj71J6tVypvuVY1vNcWat6jTXwF MaMQ/Nu/bIzLo1teq587ZII8h5+HqJN5wk4Y9KjhLtwXWvCTALMwacSMiMbYvyGUIZsv qYY9SRtIZvE9aJWJZvrtYHoidqMvVr29zriQU69J6mPRwn5BcEN/hZsNA6d4A0yOwgpb oOHnNs4vFOriT9k2J4sWpEKcc/HxwbbnegJzzb7ZZjxaHkSmtt3MhH8Y12GxFFgh6JBr 48fMatdIYSc68GFIDdMbgWfMH7GO6k+uZatkAf82+/HbEEi9avoHHDsVGyoaGgKzPVqT qFOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fOk2zbJY; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-199492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c7e9bc6e92si4805556a12.728.2024.06.03.10.11.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 10:11:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fOk2zbJY; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-199492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 46B36B216ED for ; Mon, 3 Jun 2024 17:11:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1DDF136E1C; Mon, 3 Jun 2024 17:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fOk2zbJY" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 3017E12EBCA; Mon, 3 Jun 2024 17:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717434678; cv=none; b=epLSe1HCoCppaF/im8DZSkgLn3zSwuaJgviQPEzCEmX/E6ejS1SEhkw18SDNidyAQyao8bu5ztfwmSDwc7u7d84Dg+09BVueBYjWJ8igXKFrPao21wZ8RXgOJtpFOW4WV0kD+h6yjbvgXyWmFAsfkdYc6N4/iwyVML+Rm8TMSyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717434678; c=relaxed/simple; bh=NjLDT7cs+dCU+pDcUFffYxuBdRTC85LI9u06hQm0TKk=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=KU23ABoJGxYZ8Cd8NYcKOYQ2KvvG+tkBTTYrRjBTlWx9DXhFtBCkKWPxTFhdG0V4R3Dgzf4cQUxjH1XzmPmSj2Mw2vYlWqBNTBkh4nhc68gTStKcXnaV/FgR40QZJtH982/8qQMaKQ/qUJe4Qll7u1xOHOF3LxK25x+9PLj6r/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fOk2zbJY; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717434676; x=1748970676; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=NjLDT7cs+dCU+pDcUFffYxuBdRTC85LI9u06hQm0TKk=; b=fOk2zbJYRxDEBSs+xHr4aavFJ0Ipd2GUXsCNxApaHu/hDVjeqxt8ldfS jVOISHlT6JzHks6B9MOayCtrPmFimrLegSnRcZYpHL0QBPjKKmE2o95KQ +Li66xC7oBXqT8jd/ekd34xcDgvfy7kUtOTCVCyjxrYlD1EJcybgzNJ2B 8w/qStwh9uDaT5gD6XUc80W36Pvxje3/Bwu3vHOX2QDPdaK19cPrvU3Cd KffnMeKjVNyAvidzEPOoWWw9LNqBMTf5eTrnv0+zv8hazhl4oRsku5n+A qKzeup7gYO4qVAZs90NMfeilC6iNCJm4GITr4bQczmNLGy+kwJIzplhIK g==; X-CSE-ConnectionGUID: icVCUYzTRQ69QXxGG0F9eA== X-CSE-MsgGUID: TG/8zJD5SOO/ODdTbk6iHQ== X-IronPort-AV: E=McAfee;i="6600,9927,11092"; a="31470633" X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="31470633" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 10:11:06 -0700 X-CSE-ConnectionGUID: EnnN1zeSQouECDC9nrVcig== X-CSE-MsgGUID: MDItepmySAyA8KC7ZsTgsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,212,1712646000"; d="scan'208";a="41881074" Received: from spandruv-desk.jf.intel.com ([10.54.75.19]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 10:11:02 -0700 Message-ID: Subject: Re: [PATCH v1 2/6] cpufreq: intel_pstate: Do not update global.turbo_disabled after initialization From: srinivas pandruvada To: Xi Ruoyao , "Rafael J. Wysocki" , Linux PM Cc: LKML Date: Mon, 03 Jun 2024 10:11:02 -0700 In-Reply-To: <0324bc3a88654855719cd48a5ed69a34eea31037.camel@xry111.site> References: <13494237.uLZWGnKmhe@kreacher> <8366982.T7Z3S40VBb@kreacher> <6d5ee74605bd9574baa5ed111cb54e959414437a.camel@linux.intel.com> <6ebadacd8aaa307a5766cdb1b4d4a5c69acd87ac.camel@xry111.site> <30a30c5107a47a2cc3fd39306728f70dd649d7fe.camel@linux.intel.com> <29d69252dcdc398f147c9139a8666d09e7bd831d.camel@linux.intel.com> <0324bc3a88654855719cd48a5ed69a34eea31037.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2024-06-03 at 21:12 +0800, Xi Ruoyao wrote: > On Sun, 2024-06-02 at 16:11 -0700, srinivas pandruvada wrote: >=20 > /* snip */ >=20 > > What is the output of: > > grep . /sys/devices/system/cpu/intel_pstate/* > >=20 > > Also=C2=A0 > > rdmsr 0x771 > > rdmsr 0x774 > >=20 > >=20 > > Try these three patches. Don't worry about the commit description > > for > > this issue. >=20 > Unfortunately they still do not fix the issue for me. >=20 > The outputs of grep and rdmsr commands are initially: >=20 > /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0 > /sys/devices/system/cpu/intel_pstate/max_perf_pct:100 > /sys/devices/system/cpu/intel_pstate/min_perf_pct:9 > /sys/devices/system/cpu/intel_pstate/no_turbo:1 > /sys/devices/system/cpu/intel_pstate/num_pstates:41 > /sys/devices/system/cpu/intel_pstate/status:active > /sys/devices/system/cpu/intel_pstate/turbo_pct:33 > rdmsr 0x771: 10d1f2c > rdmsr 0x774: 1f04 >=20 > But it then changes to: >=20 > /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost:0 > /sys/devices/system/cpu/intel_pstate/max_perf_pct:100 > /sys/devices/system/cpu/intel_pstate/min_perf_pct:9 > /sys/devices/system/cpu/intel_pstate/no_turbo:1 > /sys/devices/system/cpu/intel_pstate/num_pstates:41 > /sys/devices/system/cpu/intel_pstate/status:active > /sys/devices/system/cpu/intel_pstate/turbo_pct:33 > rdmsr 0x771: 10c1f2c > rdmsr 0x774: 1f04 >=20 > It seems only the output of rdmsr 0x771 has changed.=C2=A0 And if I read > the > SDM correctly it's a "Most_Efficient_Performance" change. That is fine. We don't have any notifications either via ACPI or via HWP interrupt. I think it was working by chance before this change as by the cpufreq core is trying to set policy, the turbo is enabled by the firmware. What is this laptop make and model? Thanks, Srinivas >=20 > > Please send me full dmesg after you see the issue. >=20 > Attached.=C2=A0=20 >=20