Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1777457lql; Wed, 13 Mar 2024 07:59:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUu7pFYMWXwc9HMgvLokD0Ku5k5yx1Aabz1Sbu2xybZCHuD4QZ/pdrgC07PBnm+KzEDvBe27F5zwxSlaOrWxg/o76Dnv2ii8lwjbjKDCQ== X-Google-Smtp-Source: AGHT+IFLm7ghdbq6ToQtslB1FHNFwpakXvSV9alk9vP/yexjrxsa40IwGmS4KkLJYwJ7H4DOjnTM X-Received: by 2002:a05:651c:10c4:b0:2d3:ed14:7f3b with SMTP id l4-20020a05651c10c400b002d3ed147f3bmr2201054ljn.51.1710341965652; Wed, 13 Mar 2024 07:59:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710341965; cv=pass; d=google.com; s=arc-20160816; b=llt2DOnpN+NefevPiXp3E/OBuG4OIxHxwerhVQUuhmO7YsTLRX1Gggl/dcw+CvfPEn TbwbmFrYv97OCs469KMxrBoeVJOvQqQHNpNCBfAC/U82H4C6V1ylMORCuqTgUn6/vwPX ScQSqzQFXxip/i+KFSa33xRFzE6/ZhjfJQaIK/2OAXOWQjB3AnAf17Kt+VKWAI4TIErG fQ5srRjkj9qh6RAzJ12npduFo21AmK68ppw4GmpE1uAghR4gboRcgeDrv5IoRU1WD71o kl1+eingViarAkn4axnO/41dlCRPtLZaeaq7tEpDTOA4Il8Ta0QjysTE66FRcZRVDgtn OBeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8iwfkBYf3yJiDaRw2lxcFE7exRFkrA4jEAyCuZ8fP2A=; fh=6Xkb/ERHS1k8TxRT7FyH4SaVacihstZiqq+Cg3i87TY=; b=pLsAP/JlEeH1y6u+2lB38vcDFyx/Fhul+4lc3IfoiNn19yii58sQKwi2FacKKFXFvG nJj/VrkawTFQsnlDAiLSOUZeAmqOod29e6dldRprGP5tDiLaJEJ6LTx/yaihI6gwY6WH mFQXrqDGPOnevjtki4Roe3vb8VtgmFll7H/N03ieCWAWcC2URJuZBfglu9TEdzkzXI6Z FwBKsRsSttlebW7u6YYyBAH+vZ2UBEvabe7ON4mXaPLCm2j/qOYp+vuxSSqqOKFINMSW DIhx712Kh28NepvxqfSgMA7gsK91PwGrSO1RQabkFNG+marBpmUjjYO9Jzyls9PWozAZ A/Tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=rnTAli7W; arc=pass (i=1 spf=pass spfdomain=natalenko.name dkim=pass dkdomain=natalenko.name dmarc=pass fromdomain=natalenko.name); spf=pass (google.com: domain of linux-kernel+bounces-101651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y10-20020a056402270a00b00567ab9d2bf1si4549652edd.651.2024.03.13.07.59.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 07:59:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=rnTAli7W; arc=pass (i=1 spf=pass spfdomain=natalenko.name dkim=pass dkdomain=natalenko.name dmarc=pass fromdomain=natalenko.name); spf=pass (google.com: domain of linux-kernel+bounces-101651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 57C731F22F40 for ; Wed, 13 Mar 2024 14:59:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2234D446B4; Wed, 13 Mar 2024 14:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=natalenko.name header.i=@natalenko.name header.b="rnTAli7W" Received: from prime.voidband.net (prime.voidband.net [199.247.17.104]) (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 22C126119; Wed, 13 Mar 2024 14:59:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.247.17.104 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710341958; cv=none; b=ET6gCExg72jOWTEfo3nTLPj5wMYLuMRKFaqpSrb04hcsV5ciPk9a2T3nnB2ioU8GipnR9fzXKqV1qp6JalyOCba3aIEXdUv38fPZiY8DlmEHeN682tYGAvQtvI2eUGgiIGGzIxY/zpOPfJtAHIHPTkhQsZ0HG4PyfK1KGRqMTbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710341958; c=relaxed/simple; bh=Oq5ehj0jgtkb/PT5kiTlAvv5HCm7BnWN2D7UlVXc1po=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Q6weYxyNvYONH1oodBFEQuBkHnFXr0aILnyrE/3vM5znYyZog2kXq3YC1pZVf1nIhd9SohEBFOBfLwTinXMSBkC8L1rj0/406o6IpFTNsrHq6hbbdmGeFi9TgjkKoqdIM4juRTrc8MkZ1jvQmXPtcwsHelZSXUheDd4HAlacQaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=natalenko.name; spf=pass smtp.mailfrom=natalenko.name; dkim=pass (1024-bit key) header.d=natalenko.name header.i=@natalenko.name header.b=rnTAli7W; arc=none smtp.client-ip=199.247.17.104 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=natalenko.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=natalenko.name Received: from spock.localnet (unknown [94.142.239.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by prime.voidband.net (Postfix) with ESMTPSA id 1A917635B049; Wed, 13 Mar 2024 15:49:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1710341350; 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: in-reply-to:in-reply-to:references:references; bh=8iwfkBYf3yJiDaRw2lxcFE7exRFkrA4jEAyCuZ8fP2A=; b=rnTAli7WrlY35E48+oZ1f4A/GguMmiD+kSf16h6wUZdwtv1ztTKx+DS7Tb9Ebr2542K5IU nm+65NJ863HCfnC73H0poAoptFskFChwk+deECjDvOd7qqgz2tSBDb0C496TeOff9coT2N /27yHnC8EokEQCvNOUx7tJ/dG6RmZJI= From: Oleksandr Natalenko To: 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, Perry Yuan 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 Subject: Re: [PATCH v4 0/7] AMD Pstate Driver Core Performance Boost Date: Wed, 13 Mar 2024 15:48:58 +0100 Message-ID: <2721197.mvXUDI8C0e@natalenko.name> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12395831.O9o76ZdvQC"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart12395831.O9o76ZdvQC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Oleksandr Natalenko Subject: Re: [PATCH v4 0/7] AMD Pstate Driver Core Performance Boost Date: Wed, 13 Mar 2024 15:48:58 +0100 Message-ID: <2721197.mvXUDI8C0e@natalenko.name> In-Reply-To: References: MIME-Version: 1.0 On st=C5=99eda 13. b=C5=99ezna 2024 11:04:37, CET Perry Yuan wrote: >=20 > Hi all, > The patchset series add core performance boost feature for AMD pstate > driver including passisve ,guide and active mode support. >=20 > User can change core frequency boost control with a new sysfs entry: >=20 > "/sys/devices/system/cpu/amd_pstate/cpb_boost" >=20 > The legancy boost interface has been removed due to the function > conflict with new cpb_boost which can support all modes. >=20 > 1). enable core boost: > $ sudo bash -c "echo 0 > /sys/devices/system/cpu/amd_pstate/cpb_boost" > $ lscpu -ae > CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE MAXMHZ MINMHZ MHZ > 0 0 0 0 0:0:0:0 yes 4201.0000 400.0000 2983.578 > 1 0 0 1 1:1:1:0 yes 4201.0000 400.0000 2983.578 > 2 0 0 2 2:2:2:0 yes 4201.0000 400.0000 2583.855 > 3 0 0 3 3:3:3:0 yes 4201.0000 400.0000 2983.578 > 4 0 0 4 4:4:4:0 yes 4201.0000 400.0000 2983.578 >=20 > 2). disabble core boost: > $ sudo bash -c "echo 1 > /sys/devices/system/cpu/amd_pstate/cpb_boost" > $ lscpu -ae > 0 0 0 0 0:0:0:0 yes 5759.0000 400.0000 2983.578 > 1 0 0 1 1:1:1:0 yes 5759.0000 400.0000 2983.578 > 2 0 0 2 2:2:2:0 yes 5759.0000 400.0000 2983.578 > 3 0 0 3 3:3:3:0 yes 5759.0000 400.0000 2983.578 > 4 0 0 4 4:4:4:0 yes 5759.0000 400.0000 2983.578 >=20 >=20 > The patches have been tested with the AMD 7950X processor and many users > would like to get core boost control enabled for power saving. >=20 > If you would like to test this patchset, it needs to apply the patchset > based on below one latest version patchset.=20 > https://lore.kernel.org/lkml/20240208102122.GAZcSrIkbPJfIExdF6@fat_crate.= local/ >=20 >=20 > Perry. >=20 >=20 > Changes from v3: > * rebased to linux-pm/bleeding-edge v6.8 > * rename global to amd_pstate_global_params(Oleksandr Natalenko) Would appreciate being in Cc: then. > * remove comments for boot_supported in amd_pstate.h > * fix the compiler warning for amd-pstate-ut.ko > * use for_each_online_cpu in cpb_boost_store which fix the null pointer > error during testing=20 > * fix the max frequency value to be KHz when cpb boost disabled(Gautham = R. Shenoy) >=20 > Changes from v2: > * move global struct to amd-pstate.h > * fix the amd-pstate-ut with new cpb control interface >=20 > Changes from v1: > * drop suspend/resume fix patch 6/7 because of the fix should be in > another fix series instead of CPB feature > * move the set_boost remove patch to the last(Mario) > * Fix commit info with "Closes:" (Mario) > * simplified global.cpb_supported initialization(Mario) > * Add guide mode support for CPB control > * Fixed some Doc typos and add guide mode info to Doc as well. >=20 > v1: https://lore.kernel.org/all/cover.1706255676.git.perry.yuan@amd.com/ > v2: https://lore.kernel.org/lkml/cover.1707047943.git.perry.yuan@amd.com/ > v3: https://lore.kernel.org/lkml/cover.1707297581.git.perry.yuan@amd.com/ >=20 > Perry Yuan (7): > cpufreq: amd-pstate: initialize new core precision boost state > cpufreq: amd-pstate: implement cpb_boost sysfs entry for boost control > cpufreq: amd-pstate: fix max_perf calculation for amd_get_max_freq() > cpufreq: amd-pstate: fix the MSR highest perf will be reset issue > while cpb boost off > Documentation: cpufreq: amd-pstate: introduce the new cpu boost > control method > cpufreq: amd-pstate: remove legacy set_boost callback for passive mode > cpufreq: amd-pstate-ut: support new cpb boost control interface >=20 > Documentation/admin-guide/pm/amd-pstate.rst | 11 ++ > drivers/cpufreq/amd-pstate-ut.c | 2 +- > drivers/cpufreq/amd-pstate.c | 157 +++++++++++++++----- > include/linux/amd-pstate.h | 16 +- > 4 files changed, 149 insertions(+), 37 deletions(-) >=20 >=20 =2D-=20 Oleksandr Natalenko (post-factum) --nextPart12395831.O9o76ZdvQC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEZUOOw5ESFLHZZtOKil/iNcg8M0sFAmXxvNoACgkQil/iNcg8 M0vVbBAAjuIVAWC5tJ9yDAmxbzbCwI/34/400d1rFGcEP2vrRUA51G5yCK7YWOGz 3N2SXE4B24N+9upXbIkyBjHQSZu402PdalldNasFl/nFsAQrdJxvoBKLvx3WTC78 NHkFCZMaRy9wMrB8JyA63hjoh30BYDcxHHfL/1axm24Q0HEvc9Ab5cnAE6i3SH9x 0d2Jey91hs4lwYm/5VP/VLlaV03DiXjuLZpO0lpi0SoDu3i2gLsazSijFz/NEJqB LTjEd7hmpK0L8PiZRAiMv1G5HdAP/X5Qujd7+dY/Hmf1WUrypr42hnQQajfaFMvS ctfMbUtRZ9PQd85nZXhmljPxKyONAdX+6Qi4oU+skWO5YHuuKrJqofLln27OEDPK uY590jH+maYu5I0dKnqaIPt5H+4T5J2G8h0QB/imKYIebmRqFBHYXOHtC3ygUt7z MbAgIerB47Jcjawri2GN1OclbSUOQ3jj64RR7thODrlfwphUAsSKIIbiNHGpPIob 1UU3n6ZWQr4sO2K2vq4kl3ZThQHPWHf59v6m2Au3jaxQMkEGE2tjOLaujwDRAP4j yEHZRfg2+Vg3in+Vq57mJV3ZgivGdCIE+vjAA1d0r+/q+7FXAIPte0M7ZCO5Rd8d bUckmx8FTuKMfXPtA5GybH5UlVohqtXuNBDjQjOztKtvYWOO0Kw= =f6Gb -----END PGP SIGNATURE----- --nextPart12395831.O9o76ZdvQC--