Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1595153rdb; Wed, 31 Jan 2024 03:38:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKstuBjbAoAGhn1ySWAfyy4zsogrYwkQZTsoiYc1vjG9x7WsF2YIJsivKJjRPOWRQTr7Jq X-Received: by 2002:a05:6102:2422:b0:46b:489b:2266 with SMTP id l2-20020a056102242200b0046b489b2266mr774868vsi.23.1706701099306; Wed, 31 Jan 2024 03:38:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706701099; cv=pass; d=google.com; s=arc-20160816; b=ydsVwrifOyvmT1+7iM1NZLKvSjY0IuXCAnZ6Q2pSY/bb2m7v3jPcBoSNqOwUMw2CmL WyX24o4U8JUUQtPAkHFnTTCq0QSqysL7JX/KCfcxkDq7MDAl2Cy2yEWSioovy1Z9sI9c hegJNL4tDutOJjhyfRF2mmRR+vdneI4mBdUkTJDwIbAqFO04qvbNM6BxbLfSWkuLSYck KM9mGmXFZxmAkpSEdOjRT9EmEYPsgBrQxlvSjgLtfVBXR4ATn9wIPNJ2hUYU2galtdA5 EQSUyIztdpWhAjiuufEes1v3J6nflx8Xdwmdnt9XD2S8NbJpftudA7Ow62Ozz/zf+oXM g4zA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KLdVKzfkBFpCzA9kGmWBnb9BEFZztaCIrV8XEwSA+Qo=; fh=5oKTf+rQkGpGm15jmgTLWA6+6Sfc0adiMYc/f7v7jds=; b=ljVg08ohABbxUlU2TcQ1O+TakJ5YBMiiAZqzOvo1mfGL8o5gFtY/4BMpV9xNhdKL70 ecOYF5LYWlp+C4vpeRA7ed9Yjy74jLVnFhnU93m52Fpme8AomnYo/WrferLe0ItHxspg u3SLMVQ301T1vL/3FE0eI9s9tKbN3TocUjAoeCOvW8bEE+UwHxXvEUeCkffkrxz5RwtI 9nrwfybW59eD+WWR3EaDrhSj55giq/RM3TPTEaxBZkjp3yFzH7xJ134a9B5QgpgP21CM aF9ssWGEk6Y6oHQjuCJGvuKkypqm24o33XUiAvOvmJSX4whafThUByyWYhHZhHm/uWtv vmAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=GZD+0sX+; arc=pass (i=1 spf=pass spfdomain=mailbox.org dkim=pass dkdomain=mailbox.org dmarc=pass fromdomain=mailbox.org); spf=pass (google.com: domain of linux-kernel+bounces-46365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org X-Forwarded-Encrypted: i=1; AJvYcCUxu7iIcx12eoAWGMZeZ5ghYUxMFbGDsnHbhMDiCVusatCadC5O6ZZYhQdAakKT4qI4zPTiXNuWLfT4cyQD1Er3g7VueoDd119V63kmkA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id iv5-20020ad45ce5000000b006854a852bc5si356959qvb.556.2024.01.31.03.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:38:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46365-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=@mailbox.org header.s=mail20150812 header.b=GZD+0sX+; arc=pass (i=1 spf=pass spfdomain=mailbox.org dkim=pass dkdomain=mailbox.org dmarc=pass fromdomain=mailbox.org); spf=pass (google.com: domain of linux-kernel+bounces-46365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org 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 132131C2597F for ; Wed, 31 Jan 2024 11:38:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2FAE79DBE; Wed, 31 Jan 2024 11:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="GZD+0sX+" Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (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 A5FBE7690F; Wed, 31 Jan 2024 11:37:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701035; cv=none; b=KN5+EX5haVJ2vAgh93QUfOTY2TbUN09PFbstbmIjuHzaWRoav7NXD1eamTMWFu3mVy9Nv9s3PlWgiIyBxh+Yb0i75djNtlR0UJtmNU0TxyLU+x4O348JW7teqO0RSef0pO9cn0xfP7rmCO+alQMz1Fyd+lVUEQwHpfRqZ+8PHH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706701035; c=relaxed/simple; bh=fFbc15+K2Qav/6GvAmryoyTekn55HxMsdu5gO6TwTVI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YGUOhrQKRTLMSA5P9jbO1MXHVHr0vlaQ6HfWxKoDEbkLdvG9Pj3itt8QxrjYmfTDqk5rkjd1pnOOpqk4K/9qlPEZZ6NiXvy/kwfHoas8AZOdkxb0jBpA5uFk7YtQzjiAgj6CSXx6dIICXrMy4Ra0izAMD+Wu7BAxOQTruUTwSvE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=GZD+0sX+; arc=none smtp.client-ip=80.241.56.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4TQ0PW5mzlz9scH; Wed, 31 Jan 2024 12:37:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1706701023; 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=KLdVKzfkBFpCzA9kGmWBnb9BEFZztaCIrV8XEwSA+Qo=; b=GZD+0sX+taUmUdUncO0tuYCboiWCnF1psp0ttA/urd3Xvax9m3UurLIvYHGcE2abNKfpNZ AmovK8eyJDoGFrhrAVMNny6Hk7406JyrW9en2FTk2iu+8/xszo9VroUzfvYOMIAIzKE0Ul tUmpXihCyxfoqBBSerFbeYJB/LyVQ3O0BjMGZRED/aIufEGMHJrqr2nzcfCvtyWEVEVtBB WdAMjS3hMuqgY+s1GmMWrhOVX5q2G1vhE6Ps0sPu9RJubFcE2kA+82BR4EtH+y7tJFv4ZC B7xuQenifHTrkmxh3RABOTZkWIXZntoo9608jIQSJ5MYohVrgZCq0UsoF9ueGQ== Message-ID: <63c2b3d7-083a-4daa-ba40-629b3223a92d@mailbox.org> Date: Wed, 31 Jan 2024 12:36:53 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 0/6] AMD Pstate Fixes And Enhancements To: Perry Yuan , rafael.j.wysocki@intel.com, Mario.Limonciello@amd.com, viresh.kumar@linaro.org, Ray.Huang@amd.com, gautham.shenoy@amd.com, Borislav.Petkov@amd.com Cc: Alexander.Deucher@amd.com, Xinmei.Huang@amd.com, Xiaojian.Du@amd.com, Li.Meng@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: Content-Language: en-US From: Tor Vic In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: wdcjkumju7x6umxw1zdk1a4zoyw6ct5y X-MBO-RS-ID: be195d3a5e1008a8685 X-Spam: Yes On 1/31/24 09:50, Perry Yuan wrote: > The patch series adds some fixes and enhancements to the AMD pstate driver. > It enables CPPC v2 for certain processors in the family 17H, as requested > by TR40 processor users who expect improved performance and lower system > temperature. > > Additionally, it fixes the initialization of nominal_freq for each cpudata > and changes latency and delay values to be read from platform firmware firstly > for more accurate timing. > > A new quirk is also added for legacy processors that lack CPPC capabilities, > which caused the pstate driver to fail loading. > > I would greatly appreciate any feedbacks. > Hi Perry, Which tree or patchset is this based on? It doesn't apply cleanly onto either 6.7 or 6.8. First I had to revert [1], then apply [2] before applying this patchset and finally reapply [1]. I did not apply the "prefcore" patchset which I keep in a separate branch. Is this correct or did I mess up something with my branches? --- [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.8-rc2&id=febab20caebac959fdc3d7520bc52de8b1184455 [2] https://lore.kernel.org/linux-pm/cover.1706255676.git.perry.yuan@amd.com/ Cheers, Tor Vic > Thank you! > > > Perry Yuan (6): > ACPI: CPPC: enable AMD CPPC V2 support for family 17h processors > cpufreq:amd-pstate: fix the nominal freq value set > cpufreq:amd-pstate: initialize nominal_freq of each cpudata > cpufreq:amd-pstate: get pstate transition delay and latency value from > ACPI tables > cppc_acpi: print error message if CPPC is unsupported > cpufreq:amd-pstate: add quirk for the pstate CPPC capabilities missing > > arch/x86/kernel/acpi/cppc.c | 2 +- > drivers/acpi/cppc_acpi.c | 6 +- > drivers/cpufreq/amd-pstate.c | 112 ++++++++++++++++++++++++++++------- > include/linux/amd-pstate.h | 6 ++ > 4 files changed, 102 insertions(+), 24 deletions(-) >