Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp303945rdh; Wed, 7 Feb 2024 05:28:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIyDehKr+rj4F6nS2q7Vqu9wQwVH2BjBEX/jitvOBEI7PIVQWpRyfFZGH8Pt/rU9CLSc48 X-Received: by 2002:a2e:b903:0:b0:2d0:b3c4:5113 with SMTP id b3-20020a2eb903000000b002d0b3c45113mr3620340ljb.11.1707312502800; Wed, 07 Feb 2024 05:28:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707312502; cv=pass; d=google.com; s=arc-20160816; b=Issmr3OJIp61oGdO0BMWywSFyVcYlegOY1S1c3thmoGN8AA5YlKG7Xj9hBKKCqfLDT usHJ4CHEFfFk1m45Y9B0haOFiUSuKuISjGaimUjuIvX4V8XItKcMAwj/HAiNCXVjCLKV 3awGV0rosTl7SanQgxu4FxfOyarHw7+klKc2DwpuIADuKBmpvCTolefyQHbV68IIvo+H xeeBewSu37Rn6/+wuWHe/Dvs1J8/s9j0g7GzreNajiR3T418rJprAbJ6ajFaN+0w4BgI WTcLCBLeu2mmwL7A+K3Os43qkMLQTFFvjscCqHHnxqvDDZ3/CicdJ25T03/LLNCBfNSM t/rg== 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=K4cMXeY/Kh7m8qMA8TBfsP3a0MdHiYMkQr/AQMRNVpA=; fh=dLiuVo4AU0Y5E5MHZ3NU3bi3IZzI96bYFpelMpmoF1Y=; b=HNAaJGlsDy2oZmK4V/SPOvYlcZMEbf7+D4i4vN6d4w+O2A/dFVSLT4AtKH5h1tQDn8 AqxvY9QOTjLi6DorAg/QL1+WB0ibpIPbtnzhSLPEmH4+7+xEUX6lkHOwLkjg2mhYKqDa RGYmBHPl3KFSxojNScs7FkhQZeTLNjgSEvNVY/YslmHJ9rp8MpliJhCKtWMkTN3d0aid zbjux+nFGyTarCB+ihKpTzS6iHWlMQ2mDqJrk97KDKtMnaHIegia7f/7ULMELMr2DH2N bsQ90LV/MmeaHP38CG0/9u+wm1Tw2WcZm6qOWkUkCFkKDK08W8rH5GxfcPDEEWgUwvYi q4Og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=EjiwfJou; 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-56549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name X-Forwarded-Encrypted: i=2; AJvYcCW725k39cemNFlvU5sfqz8DulYMzbW9ty5jjP+2wun4rKm02aXzntOrWybjlY3gHoOkxPIdow7N2GcqLwnkiXP4eUvzmWLZNx/msLDkFg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e7-20020a50ec87000000b0056053103589si865046edr.359.2024.02.07.05.28.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 05:28:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56549-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=EjiwfJou; 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-56549-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56549-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 51EDF1F2782B for ; Wed, 7 Feb 2024 13:28:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBFCE76C93; Wed, 7 Feb 2024 13:28:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=natalenko.name header.i=@natalenko.name header.b="EjiwfJou" 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 7118076C8F; Wed, 7 Feb 2024 13:28:04 +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=1707312487; cv=none; b=VVkChoEtlu0Kb/WBnI28cg4RSqEMoseLIBYD1ZID93jy7MpvV9l3MB61YWymVjfd0A/CMKD63kjZdv8QR3+PIVTrLMGJv46EVXIhEliG9qrBepZxjxYGU78RU/ZJReSCrHPds7jabCQeEYTTYELgENtF5hCbczOuxl/757kRweo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707312487; c=relaxed/simple; bh=DvdlY6gEln8xLlp7txNw2XR2dlB/OCHAqkbx0Qr7n9A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cXyrgoa+1174WXGMGuYtwGP2n1hIzSdrrnAZJaqdrrK+ibR4FEx01uolhxY2wtI9hdCLK9H/PRF3ymPGySb0QFHYtEffF2N/SaZ4SAPfZNQll5uhdsal5np0aM5y65hWaL2xTcFcS6ob/wbcwD1fkbDD4zVBZsp9jJAdhByaIVg= 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=EjiwfJou; 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 48FE7635B069; Wed, 7 Feb 2024 14:28:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1707312481; 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=K4cMXeY/Kh7m8qMA8TBfsP3a0MdHiYMkQr/AQMRNVpA=; b=EjiwfJoum02Qy0tJOcE/zvuxNlEuH3MCUUUsGZt7xOOhreazfWYBjStmccUkYesQv8KRbA Fah4p3Eiwgi5zoLsajklSmCLRmMpvh6c4Cug0fxTgdxyOKdawUhCGjgNHJS2bPQGAMkNaf /wT4d1U7zDdzds1euRJnSieNB9R7L9I= From: Oleksandr Natalenko To: "rafael.j.wysocki@intel.com" , "Limonciello, Mario" , "viresh.kumar@linaro.org" , "Huang, Ray" , "Shenoy, Gautham Ranjal" , "Petkov, Borislav" , "Yuan, Perry" Cc: "Deucher, Alexander" , "Huang, Shimmer" , "Du, Xiaojian" , "Meng, Li (Jassmine)" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 6/7] cpufreq: amd-pstate: remove legacy set_boost callback for passive mode Date: Wed, 07 Feb 2024 14:27:29 +0100 Message-ID: <5065083.31r3eYUQgx@natalenko.name> In-Reply-To: References: <2887380.mvXUDI8C0e@natalenko.name> 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="nextPart4713795.LvFx2qVVIh"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart4713795.LvFx2qVVIh Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Oleksandr Natalenko Date: Wed, 07 Feb 2024 14:27:29 +0100 Message-ID: <5065083.31r3eYUQgx@natalenko.name> MIME-Version: 1.0 On st=C5=99eda 7. =C3=BAnora 2024 14:17:06 CET Yuan, Perry wrote: > [AMD Official Use Only - General] >=20 > Hi, >=20 > > -----Original Message----- > > From: Oleksandr Natalenko > > Sent: Wednesday, February 7, 2024 6:11 PM > > To: rafael.j.wysocki@intel.com; Limonciello, Mario > > ; viresh.kumar@linaro.org; Huang, Ray > > ; Shenoy, Gautham Ranjal > > ; Petkov, Borislav > > ; Yuan, Perry > > Cc: Deucher, Alexander ; Huang, Shimmer > > ; Du, Xiaojian ; Meng, > > Li (Jassmine) ; linux-pm@vger.kernel.org; linux- > > kernel@vger.kernel.org > > Subject: Re: [PATCH v3 6/7] cpufreq: amd-pstate: remove legacy set_boost > > callback for passive mode > > > > Hello. > > > > On st=C5=99eda 7. =C3=BAnora 2024 10:21:57 CET Perry Yuan wrote: > > > With new freqency boost interface supported, legacy boost control > > > doesn't make sense any more which only support passive mode. > > > so it can remove the legacy set_boost interface from amd-pstate driver > > > in case of there is conflict with new boost control logic. > > > > > > Signed-off-by: Perry Yuan > > > --- > > > drivers/cpufreq/amd-pstate.c | 1 - > > > include/linux/amd-pstate.h | 1 - > > > 2 files changed, 2 deletions(-) > > > > > > diff --git a/drivers/cpufreq/amd-pstate.c > > > b/drivers/cpufreq/amd-pstate.c index 35791efc6e88..1dd523db3871 > > 100644 > > > --- a/drivers/cpufreq/amd-pstate.c > > > +++ b/drivers/cpufreq/amd-pstate.c > > > @@ -1675,7 +1675,6 @@ static struct cpufreq_driver amd_pstate_driver = =3D > > { > > > .exit =3D amd_pstate_cpu_exit, > > > .suspend =3D amd_pstate_cpu_suspend, > > > .resume =3D amd_pstate_cpu_resume, > > > - .set_boost =3D amd_pstate_set_boost, > > > .update_limits =3D amd_pstate_update_limits, > > > .name =3D "amd-pstate", > > > .attr =3D amd_pstate_attr, > > > diff --git a/include/linux/amd-pstate.h b/include/linux/amd-pstate.h > > > index 465e9295a60c..ab7ca26974da 100644 > > > --- a/include/linux/amd-pstate.h > > > +++ b/include/linux/amd-pstate.h > > > @@ -93,7 +93,6 @@ struct amd_cpudata { > > > struct amd_aperf_mperf prev; > > > > > > u64 freq; > > > - bool boost_supported; > > > > As a result of this removal the kernel-doc for this struct should be am= ended > > too because even after this patch is applied the `boost_supported` field > > remains documented. >=20 > The set_boost is callback used by cpufreq.c, the boost_supported is not d= ocumented before the patch. > We just need to add new sysfs "cpb_boost" introduction in the "/Documenta= tion/admin-guide/pm/amd-pstate.rst" > The legacy boost is not supported any more, we have no need to document i= t again as it is. `boost_supported` as a field of `struct amd_cpudata` is documented in the k= ernel-doc right before the structure, and this bit should be removed like s= hown below: ``` =2D-- a/include/linux/amd-pstate.h +++ b/include/linux/amd-pstate.h @@ -56,7 +56,6 @@ struct amd_aperf_mperf { * @cur: Difference of Aperf/Mperf/tsc count between last and current samp= le * @prev: Last Aperf/Mperf/tsc count value read from register * @freq: current cpu frequency value =2D * @boost_supported: check whether the Processor or SBIOS supports boost= mode * @hw_prefcore: check whether HW supports preferred core featue. * Only when hw_prefcore and early prefcore param are true, * AMD P-State driver supports preferred core featue. ``` > Perry. >=20 > > > > > bool hw_prefcore; > > > > > > /* EPP feature related attributes*/ > > > > > > > > > -- > > Oleksandr Natalenko (post-factum) >=20 =2D-=20 Oleksandr Natalenko (post-factum) --nextPart4713795.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/iNcg8M0sFAmXDhUEACgkQil/iNcg8 M0viNA/+JgIrXfN2tea1g1fTzeFTG6W846DHmLLtTYZNsXjvObcK63bHl/Mr4dZp 4DiU49PMjfueTC8Smmt94hFJ0DjLJWMhK/IRQXvyUzMQG78FwFRjbE70rTfz96TQ vwj1i95YcaPkgkBQUJFAFIOs/NONm4VjbpMMoXp0n3tqirMGArwxJVUXxZ+SkqDb yioZ3Bq8o4qTeBd+A89XCNk1KKiGAtvRyuZMR1x0HUYdXyXG5ptIjkNe5DDtaMet hacyeaubCgQw2+3i1t+EvYTnNjfgJG1HIiYslyrz0VvNv0VjhWx1Iql7LY1HHwR5 +W3eX/A6zwNuOCfmFitU9XgsN6yqKeuiATz8oCNJOjOVs+G7YZtqV0GNuF1Oq8RP nnHKfXPEsDNY653ITys6HNNz0e2GH4Z3ocyRFJEn6MWxvukEjZSzDa0FjiIp78Hs q/+/HaA3BDqJwNrTrcS3GzO5fnnTqFjtaki7gFvEAA33uMbDtTX9utWxqdSAENEd InTrlrpl2GFjdEn0jbIKOpHqEovCYnObw4eR8AJeO+htCKSTApVTPTI2p5I4Ap9f jnHaleyKPom4yI92o7gIKTPRaB706HgzY1PSwQy1O/LtrWe+zHsHEYYLB0JBm3Gv L0a/T4FZE9p4Higm3IpLrf4Nlo3iZX/7TlxQtbmm1iByx+ZRMSE= =W5i2 -----END PGP SIGNATURE----- --nextPart4713795.LvFx2qVVIh--