Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3406318rwb; Tue, 16 Aug 2022 02:21:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR6AcWtpRR4rzBMz3Ds3D16rkl8nKnDse5MqO/cLbNBLNLRLlTt4k1PNRGFjM2WPnoSaReIV X-Received: by 2002:a17:903:110c:b0:172:6a39:436b with SMTP id n12-20020a170903110c00b001726a39436bmr10598078plh.131.1660641701193; Tue, 16 Aug 2022 02:21:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660641701; cv=pass; d=google.com; s=arc-20160816; b=BZP3DVd1KUL88rREskV2+lFSX+nkw3R/M3cqqWr/Fi0OLgnkdIq/zd58/S36vVEtwr FWTGQ88lzMwQF2MjlOGa0LjbV2iEbrp0nZ1xFqH/K0CaxK0KSz7ZJP8jrtZBVWRl/cwX BgDPUordB9qdWpG2XXGbUpQFMCNPQiFMKAwkCiSrJQLFPVEsBHl7Oapzn6kFLk3N2O4D O5uYtRufGSRjrTdsm2fZLWvpilG30c3Rnx/djww7lUE94ZreJhso5wiPyhxj4NwnFzZf gEVxn4g94E5O9uzZ8ChwTbKgHce4Yooo29G6MuS1VTPArI0OeEOspUeVrrsFSbnUozB+ PbYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_contentbits :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_actionid :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_siteid :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_name :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_method :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_setdate :msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_enabled:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=yMgOXYYTq0T/n1fKZRRo5pRSD2oyI4zmIobkaiszyLg=; b=fwqJmcue0cqSvo6/EXVwD+6kcIpn9mblpulNAHifs386FLkkcIVUXFW1c8FQ0d6bnM hOT8bAvV9vsay7l+F4I/Xz/UZL6QAoP8P6bv+P1uNQ25IpgG/Ld5EtBarrcOglSSEo4+ OMOh3IGLDSzWtbKXN0LlJ7ENHe9Gk6kVNnr4JRj7GoZKXU1Nhi5uq6XB3dEkvyj99bqO TaTx89xPyTF2tysnWNV4DLXbQJGq7T/AFq6+omHfAX0GSs5odFk7FbMw/0BNGQVAdyMd d4EBCrzYThM5k7CUJOtP4Ob27k9ENLZUBWMF/8DGg65fAMbNqNh+XWeJsN8/q5M3vsc/ Ameg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=nlc1uLUC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nk12-20020a17090b194c00b001f25fb2a0b6si16345836pjb.120.2022.08.16.02.21.30; Tue, 16 Aug 2022 02:21:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=nlc1uLUC; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbiHPI4J (ORCPT + 99 others); Tue, 16 Aug 2022 04:56:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232217AbiHPIzA (ORCPT ); Tue, 16 Aug 2022 04:55:00 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2064.outbound.protection.outlook.com [40.107.220.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9904C7B285; Tue, 16 Aug 2022 00:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oVnTxdWIsrd1YgzgFRo5exmFeF7dmfIzbDetplxi+EvJzETGCMSul3cZeWUbFJ0cu6lK7s4yZTfZRAw68gjYsHIRd/99/ArKtQLoScU98VeozCo5scC7FKGCpNEApYT9NEWJ9cCrcPJrOnMPurrtdr7vnjymQRMXCgAqO+1K3MKMtXZVXd4MLpizvC0Gqd8iATe10/j/Kx8IbTNH1NNi7Era7GwX8vbADY6N4cH1ozPuCD7lqZVtkGpaq0RLO1s8LbYfZOllMn4y3TvgzvWavxowgmaLN7n81JCj50Y8JDjFj7hBL1bSTGMbll5/tjNbl4JXMDgTm8ZdT2ztghltRQ== 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=yMgOXYYTq0T/n1fKZRRo5pRSD2oyI4zmIobkaiszyLg=; b=IoAcsdMDn3x3mApGid75Ot2AP1i1xRXBwXtaLCUQQ77T4a8K9Revi5358QhXw/VMI2Q5WySakaKHmQVeriLFIOtnP9K9/wStHtzEs2Az7Nbk1XUjhy6iLNV4a556dVwlCuJW3EwzXa11/iaaMBkW1GzNfYY3uHn3t4yBmuZxwS3+lobJLyiv38Tyj7OYN8V9qLAmXf23+6lLI5XZC8Tx/1GBsEJTAiG32T4a6X99X08+YuxvmaYRmBOxq95MqW68szgyW8Au0Kvq2ITDDv981UCwCGzcLe9fg5u6uyZUUefmLyJJPKEbOHPcVRz9AfglJn8Rk3NIyQvzxBqQuTQBNQ== 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=yMgOXYYTq0T/n1fKZRRo5pRSD2oyI4zmIobkaiszyLg=; b=nlc1uLUCjdD8jcWaPyUaKFft0gJf/rKN7D4np7UrVAQ64LqtMHKzbF2V816gAUH7BsuQYN+aGtGHwwVJsKQJaRx/lv9rKTQA5bC5r/Pq9qZzrbX1dik4Ld2EOZIjenWv6vOPQao11UUXkacv6XWN3+ks+jP2TOHmWN1zdt41p/4= Received: from DM4PR12MB5278.namprd12.prod.outlook.com (2603:10b6:5:39e::17) by CH0PR12MB5348.namprd12.prod.outlook.com (2603:10b6:610:d7::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Tue, 16 Aug 2022 07:02:27 +0000 Received: from DM4PR12MB5278.namprd12.prod.outlook.com ([fe80::a970:8eb0:b1f7:5e7c]) by DM4PR12MB5278.namprd12.prod.outlook.com ([fe80::a970:8eb0:b1f7:5e7c%9]) with mapi id 15.20.5525.011; Tue, 16 Aug 2022 07:02:27 +0000 From: "Yuan, Perry" To: Punit Agrawal CC: "rafael.j.wysocki@intel.com" , "Huang, Ray" , "viresh.kumar@linaro.org" , "Sharma, Deepak" , "Limonciello, Mario" , "Fontenot, Nathan" , "Deucher, Alexander" , "Su, Jinzhou (Joe)" , "Huang, Shimmer" , "Du, Xiaojian" , "Meng, Li (Jassmine)" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v5 6/7] cpufreq: amd-pstate: update pstate frequency transition delay time Thread-Topic: [PATCH v5 6/7] cpufreq: amd-pstate: update pstate frequency transition delay time Thread-Index: AQHYr/yGLKquZOGw9EeBZWlzer/+7K2wEQ0OgAEKFgA= Date: Tue, 16 Aug 2022 07:02:27 +0000 Message-ID: References: <20220814163548.326686-1-Perry.Yuan@amd.com> <20220814163548.326686-7-Perry.Yuan@amd.com> <87bkslim2c.fsf@stealth> In-Reply-To: <87bkslim2c.fsf@stealth> 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_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2022-08-16T07:02:24Z; 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_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=9f80329e-344f-4dd0-9115-92a29d8db499; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1 msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_enabled: true msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_setdate: 2022-08-16T07:02:24Z 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_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_actionid: 4394b8e9-145c-4268-84b1-eb424c9b3795 msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_contentbits: 0 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f3bbf838-1f87-4e00-1bd1-08da7f55473f x-ms-traffictypediagnostic: CH0PR12MB5348:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kYeqdsab92qVZVk+ZTIOUW8nT+Q2Bmn+kkmJlSsKoqD0b6K/4Na8vOzcv4X6qHDOyEd2H+qnN+945Yi8VDqKcXlIzlYBf6m0BD8mPBByufZMydrXESYmgioEaaKPg98a0KIW/IrFxZ2f48x1EinBwDcilULZCtijfXUcu9s8SuyfMmxAnAgEDlrhNshY+tMikD5NOx4EF9I0Pg2IJfXyu4ZmcEaYJRQnM5BWqTEEwC2SfiZNvuhRjqx8qriv1f0flZHcKOEELzGetabjB80RWIoybzJHMFZEtf3z6bWYrT6KC+jOcGhKcv1baT/SbdYkLJaTzVo1WkVXcUk1uNPF3FPSq7xMKfFzIGmSLbtJo3dNu0x7TkcwUsluGnPR3JW9NUbCfBRcd1d7pa5HXYBzgEI9VU3fFK5hQKvQ/LeW0pqboOh1019RpSe8cCfnLuFyXmxZLfWplj0jrzksc+Co+Oetf07JOfa6SCz2vH6URf1ytP5c40/a+yM0JzjRAHRZIz5hQO98bhbe5PAojQafAznadTbjDco0l3rkuWtxGqS03/RmS1dpHHZkip6j3+uyUdMHypVOM6GnlqNqZ+HruWz39sUYRjaptyQe3LygqiOpAfhFqLJLiiz2artzmz5MHT7WLKzg7wTOmY5iDNM9zAkZkRY4e7tphCv/rS2zKUO/JrLNJmy6eH1lYKQdODZDVywoG9egWGBhVL2zBKXLkXJJd0sr8MgVZjToBU4C2Ad4pvR5jMa964lLsX6T5OmJpMcon3kueBO4HVx3pdEQS78R/WvY45rBhAkfztu6qiTRL3r8+u7uaPi0ztZ5e8nV x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB5278.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(39860400002)(396003)(346002)(136003)(366004)(4326008)(8676002)(53546011)(9686003)(66446008)(478600001)(7696005)(26005)(71200400001)(38100700002)(41300700001)(122000001)(83380400001)(86362001)(186003)(2906002)(38070700005)(15650500001)(8936002)(52536014)(6506007)(66946007)(5660300002)(55016003)(316002)(6916009)(54906003)(33656002)(76116006)(66476007)(66556008)(64756008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9w+cIxEFIYhvdAsoJhvxWRZb6M/UsNBWs8eTd/NEtcJcaaMvPqoJFXZniZCt?= =?us-ascii?Q?fn6ld9Rnzp1aIkz5qIKLhYMZQS5RFpb+gmzcTNlweYDYk76Ap3FWsvR0k5qH?= =?us-ascii?Q?5tKjH9NNT7l6nkU0oudHoXLcQEcC9oZZT16n9E+nz5GDl38tVDux+mKXtrWV?= =?us-ascii?Q?TzPtwqoLC5w2GswieTLT8IakOjjb55ibpJAGzom6WQzPttJI9C2Y7ZqbjhwU?= =?us-ascii?Q?L7UQJMYJs6EMGdGNTGbLCIopBXOjB67B5BaZ7NE8OCKdSk1AJ4VzMx6SXeIv?= =?us-ascii?Q?X63W4f/SFlDld+qm9dcZI0UIg6gc1ZNbQyX7px/CTEvhAsdZ5llpc3yemq6R?= =?us-ascii?Q?VpK5IJzx7v41b0Kv+LYlf9p+S1TdbTyToNrgCiA1JtsK3dc0T+6zvR3IoXR/?= =?us-ascii?Q?qE+34xtgeCUef287hs6r5oRplN0IdX4LQuC2hdtRtiyPNJleGOgxB/gjJIz1?= =?us-ascii?Q?Iva4eG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hG3PfPuq/2pjutXEA?= =?us-ascii?Q?zqZXCtYXqLMMvieikMiSmSUcMW6pYhPokPHfp+a50gh1shSTKh6STR3H6JMs?= =?us-ascii?Q?94HYG6n0W9ZT1BcQz1uXfAzoU0s2YEI7pTjWg0KWaDpZfZAnUr+s45C0H7Lt?= =?us-ascii?Q?coI8i4m73MbFG8WbuWdZIZir7CV+ggZXIsG9+rwkHnrSeKK9OCwb78K+CP4z?= =?us-ascii?Q?Y0nfnHgXx3XSDV/F8QxoLvI4Bsa4Q24FHURAJqKE?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5278.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3bbf838-1f87-4e00-1bd1-08da7f55473f X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2022 07:02:27.0456 (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: 26SwK2QMTKBIg57vSMjTKQuK6jSbPA/k/26VNBDgJEAYrXa60mdUEmrxlpbshOKXZs0AA1RujSZMdrgmhtU9Hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5348 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Official Use Only - General] Hi Punit > -----Original Message----- > From: Punit Agrawal > Sent: Monday, August 15, 2022 11:06 PM > To: Yuan, Perry > Cc: rafael.j.wysocki@intel.com; Huang, Ray ; > viresh.kumar@linaro.org; Sharma, Deepak ; > Limonciello, Mario ; Fontenot, Nathan > ; Deucher, Alexander > ; Su, Jinzhou (Joe) ; > Huang, Shimmer ; Du, Xiaojian > ; Meng, Li (Jassmine) ; linux- > pm@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v5 6/7] cpufreq: amd-pstate: update pstate frequency > transition delay time >=20 > [CAUTION: External Email] >=20 > Perry Yuan writes: >=20 > > Change the default transition latency to be 20ms that is more > > reasonable transition delay for AMD processors in non-EPP driver mode. > > > > Update transition delay time to 1ms, in the AMD CPU autonomous mode > > and non-autonomous mode, CPPC firmware will decide frequency at 1ms > > timescale based on the workload utilization. > > > > Acked-by: Viresh Kumar > > Signed-off-by: Perry Yuan > > --- > > drivers/cpufreq/amd-pstate.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/cpufreq/amd-pstate.c > > b/drivers/cpufreq/amd-pstate.c index e40177d14310..9cb051d61422 100644 > > --- a/drivers/cpufreq/amd-pstate.c > > +++ b/drivers/cpufreq/amd-pstate.c > > @@ -41,8 +41,8 @@ > > #include > > #include "amd-pstate-trace.h" > > > > -#define AMD_PSTATE_TRANSITION_LATENCY 0x20000 > > -#define AMD_PSTATE_TRANSITION_DELAY 500 > > +#define AMD_PSTATE_TRANSITION_LATENCY 20000 > > +#define AMD_PSTATE_TRANSITION_DELAY 1000 >=20 > How were these values derived? If from documentation, it'll be good to ad= d a > link to the relevant documentation. And if they were derived from testing= , > please mention this in the commit log (along with some details of the tes= ts used > to determine the value). The values are calculated from the CPU PM firmware and hardware design. There are some latency and delay values defined in the PM firmware, I have= no documents about the detail for now.=20 Perry. >=20 > > > > /* > > * TODO: We need more time to fine tune processors with shared memory > > solution