Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp289415lqk; Thu, 14 Mar 2024 03:15:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCqG1aFjxxLUzrbhpN1b4UL+Qwh4XfGIFALlUB0PWrmw3YBWw1gP6Q4ieHb6SgQXG3fdlQsyrdSLBJi8xZbCXJ/1XZGmWzXYmq7Ah5FA== X-Google-Smtp-Source: AGHT+IG37h25CntSSikW47W2xb4fC7Pm8NZDgv6fRkhNalZ5XsR7E35KhfBWDXWPOpVDYFLGtt0r X-Received: by 2002:a05:622a:49:b0:42e:c111:7662 with SMTP id y9-20020a05622a004900b0042ec1117662mr266604qtw.16.1710411336088; Thu, 14 Mar 2024 03:15:36 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n10-20020a05622a11ca00b0042f309dc417si1152650qtk.629.2024.03.14.03.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 03:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103105-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=@amd.com header.s=selector1 header.b=IlyQDSEM; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-103105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com 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 BB6CF1C20BA1 for ; Thu, 14 Mar 2024 10:15:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 300016EB53; Thu, 14 Mar 2024 10:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="IlyQDSEM" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2041.outbound.protection.outlook.com [40.107.93.41]) (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 B4C896CDD6; Thu, 14 Mar 2024 10:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.41 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710411320; cv=fail; b=F1Kb9n1iMv50E1Uc2nnYn/wUIgKr6BU26+v4w0zoVbd6ORmdbSgZVITfC0HyIsQekCQhKJ9s4VlJY86wOATuRhIx28aNWmvNDsdkufeb331dfPu7SZoEd1ZHHXFWmiKPyv/en6igHhw8RDC1+sjzNPyh0hp+7meukzX/kLa5VMM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710411320; c=relaxed/simple; bh=J6jbKnki669PiEzctZd9/2zLXUxqXXgqWlHpQJVLzCc=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=LWgQUx0peuqNmhLoP+MNY90DDHZS5TBUoolngzxyhROMy7V8ryGPlsvEbENKc+SkIPZy4DP/pOr74xTrxDHFu6sdIFSeLJGTUp/z/trgEVsim/npYoCgW++JbYO8rohrkREMNPP/HwbGauwVbLWAY27W94Uc64r1YmBSHYlAK8k= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=IlyQDSEM; arc=fail smtp.client-ip=40.107.93.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jzi4bi+XO1vv0iCFpsrpkvyadva9QNXY6jlKXcOgqxDeg5h6Gq16haoyJfT05eKdXKzmCq6jyc/AY0cTC2QwbCHSxWnUiMOvF41P+IMMo6TZYV/oNNu6sMSxud2NaAOb3Lnk2lpZK+VgO48lzVSxfthmOAcbEQ6KI25f+AIBwZAxyyVupG72/ohhQQxXAQrMIkVgwTSryh3m4n1HDfJv5lWJunzX3yPo5U4Ckx3bOsqgpN/DOVLzMCW9yUoWKwpuvqQ97Awa2Ss7IC8U+nI8XP0bFbxH9J5k13jpcojnbCaWrqq3hXR6o/pRL5m4HKYWCCuE5Y7SwvXiJGWX/RYFvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A2npNS6sBt6md1UnXIX/MtsXBwSVhoQ7VDuj7jfhiq8=; b=ItCPYKSAVAtYjoWfooCX5DB/akl+LKMi8gESyr17yeoJPZgMn/MDumn+Nw3n2clauweeUxf1lFBdXL6GDzb/kFKWrijAr22mtL5qmvHoOxxDPxEQ9XNBd3CvANA4AYgWi+dJROsdXc6LzEs39R5XAK6NQl2Ksq2ZIy8Uf2/zz0+DH7bDcqHetfvaktGCznNynGvvxYLNkC6N+G3kUQhJBdkLFPAPpajVv88ZOhKiRuvskpA1+JS7vVrkLasNFrK69dXHU631pDppdRjKzhvmvSdUb/+WEiOSiKXoHMejHhHh+lfhpDxPivGc7MHiZQC+C3Wso5jVxQMqQq7koXBIAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A2npNS6sBt6md1UnXIX/MtsXBwSVhoQ7VDuj7jfhiq8=; b=IlyQDSEMl0AyRVgEp0Q9xumGzLTL9zxYYkVPHO1ngGqGryv+wu8eC332xBm9apEvPZQv28Q5tZ+Xyfa6M5CMIDN8bBHFvPYPSp7KPyYqR6veq0TyyqSFPYh5P5YqHcTn8NK5L6Q34XxBR0k0ks2UD9cOWhm92Gvoq/h7IaZuHWE= Received: from CYYPR12MB8655.namprd12.prod.outlook.com (2603:10b6:930:c4::19) by PH7PR12MB7161.namprd12.prod.outlook.com (2603:10b6:510:200::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.19; Thu, 14 Mar 2024 10:15:15 +0000 Received: from CYYPR12MB8655.namprd12.prod.outlook.com ([fe80::64d2:3c49:7c63:1749]) by CYYPR12MB8655.namprd12.prod.outlook.com ([fe80::64d2:3c49:7c63:1749%4]) with mapi id 15.20.7362.035; Thu, 14 Mar 2024 10:15:15 +0000 From: "Yuan, Perry" To: "Shenoy, Gautham Ranjal" CC: "rafael.j.wysocki@intel.com" , "Limonciello, Mario" , "viresh.kumar@linaro.org" , "Huang, Ray" , "Petkov, Borislav" , "Deucher, Alexander" , "Huang, Shimmer" , "Du, Xiaojian" , "Meng, Li (Jassmine)" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v4 6/7] cpufreq: amd-pstate: remove legacy set_boost callback for passive mode Thread-Topic: [PATCH v4 6/7] cpufreq: amd-pstate: remove legacy set_boost callback for passive mode Thread-Index: AQHadS4eQHEd+FtCq0O58I4g5fFpnrE3BF0AgAABW6A= Date: Thu, 14 Mar 2024 10:15:15 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=57ca65f5-4925-4b7a-9363-83b6dc47999e;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2024-03-14T10:11:54Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CYYPR12MB8655:EE_|PH7PR12MB7161:EE_ x-ms-office365-filtering-correlation-id: 282385b5-f78b-4bf5-d093-08dc440fa478 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FTm/CMIpT5Nnu4Z6M3dH7+V+S0pXooGtS363mjb78IDZ0XZelnS9bAzs5O+DTh7hppdbNQbOC7uVjbk7Ocv7PJ3+XTWkQTZcstqxaqyIzumMjGN4wziRTIszfbH9MZiYtevEH/nKqaE/pYlTdLkTk4lZjAcy56NH6SJERBfQ5rVMiy5f1WiIqtwh/KnAhZ4f+2Jy/xwcVlqhcIk0Izd2eRBmdZF4Q/JOrkI+am1mb2oefVIhvaNefGKiuodgv1L+WpVt25rHGul0n3W+BIRIJE3Q/gbK8o92FH4hrEjevekhNjtpHO9r/1X5lP1qCjqFo4AZy4ezGB5VPoqgLrKo7O30Fy2wer1ZrLzFUNldBNvwVfzi11IpHA31XaTEjzJOOnObQZqKL6zH1Jmp9JpsowGLOPT91qjt0v2o9KU04aD/iupc7xpal7J30EQ8ENkQV5ed20pNXVWZWhbeFXvT22vLKpvTut8qsw96meFt2uAtsi9JpXrAGqIozj729cgJcqNBuQ2UQ9z+PqovwSQXuD44eUlNIvOOs7G5RxSWL+t19thuO4EU/CINnDIaYnT0T7zypkwNkDJNinA0mbZqk8ysefDBX+yZ6K+tB3t3VOZQxnOTqb0m3WoACdx9XsUv/6Pg2Lufwn5tk9DLRPr1TRcbeWUX422TFIX8EwVADQjPS1l+TeNsvB8r6rdK+vPyQtrRx6X2v6zVJOPjIzWXAQuyoecrkbzYlLny8wdZO/c= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CYYPR12MB8655.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9o7fiZPWjzb2qo8Mt3Fw+A9JVczRuKpg5pXMrjWv4EtR+VE6Apy1ZQ3aPBCC?= =?us-ascii?Q?yEgtMsdz8iqZ4v8h7k9xAGp4nLJdnE1S2ioqpwA/y0TI7FKWUOKYYhGGmCVC?= =?us-ascii?Q?U3lrbuTaFDRiHGjiieMKFf1yuAw64LuyI5Qp3VVQTong4SVHHM0uSOWlmRab?= =?us-ascii?Q?JYst5NCvWG0qxuz+hxTydVuhx/4xC1RvEr9mcUi5sHnusZyNdK1GCbULRgC+?= =?us-ascii?Q?ZM7ZrVi4pcSF6D5kRTyoPeR2PdsfwsdPvPLz8K+0aglTHQpdHUcdb6nrdUFF?= =?us-ascii?Q?EvPAXWXlt2DzoWIoFY4c8VbY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q?aaNvURGKOSwwP2/kb7r3Fp911LpxyefxXMYcmfE6DvMhqenTmxFbsPANF6JG?= =?us-ascii?Q?mYudKBwLHl0cUno135l9k5qEx4uu9T5dryrSzKULhxrIz/jXmyqeh78ZXvxJ?= =?us-ascii?Q?R90p4Ri5l0QoCIEkYJgK9FDfpmnsWiuZj/Ygbb3PyJf27K6gWl+xwLm7YtCG?= =?us-ascii?Q?0fDPa+MX69ft1MQihDzsMJ46j49I8c/2dNRxxuwkVrjOl8bMTii3YYFlYTkI?= =?us-ascii?Q?Mo+gl/nXYSLt3ugUiUUkpBHPBwLt1Rl1RR5plU7abgDNy8dI/Wko4jedheMg?= =?us-ascii?Q?9GW5O+BI67HlLTyL0mwH/930IoVGg0LDUbQGfq5Ed2f2pEwG+jNYrsFkdiPB?= =?us-ascii?Q?4LAXCLhKj93jQKvmhco=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CYYPR12MB8655.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 282385b5-f78b-4bf5-d093-08dc440fa478 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Mar 2024 10:15:15.3853 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 81Pf5hvfkSRmjoNuZmkEZFiuTPSbLd7hkr2Kn1Ep1L/8w+mAeLFKreLCSVPkZdiyLXUGo+crDN8wYhYDB/BsKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7161 [AMD Official Use Only - General] > -----Original Message----- > From: Shenoy, Gautham Ranjal > Sent: Thursday, March 14, 2024 6:07 PM > To: Yuan, Perry > Cc: rafael.j.wysocki@intel.com; Limonciello, Mario > ; viresh.kumar@linaro.org; Huang, Ray > ; Petkov, Borislav ; > Deucher, Alexander ; Huang, Shimmer > ; Du, Xiaojian ; Meng, > Li (Jassmine) ; linux-pm@vger.kernel.org; linux- > kernel@vger.kernel.org > Subject: Re: [PATCH v4 6/7] cpufreq: amd-pstate: remove legacy set_boost > callback for passive mode > > Hello Perry, > > On Wed, Mar 13, 2024 at 06:04:43PM +0800, Perry Yuan wrote: > > With new freqency boost interface supported, legacy boost control > > doesn't make sense any more which only support passive mode. > > Why is the legacy boost control restricted only to the passive mode ? > > Can we not add .set_boost to amd_pstate_set_boost in > amd_pstate_epp_driver ? > > -- > Thanks and Regards > gautham. The new interface is more meaningful to amd-pstate driver, I would like to = put the control interface into unique directory like intel dose. There will be other interfaces to be added, put them into together is more = reasonable to control and maintain. Perry. > > > 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 | 2 -- > > 2 files changed, 3 deletions(-) > > > > diff --git a/drivers/cpufreq/amd-pstate.c > > b/drivers/cpufreq/amd-pstate.c index d7afbded6e3d..4a24db868cb1 > 100644 > > --- a/drivers/cpufreq/amd-pstate.c > > +++ b/drivers/cpufreq/amd-pstate.c > > @@ -1689,7 +1689,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 c6e2a97913de..7130b297c522 100644 > > --- 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 > sample > > * @prev: Last Aperf/Mperf/tsc count value read from register > > * @freq: current cpu frequency value > > - * @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 ar= e true, > > * AMD P-State driver supports preferred core featue= . > > @@ -93,7 +92,6 @@ struct amd_cpudata { > > struct amd_aperf_mperf prev; > > > > u64 freq; > > - bool boost_supported; > > bool hw_prefcore; > > > > /* EPP feature related attributes*/ > > -- > > 2.34.1 > >