Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp84951imw; Tue, 12 Jul 2022 15:08:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEuAt0+g8Dq2YRx7fz5YKeK35TK5Ui2MQD6E1PJuzvJLUOz5RffLgSlqomjQ4CVRUoPNs/ X-Received: by 2002:a17:902:e746:b0:16c:3ffd:61fb with SMTP id p6-20020a170902e74600b0016c3ffd61fbmr343728plf.123.1657663733278; Tue, 12 Jul 2022 15:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657663733; cv=none; d=google.com; s=arc-20160816; b=BFJAVVin1/clITgwZAcR9wZUCXV8jWXZZeLW7joXGsrANoIXN84zqzzt6F/wJswZOs SespflsgX3aj+S1+sp4jRtJ3mWTO/vvNAMNIxICgUIGayz5LOgEXqJ3o1G5crOr3gA56 VIYOBlv05+hYCfLa5LEXkyFwMaZ5cPcsnhx6hE+aYmrePYtEZ+o5/uUUXyuB0xPPdz5v cuMCGyS0bd4+I0IYvpaYgsed3ddNEdUxKxOm0JqoAQOyQrbblF2353p1s0CSfpMk7XK7 Xb51IfmnHfafbLyrgQnUTP16PdaNMj91y9xgZwN7PyTE4AZGOf7JE8wL4UgnWfXox9te nEQg== 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=aPbSpp/ipo3YS/Xfdmee6X2Ppr9vPQwAusfYqW6orH0=; b=Lk5snpcW/GNHBi629ivGmm2qc/oljr+OCEOyVat60dZTYPPJ78il3jYYgYbicSxwE0 hBqYkOi5kQIajlTEHCJJuRt1dJI/JKM0285PnBInQHM2yhe8YqiHzCvm9h+TMaseAlzb 9H5JCWdR6glLaFZLpB4YyouPSmCNtZIrL0lLccYOBNOZKKzEZ2AvwTN9JnPxpqiI3hL+ EL2xwZAOdLD9YlpMMOAf82wSFjKol09dI+sHRXdyQQRbDHlz1cZ1XPjKWtBfn5Sjk3ZE G4ZdEq9D7merFR7iP2+bVeKbbSAoXyV65qFswqzUVGxJUp8FKgBIO86aotiAtiTjZ0sk zDig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=XgYe4cf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a17090ac90500b001f06d85e1d6si231664pjt.164.2022.07.12.15.08.41; Tue, 12 Jul 2022 15:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=XgYe4cf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbiGLVzV (ORCPT + 99 others); Tue, 12 Jul 2022 17:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbiGLVzO (ORCPT ); Tue, 12 Jul 2022 17:55:14 -0400 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A69550709 for ; Tue, 12 Jul 2022 14:55:12 -0700 (PDT) Received: from spock.localnet (unknown [83.148.33.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vulcan.natalenko.name (Postfix) with ESMTPSA id 02324F92620; Tue, 12 Jul 2022 23:55:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1657662907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aPbSpp/ipo3YS/Xfdmee6X2Ppr9vPQwAusfYqW6orH0=; b=XgYe4cf5/Gr/94EthsKyiSMm2wJUNbiqaTErGeVBrcqrRkMkLw6ahb9oj4lIbvkjMIAH3/ WSDyYFOXFd0kviH4zCkHxvfro2EYXM5SdkRSAtpV0N05MzecuJAV5NwTjYXa80JcVkZ1fu 6pyT/gCgg+xy3s741UMT75/EVc4Xogs= From: Oleksandr Natalenko To: "Yuan, Perry" , "linux-kernel@vger.kernel.org" , "Huang, Ray" , "Limonciello, Mario" Cc: "Rafael J. Wysocki" , Sasha Levin , "x86@kernel.org" , "H. Peter Anvin" , Greg Kroah-Hartman Subject: Re: [REGRESSION] amd-pstate doesn't work since v5.18.11 Date: Tue, 12 Jul 2022 23:55:05 +0200 Message-ID: <6967031.z0QvQKZeIK@natalenko.name> In-Reply-To: <4c9e3a4c-40b2-3ce9-da88-ad507769658b@amd.com> References: <3559249.JlDtxWtqDm@natalenko.name> <2414945.NDPYyZybsh@natalenko.name> <4c9e3a4c-40b2-3ce9-da88-ad507769658b@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hello. On =C3=BAter=C3=BD 12. =C4=8Dervence 2022 22:07:15 CEST Limonciello, Mario = wrote: > See if this helps out: >=20 > diff --git a/arch/x86/kernel/acpi/cppc.c b/arch/x86/kernel/acpi/cppc.c > index 734b96454896..88a81e6b9228 100644 > --- a/arch/x86/kernel/acpi/cppc.c > +++ b/arch/x86/kernel/acpi/cppc.c > @@ -16,6 +16,13 @@ bool cpc_supported_by_cpu(void) > switch (boot_cpu_data.x86_vendor) { > case X86_VENDOR_AMD: > case X86_VENDOR_HYGON: > + if (boot_cpu_data.x86 =3D=3D 0x19 && > + ((boot_cpu_data.x86_model >=3D 0x00 &&=20 > boot_cpu_data.x86_model <=3D 0x0f) || > + (boot_cpu_data.x86_model >=3D 0x20 &&=20 > boot_cpu_data.x86_model <=3D 0x2f))) > + return true; > + else if (boot_cpu_data.x86 =3D=3D 0x17 && > + boot_cpu_data.x86_model >=3D 0x70 &&=20 > boot_cpu_data.x86_model <=3D 0x7f) > + return true; > return boot_cpu_has(X86_FEATURE_CPPC); > } > return false; >=20 > If that works and no one has a better idea how to do it for these=20 > systems I'll send out a proper proper patch tomorrow. This patch (also mirrored here [1]) works for me, thanks. [1] https://codeberg.org/pf-kernel/linux/commit/cc5c57b8c349c85b81b44cf5fe2= d2577b947a7de =2D-=20 Oleksandr Natalenko (post-factum)