Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp891291lqb; Fri, 15 Mar 2024 09:07:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3li2D6ZJ9mF7z02LnooEbrHR/MvtmFFJ4b3g3T7S8p4L0WjonoYtLAEjGFfgXqFOLWfb1jXiAk6zVKiEsGhFmz1ZxWhJyjPQysBg5zQ== X-Google-Smtp-Source: AGHT+IFuEHJ/bIIpVgxg3nOE+xyEGv38pq8+qwx+jqJu/wi/7XHhw1nAwL8h7wRiMsTHg1xa8XMH X-Received: by 2002:a05:6a21:920f:b0:1a3:4a1d:1092 with SMTP id tl15-20020a056a21920f00b001a34a1d1092mr4240270pzb.35.1710518864064; Fri, 15 Mar 2024 09:07:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710518864; cv=pass; d=google.com; s=arc-20160816; b=O3IuirTah6JR1iulSW6TV2dkM9Q2z+/mFfJZRqri3HsyN4IYKuVOWqGI+9ESrueKm8 JsFaGWbxfJgZHnIJZpezH2aXlwYt8/aB6ehvPj/r88c7fbucOWRkthP3WvVlYc9G7hci TNczIof86LnR1BfaC3e78rNZg+/BFwz1WaVzoYaXJ1QEpnfwTmMLW3xK1ADnwHvYwWzs 7MM/OTaDTjKiqhKlEjt6AsCDUDLfqL/RPTWlROMYIS39dn2o85BEAmtEQMSa7uBjsaUw tfP+L0xuQqJpnhbd0baoS+MMA5El69cKnMDODiOVM5h/HG//A68y1Mo3F0etCt9P+Tu3 tKug== 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=/gQPqkmpk7YcIRX+3vXEzzFZadeD6j9GpNAUrT87K2w=; fh=6Xkb/ERHS1k8TxRT7FyH4SaVacihstZiqq+Cg3i87TY=; b=LrMee9ikFkYRJbIj2B1sgZMzQ17JTEjKsb42H0GO3BPQMtSFtV32aeAUYdQH+VU1My reaFUxhxwg5fYOY0mfbLyQP9DWM4qYPdyolxwLWLahadF3KjZLf6rLgFxPqpSq7rsVwN dfjpsX0Q8u6fL/EC2TQ9LKJAWzEljSksjARBF7bwkmDc7aVjriocRwXRpPqeoGkm6d9A 45oX4UHicvgwN3cHIzOqV94j5Hu+jGGADf9ixL4rk6FdeYRwq7WvnVdRNUqSm0RS4F2g FQGnhVdCpQeQMZnCYpi4u+BEa5G79nBkWsJtglk5WD2tOTlbSh4sGMN3RzwIjWQSImAP 6L7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=m455OtMp; 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-104611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001dcafec2295si3889002plf.405.2024.03.15.09.07.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 09:07:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=m455OtMp; 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-104611-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104611-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7A777B22B96 for ; Fri, 15 Mar 2024 16:06:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 196CD44C77; Fri, 15 Mar 2024 16:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=natalenko.name header.i=@natalenko.name header.b="m455OtMp" 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 937203FB32; Fri, 15 Mar 2024 16:06:41 +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=1710518805; cv=none; b=Fm127+o5+mpMA/NKthWi9+0IsEbB8sNUFX1E2BBOvyUygDQoC7YSC6FmnFOFWq+upxbUuuQ5qFPd1FzRiJysHYnP+PuPWAI2PJx1vMwLh0H194hhUUKFkqeHvlueB0FJ2tGub7Lb7jMY52jUgwTKi/dQlIenuj7/0BVWc4ZuBPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710518805; c=relaxed/simple; bh=ItJPQq7JRzxEIAmeaiJNt26yQwr3RBi2ycQsx51xG6o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QMd7neIBahHAFaZMKLKR3R0C7+/CqVk947+rmqp+U5Iu4lyoxSI0xvVDk+B2gTbff22A8J0JpCKyWubBjdcRO7etLqQaZGw8EUywQXHyb7Y5a+5rYpex8fkDNRSAs9FmByKz9renMbEquRJ2TJA6wIMHagFbFLRz7Dzu72RSxmc= 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=m455OtMp; 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 6A527635B049; Fri, 15 Mar 2024 17:06:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1710518793; 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=/gQPqkmpk7YcIRX+3vXEzzFZadeD6j9GpNAUrT87K2w=; b=m455OtMp+a550FiS/k3Pm5B2/T5fuwsx1P9u65sQguqhS2BXAItk95mtLXGfjP0fmWACIr 76Xr1TRO06j1v1nnL4DvMOEbd/UI9xpQwL1GlgIWFBCnBwQgBDejbJktoOnAYPfuxVViNm Wq69Ip7aemt08MSAMDDqXPfK9wri+0A= 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 v5 0/8] AMD Pstate Driver Core Performance Boost Date: Fri, 15 Mar 2024 17:06:22 +0100 Message-ID: <4975219.31r3eYUQgx@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="nextPart4623272.LvFx2qVVIh"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart4623272.LvFx2qVVIh Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Oleksandr Natalenko Subject: Re: [PATCH v5 0/8] AMD Pstate Driver Core Performance Boost Date: Fri, 15 Mar 2024 17:06:22 +0100 Message-ID: <4975219.31r3eYUQgx@natalenko.name> In-Reply-To: References: MIME-Version: 1.0 On p=C3=A1tek 15. b=C5=99ezna 2024 4:38:01, CET Perry Yuan wrote: > 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. > https://lore.kernel.org/lkml/20240208102122.GAZcSrIkbPJfIExdF6@fat_crate.= local/ >=20 >=20 > Perry. >=20 > Changes from v4: > * move MSR_K7_HWCR_CPB_DIS_BIT into msr-index.h > * pick RB flag from Gautham R. Shenoy > * add Cc Oleksandr Natalenko That didn't work =C2=AF\_(=E3=83=84)_/=C2=AF. > * rebase to latest linux-pm/bleeding-edge branch > * rebase the patch set on top of [PATCH v7 0/6] AMD Pstate Fixes And Enh= ancements > * update [PATCH v7 2/6] to use MSR_K7_HWCR_CPB_DIS_BIT=20 >=20 > Changes from v3: > * rebased to linux-pm/bleeding-edge v6.8 > * rename global to amd_pstate_global_params(Oleksandr Natalenko) > * 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 > * 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/ > v4: https://lore.kernel.org/lkml/cover.1710322310.git.perry.yuan@amd.com/ >=20 > *** BLURB HERE *** >=20 > Perry Yuan (8): > cpufreq: acpi: move MSR_K7_HWCR_CPB_DIS_BIT into msr-index.h > 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 ++ > arch/x86/include/asm/msr-index.h | 2 + > drivers/cpufreq/acpi-cpufreq.c | 2 - > drivers/cpufreq/amd-pstate-ut.c | 2 +- > drivers/cpufreq/amd-pstate.c | 157 +++++++++++++++----- > include/linux/amd-pstate.h | 15 +- > 6 files changed, 150 insertions(+), 39 deletions(-) >=20 >=20 =2D-=20 Oleksandr Natalenko (post-factum) --nextPart4623272.LvFx2qVVIh 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/iNcg8M0sFAmX0cf4ACgkQil/iNcg8 M0ugkBAArLlCqziEZ0odyHf+1VpTOwmr29jG39+2AJux0CuyZYWCwx49KZcWFAKB kRvDDvBfjq7ydUFYydBjF6GpX5HG3cezei0rSfWqfRYBisNfcPvRP/Qyllz6V37B szPHsr+eBXYJTTwt+V9hr3PNautne9A0mbnV55ocILF/2FDFTScQeLz8QvrNI1yB 0VuIeFyvd3llpx1+iUXC28y+tSCx4IyG4idPVNw0uQJ2uMKDWa8ptXLb08h8Yw6C xT3BZl26gbgIRyV6yXrC14bbniHvskxzYRkAGknHia9CFjnuZpP2DmMyE0bd8hyg z9rMzaAVclskayoLumEesLlUQAze19f6Q7R0jcR2btq+G5FNyvX3poTJ0p/LD5KL 1OIbCVg0yFtU7whEul7wHRd40zFaH52kjyJjvlcUlG7qQWuSCCn6HwcRc+U5Jgco cjh/dZiV9U99LxUNr2C5qbnt6oE8aSKqQgrc4fe4WVkNxiSXfnU3eC2uWf9zPODH EdC8AHVP+1JYGWX32YLAgBhLkNVPhokBVhjzKbsMiwgqgHi0IsCF4GajtUNvF17O YASnq1/Zn/Nd/NHT7MdHxmiuYQrI+g0LWxxyTd84KxX3FeXM/RIyE+vz5q1bKqJt jrL9d0Ti3tbC7I8LptWfVB/iljdawBuswF3O0tnRwOCqjLybv9c= =D2Q3 -----END PGP SIGNATURE----- --nextPart4623272.LvFx2qVVIh--