Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1917636rdb; Sun, 4 Feb 2024 06:57:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEGzHNRuMCQUhw+YOeah0z+T6SjXHX0fs/4UFOcNmsjtn3zgcUX/nIQPhuAm8h3N29KXDiF X-Received: by 2002:a05:6214:e49:b0:68c:927d:7b66 with SMTP id o9-20020a0562140e4900b0068c927d7b66mr4257285qvc.36.1707058663473; Sun, 04 Feb 2024 06:57:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707058663; cv=pass; d=google.com; s=arc-20160816; b=o27S1uC/9Fu5swyXW6QaOQxBVU+EZXPAfha8EQtk4mM0xq6EjkDmjVRysahwj0Hqpi y+4TcMErZaxVbGMNSY10L54tMj7CfApufIEuhUOQYBCxbIB51Bf8QQasIkTWAARHx+f5 dtKwKelbvL2b0QeMCOy13JicvoHiXjQ/J8PCeyF4jiE+2J9Jyo275+/N72K/PCbaTepR S0qFIsNBPAZ9id6F6OubZOffiX1H4cCthez1puhdevojK/Q8+12CqXX61tnAUMLKJtM9 T+k6cQ76mfGlhwWquRO1cohQ0dq8SB6PWVudieltOKtOji9rvbV7dS3FdO01AC8zkZmj 9MsQ== 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=Brjx5gawkui+LJaaggx7nGzOEtMEOgZdpM2in1GRejw=; fh=hjlKHB4KSjZww9YFh2HZ7iSYBzMruO+4r0k0mFQaQ6A=; b=z0NO7iJ79boZCEPzk6HJqDRekW8RTz0z+v3XwkBaWdJ3z5Bdlre3FptQHgiYrBw5LO BYj+j3ToHx2FC2dk5wSvcjtqXmnpI7nVRFQzCv+juRRWFJgoj8Z0OdVy1+Lt3gY7pYE6 daMF8iUTjtu05krNHYsEAXLfPd6balty+6vNWFG5IpSWNV4nNQs3GadDxBiU6WdkQiLM eOCjKtByCBNoRURcKlDeMdrglkZAZVKrAl2Lilpq0TA3ZVuortmIZInSPe1dkkWXF9bT qG3PuBEvV9seDNhh1vPnBheVVjsdbQb255T34CYRT7DqWl64Udb4VK48ZMIBTVUGYryC +YYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=XKCS69bT; 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-51739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51739-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=natalenko.name X-Forwarded-Encrypted: i=1; AJvYcCVN57jPeK/S3ulDxt7oUow6/oOsLkPH/wi3guxkZd0zp1p4pu4HIB7KNprfSm9iaLEFE4IVjbLRStQccMOhcJKUQPmgO8GYq56XtSNIRQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h11-20020a0562140dab00b0068c886a3260si6023167qvh.480.2024.02.04.06.57.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 06:57:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=XKCS69bT; 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-51739-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51739-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2C6431C20CFC for ; Sun, 4 Feb 2024 14:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66BE6224EF; Sun, 4 Feb 2024 14:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=natalenko.name header.i=@natalenko.name header.b="XKCS69bT" 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 717B6224E0; Sun, 4 Feb 2024 14:57:30 +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=1707058654; cv=none; b=LG9P+kIyO3ThjWoNBj23mjpqk+B3Lrq9Ixb8x48PBvSi251KjhhC07TazK7ybt1ISroUFchAwIcrtKmGT4fsP1FD2EfcQOz7HhTIOyojTrvJo/1aKHTUysHoOAlFIK8joe/E45aUpL1+splTJorHNYM/rAbgBnhSJqnIGMqDN+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707058654; c=relaxed/simple; bh=qtx/zQljWlhQqFJyInObMs6jLW9K0bT0vh5OU+K7S4Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=i+IZevcjdvQigcZP8I3n4f6oDcPPtwdL7kEWt4uGo0bOvqCUF5dsml0BLsjB8Q03k0gezdhUEWYk/aIvsd4hcaGBpODndchbh+PkxcPZmhgHK+sySNVsNYcNftVBdPyaTmhbUEa8Ji5p0KDFOzExnJHzedQ3HeYXCEPXCi3PqP4= 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=XKCS69bT; 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 15BE86356CC0; Sun, 4 Feb 2024 15:57:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1707058648; 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=Brjx5gawkui+LJaaggx7nGzOEtMEOgZdpM2in1GRejw=; b=XKCS69bTM19pV7Y8tGu8Bf711bGsZpYrdVHeZwwUnuCsZVWV9pp3txdwc1llb6djGAWdyo e7wDldRGuMqyamgW9sjDIoJve+nT+LUf1IHd+vuVX9jyQY3FORLCZOeBk3TDtJPJJbC7R+ hqJ5TZ7sY312c61mNfDsFnLAbkcMqMk= 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 v2 6/6] cpufreq: amd-pstate: remove legacy set_boost callback for passive mode Date: Sun, 04 Feb 2024 15:57:17 +0100 Message-ID: <4896392.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="nextPart4545156.LvFx2qVVIh"; micalg="pgp-sha256"; protocol="application/pgp-signature" --nextPart4545156.LvFx2qVVIh Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: Oleksandr Natalenko Date: Sun, 04 Feb 2024 15:57:17 +0100 Message-ID: <4896392.31r3eYUQgx@natalenko.name> MIME-Version: 1.0 Hello. On ned=C4=9Ble 4. =C3=BAnora 2024 13:12: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. >=20 > Signed-off-by: Perry Yuan > --- > drivers/cpufreq/amd-pstate.c | 1 - > include/linux/amd-pstate.h | 1 - > 2 files changed, 2 deletions(-) >=20 > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c > index 02a76b8fb298..4e377efdd4ed 100644 > --- a/drivers/cpufreq/amd-pstate.c > +++ b/drivers/cpufreq/amd-pstate.c > @@ -1492,7 +1492,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, > .name =3D "amd-pstate", > .attr =3D amd_pstate_attr, > }; > diff --git a/include/linux/amd-pstate.h b/include/linux/amd-pstate.h > index 446394f84606..66d939a344b1 100644 > --- a/include/linux/amd-pstate.h > +++ b/include/linux/amd-pstate.h > @@ -80,7 +80,6 @@ struct amd_cpudata { > struct amd_aperf_mperf prev; > =20 > u64 freq; > - bool boost_supported; This leaves amd_pstate_ut_check_freq() in drivers/cpufreq/amd-pstate-ut.c b= roken. Likely, the whole `if (cpudata->boost_supported) {` hunk should be r= emoved there too. Also, in the header file, there's kernel-doc before `struct amd_cpudata`, w= here boost_supported is mentioned. It should be removed too then. > =20 > /* EPP feature related attributes*/ > s16 epp_policy; >=20 =2D-=20 Oleksandr Natalenko (post-factum) --nextPart4545156.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/iNcg8M0sFAmW/pc0ACgkQil/iNcg8 M0urchAAvKYGEpxMWXdVRLbuUMR52vsR6OmsmlA21fkyGhmCg5Dckqxb1fdaXqQ2 Qz7M1GYLjEzXCxRzQi3IxPjNGp/0wtXycAO1DgvlgHexMydzVYLTsm7cdm29+/UV N5SynY1bFiH6cvUEdYcg4Q2ZVorx20cNJ/Dfb8DsqzMBkHx+YWpllT6ZBdasX1Wr 5RRppw8VuunYXHugWexxXQMGRWC3IAjAj1EiJyswMZwGmiIqMuTUtv3y8ts+mK9w 7xLQ1lHUdY733C7NvzY0sRYKY1E1INhwX59zZrPUWgjgkGJEBBZIGBWbm6AeAKK0 SSL2pxyCYOYG/PuEfP20YcO5mL8Tb4Tjzd41sDMBADGAWmeBJnOC0hUrW9OGbu7N KB04tSisT6uDgLTbIhaEPjGjhrpwwl0GqWXnHeEq8JGuqJtZwDCTpDd5waZpAD6O nzRwZzwXjqR+8kf7vTl3kKRO5BguxnZcH1vS9krPc/2zh3FZeNY1Rau4s6IHTZh6 q62TkVr1iT3X8vG8Hy9OY+yUnLCylBQTPYVY7h7wgYKbEyhOt/YNRm5U000IeoRY y1zxVPH+8N9O+zU9zpCIb5CqxOu9V5Rr/Dt6helF5j7Ebo5Nt7VUZ9E1mM5/56Uc m04zzOYmqV2N4Z6haiao9dLRDHFmZS9EmheDARUS2ZXOOhzhkOk= =3u7X -----END PGP SIGNATURE----- --nextPart4545156.LvFx2qVVIh--