From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.freenet.de (mout.freenet.de [194.97.204.11]) (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 D45D41474CC; Fri, 8 May 2026 20:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.97.204.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778272319; cv=none; b=jsBWZskqV5/e7zI5T1IxMLmHHaouJNsKS2gED1fB4iz1EpSOa+xSUWYZi0tfl8H2deCN5glR4Yi8oko3KxTw/AP+WBwek7mbXwEt3vbfYzRQi0taaW7UVCAlZh/dG/ai5ewmAkYEJmZVGzPo26mvAhWEivjy7uHDyh/0KPrVhjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778272319; c=relaxed/simple; bh=eTlshjf6Y9q6kGQJTyMjrSwlT+rjZOKTUR1luBtF46Y=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=HD3QYWriFmuL3vLwWyhi4sPZr0otLQOvlMrO2PAxCeQyeTSEo69l9t2wNT5CViXcKcearHID2qXkKcUbgKnY/oshEajmdMxvVrlBjk1zUU6e/3zhr0H1FbB8Rj6PVuXU96txUq5fCKT5mZNr04a5dGua8CkYZPgWJ9vpoDITy/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=freenet.de; spf=pass smtp.mailfrom=freenet.de; dkim=pass (2048-bit key) header.d=freenet.de header.i=@freenet.de header.b=NLk75ysP; arc=none smtp.client-ip=194.97.204.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=freenet.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freenet.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freenet.de header.i=@freenet.de header.b="NLk75ysP" Received: from [2001:748:400:3319::4] (helo=sub6.mail.fnrz.de) by mout2.mail.fnrz.de with esmtpa (ID viktor.jaegerskuepper@freenet.de) (port 25) (Exim 4.98.2 #2) id 1wLRrX-0000000APoc-00RT; Fri, 08 May 2026 22:31:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freenet.de; s=mjaymdexmjqk; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: References:Cc:To:From:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=UVaGjweJhz5IuiHGOpGBDKErnVCWMlvhQ6vm6Wgf7eo=; b=NLk75ysPHYMSrSSlabB1qkaGgV os8qZGAu7VHT57rVXG0eOpD5G+pqjXDQYxvGuItuTpfGOKnBBMyDuqtb/SGr0xa1bdbHjvZbzDodv /fgK9bOF0YCgrQn1rhjCEdd5g0P5nwCoOQ253y7hryjVuwMsCaa18a2/yrd4pOBFcv/Rw02d4iGO1 6Wsw4Hd0b2cr/lE12bFd24bkuwoyz4ZVaNHiUh4nnb3BWSXtYMLg7sQ10b2wKs41RN1hLjSnq6gM5 dAr/75j4IUIItiHRRQgr2BhjgmQH42pfZV4k3UgHXaVQcHkeXIIk7QjAKWZghihZBDWYXnU3Zp357 kza6YhZw==; Received: from [2a02:8071:a85:f020:ffe1:3c05:724:94e2] (port=56226 helo=[127.0.0.1]) by sub6.mail.fnrz.de with esmtpsa (ID viktor.jaegerskuepper@freenet.de) (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (port 465) (Exim 4.96 #2) id 1wLRrW-002gzu-2j; Fri, 08 May 2026 22:31:54 +0200 Message-ID: Date: Fri, 8 May 2026 22:32:16 +0200 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [REGRESSION] CPU running at fixed frequency (~1.7 GHz) with kernel 7.1-rc1 From: =?UTF-8?B?VmlrdG9yIErDpGdlcnNrw7xwcGVy?= To: Mario Limonciello Cc: linux-pm@vger.kernel.org, regressions@lists.linux.dev, Huang Rui , Thorsten Leemhuis References: <14a87c99-785c-4b16-bfce-35ecbf053448@freenet.de> <8654f7a1-5023-4874-a90a-5332ba6301b3@freenet.de> <33a693a8-a460-49b7-83cb-1ab7b66ce69e@freenet.de> <46eaec7d-a359-40c8-9c5c-57ecc3506805@leemhuis.info> <8c39f42a-f024-4f05-8d77-a95e7ca1c702@amd.com> <5fa4c763-bf94-4507-8667-f3dcb032b2e0@freenet.de> <399597ae-5186-4276-a585-acb1fd8155ad@amd.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-FN-MUUID: 1778272314A68405FF130FO X-Scan-TS: Fri, 08 May 2026 22:31:54 +0200 Am 08.05.26 um 22:05 schrieb Viktor Jägersküpper: > Am 08.05.26 um 21:56 schrieb Mario Limonciello: >> On 5/8/26 14:53, Viktor Jägersküpper wrote: >>> Am 08.05.26 um 21:01 schrieb Mario Limonciello: >>>> On 5/8/26 13:56, Viktor Jägersküpper wrote: >>>>> Am 08.05.26 um 14:57 schrieb Mario Limonciello: >>>>>> On 5/8/26 04:31, Thorsten Leemhuis wrote: >>>>>>> * there is a whole patch series with fixes for the culprit: >>>>>>> https://lore.kernel.org/all/20260508051748.10484-1-kprateek.nayak@amd.com/ >>>>>>> >>>>>> >>>>>> I don't think any of these will help; but that would a fine surprise if so. >>>>>> >>>>> >>>>> This patch series fixes the bug when I boot with "amd_dynamic_epp=disable" (I built >>>>> the kernel with CONFIG_X86_AMD_PSTATE_DYNAMIC_EPP=y). I didn't bisect to find out >>>>> which patch contains the partial fix, but I can do this if it helps. >>>>> >>>>> If you need further information (acpidump and/or output from amd-pstate tool), just >>>>> tell me. >>>> >>>> When you have dynamic EPP enabled it sets up platform profile.  With that series in place does changing platform profile help? >>> >>> Strangely *changing* the power profile (to any value) seems to enable the expected >>> boosting behaviour, but since I can only do that when the PC has finished booting, >>> the cores still seem to be stuck at ~1.7 GHz until then. Unless I am doing something >>> stupid, that's not how it's supposed to work, I guess? Correction: Only changing the profile to "power-saver" leads to the expected behaviour, switching between "balanced" and "performance" even several times in a row doesn't help. >> >> Can you confirm your tree when you found this? >> 7.1-rc2 + Prateek's series? > > Yes, exactly this. > >> >> I would say that is not expected behavior; but it does hint further at the second bug.  Hopefully I can repro it. >> >>> >>>>> Last week I got this output after applying a debugging patch from you: >>>>>>> On 4/29/26 20:34, Viktor Jägersküpper wrote: >>>>>>>> Am 29.04.26 um 19:14 schrieb Mario Limonciello: >>>>>>>>> >>>>>>>>> OK thanks.  Here is a debugging patch that should show what's happening in the new paths from e30ca6dd5345c5b8ba05f346a8e81105352fe571 so we can confirm root cause on your system. >>>>>>>> >>>>>>>> These are the dmesg lines concerning amd-pstate: >>>>>>>> [    0.845044] amd_pstate: amd_pstate: CPU 0: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.845047] amd_pstate: amd_pstate: CPU 0: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.845059] amd_pstate: amd_pstate: CPU 0: platform_profile_register succeeded >>>>>>>> [    0.845060] amd_pstate: amd_pstate: CPU 0: registering power supply notifier >>>>>>>> [    0.849046] amd_pstate: amd_pstate: CPU 1: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.849047] amd_pstate: amd_pstate: CPU 1: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.849058] amd_pstate: amd_pstate: CPU 1: platform_profile_register succeeded >>>>>>>> [    0.849059] amd_pstate: amd_pstate: CPU 1: registering power supply notifier >>>>>>>> [    0.853043] amd_pstate: amd_pstate: CPU 2: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.853044] amd_pstate: amd_pstate: CPU 2: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.853054] amd_pstate: amd_pstate: CPU 2: platform_profile_register succeeded >>>>>>>> [    0.853054] amd_pstate: amd_pstate: CPU 2: registering power supply notifier >>>>>>>> [    0.857043] amd_pstate: amd_pstate: CPU 3: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.857044] amd_pstate: amd_pstate: CPU 3: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.857054] amd_pstate: amd_pstate: CPU 3: platform_profile_register succeeded >>>>>>>> [    0.857054] amd_pstate: amd_pstate: CPU 3: registering power supply notifier >>>>>>>> [    0.861045] amd_pstate: amd_pstate: CPU 4: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.861046] amd_pstate: amd_pstate: CPU 4: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.861056] amd_pstate: amd_pstate: CPU 4: platform_profile_register succeeded >>>>>>>> [    0.861057] amd_pstate: amd_pstate: CPU 4: registering power supply notifier >>>>>>>> [    0.865044] amd_pstate: amd_pstate: CPU 5: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.865046] amd_pstate: amd_pstate: CPU 5: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.865057] amd_pstate: amd_pstate: CPU 5: platform_profile_register succeeded >>>>>>>> [    0.865058] amd_pstate: amd_pstate: CPU 5: registering power supply notifier >>>>>>>> [    0.870044] amd_pstate: amd_pstate: CPU 6: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.870046] amd_pstate: amd_pstate: CPU 6: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.870058] amd_pstate: amd_pstate: CPU 6: platform_profile_register succeeded >>>>>>>> [    0.870058] amd_pstate: amd_pstate: CPU 6: registering power supply notifier >>>>>>>> [    0.874044] amd_pstate: amd_pstate: CPU 7: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.874045] amd_pstate: amd_pstate: CPU 7: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.874056] amd_pstate: amd_pstate: CPU 7: platform_profile_register succeeded >>>>>>>> [    0.874057] amd_pstate: amd_pstate: CPU 7: registering power supply notifier >>>>>>>> [    0.878045] amd_pstate: amd_pstate: CPU 8: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.878046] amd_pstate: amd_pstate: CPU 8: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.878055] amd_pstate: amd_pstate: CPU 8: platform_profile_register succeeded >>>>>>>> [    0.878056] amd_pstate: amd_pstate: CPU 8: registering power supply notifier >>>>>>>> [    0.882045] amd_pstate: amd_pstate: CPU 9: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.882046] amd_pstate: amd_pstate: CPU 9: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.882055] amd_pstate: amd_pstate: CPU 9: platform_profile_register succeeded >>>>>>>> [    0.882056] amd_pstate: amd_pstate: CPU 9: registering power supply notifier >>>>>>>> [    0.886045] amd_pstate: amd_pstate: CPU 10: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.886046] amd_pstate: amd_pstate: CPU 10: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.886055] amd_pstate: amd_pstate: CPU 10: platform_profile_register succeeded >>>>>>>> [    0.886056] amd_pstate: amd_pstate: CPU 10: registering power supply notifier >>>>>>>> [    0.890045] amd_pstate: amd_pstate: CPU 11: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.890046] amd_pstate: amd_pstate: CPU 11: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.890056] amd_pstate: amd_pstate: CPU 11: platform_profile_register succeeded >>>>>>>> [    0.890056] amd_pstate: amd_pstate: CPU 11: registering power supply notifier >>>>>>>> [    0.894046] amd_pstate: amd_pstate: CPU 12: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.894047] amd_pstate: amd_pstate: CPU 12: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.894056] amd_pstate: amd_pstate: CPU 12: platform_profile_register succeeded >>>>>>>> [    0.894057] amd_pstate: amd_pstate: CPU 12: registering power supply notifier >>>>>>>> [    0.898046] amd_pstate: amd_pstate: CPU 13: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.898047] amd_pstate: amd_pstate: CPU 13: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.898055] amd_pstate: amd_pstate: CPU 13: platform_profile_register succeeded >>>>>>>> [    0.898056] amd_pstate: amd_pstate: CPU 13: registering power supply notifier >>>>>>>> [    0.902046] amd_pstate: amd_pstate: CPU 14: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.902048] amd_pstate: amd_pstate: CPU 14: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.902059] amd_pstate: amd_pstate: CPU 14: platform_profile_register succeeded >>>>>>>> [    0.902059] amd_pstate: amd_pstate: CPU 14: registering power supply notifier >>>>>>>> [    0.906046] amd_pstate: amd_pstate: CPU 15: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.906048] amd_pstate: amd_pstate: CPU 15: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.906060] amd_pstate: amd_pstate: CPU 15: platform_profile_register succeeded >>>>>>>> [    0.906060] amd_pstate: amd_pstate: CPU 15: registering power supply notifier >>>>>>>> [    0.910046] amd_pstate: amd_pstate: CPU 16: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.910048] amd_pstate: amd_pstate: CPU 16: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.910058] amd_pstate: amd_pstate: CPU 16: platform_profile_register succeeded >>>>>>>> [    0.910059] amd_pstate: amd_pstate: CPU 16: registering power supply notifier >>>>>>>> [    0.914047] amd_pstate: amd_pstate: CPU 17: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.914048] amd_pstate: amd_pstate: CPU 17: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.914059] amd_pstate: amd_pstate: CPU 17: platform_profile_register succeeded >>>>>>>> [    0.914060] amd_pstate: amd_pstate: CPU 17: registering power supply notifier >>>>>>>> [    0.918049] amd_pstate: amd_pstate: CPU 18: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.918051] amd_pstate: amd_pstate: CPU 18: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.918081] amd_pstate: amd_pstate: CPU 18: platform_profile_register succeeded >>>>>>>> [    0.918082] amd_pstate: amd_pstate: CPU 18: registering power supply notifier >>>>>>>> [    0.922049] amd_pstate: amd_pstate: CPU 19: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.922051] amd_pstate: amd_pstate: CPU 19: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.922070] amd_pstate: amd_pstate: CPU 19: platform_profile_register succeeded >>>>>>>> [    0.922071] amd_pstate: amd_pstate: CPU 19: registering power supply notifier >>>>>>>> [    0.926049] amd_pstate: amd_pstate: CPU 20: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.926052] amd_pstate: amd_pstate: CPU 20: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.926073] amd_pstate: amd_pstate: CPU 20: platform_profile_register succeeded >>>>>>>> [    0.926074] amd_pstate: amd_pstate: CPU 20: registering power supply notifier >>>>>>>> [    0.930049] amd_pstate: amd_pstate: CPU 21: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.930052] amd_pstate: amd_pstate: CPU 21: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.930071] amd_pstate: amd_pstate: CPU 21: platform_profile_register succeeded >>>>>>>> [    0.930072] amd_pstate: amd_pstate: CPU 21: registering power supply notifier >>>>>>>> [    0.934050] amd_pstate: amd_pstate: CPU 22: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.934052] amd_pstate: amd_pstate: CPU 22: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.934072] amd_pstate: amd_pstate: CPU 22: platform_profile_register succeeded >>>>>>>> [    0.934073] amd_pstate: amd_pstate: CPU 22: registering power supply notifier >>>>>>>> [    0.938050] amd_pstate: amd_pstate: CPU 23: calling amd_pstate_set_dynamic_epp (current_profile=3) >>>>>>>> [    0.938052] amd_pstate: amd_pstate: CPU 23: get_balanced_epp: power_supply_is_system_supplied=1, returning EPP=0x0 (ac=0x0, dc=0x80) >>>>>>>> [    0.938073] amd_pstate: amd_pstate: CPU 23: platform_profile_register succeeded >>>>>>>> [    0.938074] amd_pstate: amd_pstate: CPU 23: registering power supply notifier >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >