Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2638421rwb; Mon, 15 Aug 2022 08:46:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR47F3JlVRFpyZWFGYrHg/o00Dt8oDbY4Ia2cNh34ddudtwMbgZQyXoRVhpJUEIB3RfcfUQk X-Received: by 2002:a17:906:9b08:b0:730:5d3c:4b1b with SMTP id eo8-20020a1709069b0800b007305d3c4b1bmr10618926ejc.606.1660578368961; Mon, 15 Aug 2022 08:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660578368; cv=none; d=google.com; s=arc-20160816; b=BG25G6hVunospHXAodmqOlViLgzWgLOZtBIK7zDwEOWObdUiiZerDcQH92V/T+m9Nw Xh8gAE2lPFJSyZFIdxg2eWmyVUwVkik5/5bLscWBOgUPzqKssbUdxCs5fhmpc8XwysWF ZgCjYa5yUZoVOJ0AMQS3nnzQNvzqSBvBwk/wrKarZUhS+61aLQD0NaS2SNBvvo13tv5Q 4+2fnacz3yPdIU7lM7xmXoKA35hIM5QY6pPZ3gZSSSxV7E1MrDtTn/MZQVk2HB3FqW2W 4uwwkji8nZPD3cSGeGx38tHxkqc3oRLLZGTdTIQLmaBtqqdVcwIL+xampss5wkzU/j5a zQpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=a9389HMELxJaALXWoZVA9uSSCnD92DID1O+kWIz5Q7Y=; b=xymL2EA56mfajni7/bM4bOoXlwqiQUHFPapYhDt2Yi9GJCG9z4kTkQ7bM39W1m80RO K6yCmYdmBVQtEdCJLfpYn1u3Pm03x03f4Cc+7nNWplkvonojRGt9N2VwVDKElkWwHiWP NB1TwpzgVuRSi7A1vA39pusqcMtV9+LUH+ha6kaaeYlChY9UvVqxgiV1S2V0Ri+QT37R WMC202UPHsHEITNbieyuOrFsKMeA/i6MLepT5e02HN7PIsBQShHp0VjjNgjTYJWoqT5m PGFooJIaj0M9/9J3d1EWRKi0yQWwkbHx0a1D3FS0+MeiIDm+ePbh8eG45sKz/VBD2LCJ JokQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=l9idI3EX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a056402350700b0043df9ca3ff8si9352649edd.50.2022.08.15.08.45.43; Mon, 15 Aug 2022 08:46:08 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=l9idI3EX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232644AbiHOPGA (ORCPT + 99 others); Mon, 15 Aug 2022 11:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242623AbiHOPFv (ORCPT ); Mon, 15 Aug 2022 11:05:51 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D046463 for ; Mon, 15 Aug 2022 08:05:50 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id k6-20020a05600c1c8600b003a54ecc62f6so4034254wms.5 for ; Mon, 15 Aug 2022 08:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc; bh=a9389HMELxJaALXWoZVA9uSSCnD92DID1O+kWIz5Q7Y=; b=l9idI3EXeXwoiHGPTiYG510sBtkNxnGlSmTuGO9OHaOzaotpxkME6sArmmJ3bEzq4l n8JQhllUV8VfzTLYKXX0uvgpq7br5CW3lfHPJOZgPv3eWnfbH1HkmMtk2t0mn6MQ+TQL ARUERBgY2SC8dKEijOhJ7izRiAd5zMJH3oH40ApIeIrvNWT5LiPf44IfjPTPeqUwJSHO bVvYWyvtu+tm3e41Ac5aa2WLLb2XAh4It6xlNKQLa12pGgBNfIF54Ef5iTuvMxGXtl9l 3qMry9ey+PVw6Ir18jJAwDpP6yEkvQw9segjDYXfrQwVmkcCf1z4J+zxP2Ij2KBNe+8J 5G0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=a9389HMELxJaALXWoZVA9uSSCnD92DID1O+kWIz5Q7Y=; b=jZl/EpFho/jBpYNzhu0sThSneWR1tcatF4lgSJWBtgRrtYhx5PzWMY9KIPSbPDlDK0 0bANGTOJXZZ+IlLUg2TxoKzUsAFdb7gmYxY6X5OEVoRR7XMX0qOLxpYgC8hiITWXklEo iIKUEvJylQNeV2mbJNGoIpzExIzqttKP9uKCgqLO/DqbDAwPhvcJBjl/U25CfVGutK09 55W7VDMX7ixDJ9DfPG7KVO5W9uI4sHwmvn09Z4ZGnpGv5eYiRuk7w+5RRhUQjheeWRxO jVVrFM6ip994K2WwlVDj0myra9k8O/1m9vyytYbvzRADVtegsG+SKHeS/AxCbi2GcNIQ U20g== X-Gm-Message-State: ACgBeo2XtpumrmIXiSgDqQsriiM6TppQi4ManWsqqqc4OTi+oxvvCesd D/Q9+GiPON53z113Gy8Gs3M2Vg== X-Received: by 2002:a05:600c:5102:b0:3a5:a46d:5d4b with SMTP id o2-20020a05600c510200b003a5a46d5d4bmr11081106wms.68.1660575948565; Mon, 15 Aug 2022 08:05:48 -0700 (PDT) Received: from localhost ([109.180.234.208]) by smtp.gmail.com with ESMTPSA id j15-20020a05600c190f00b003a5f54e3bbbsm4550660wmq.38.2022.08.15.08.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 08:05:48 -0700 (PDT) From: Punit Agrawal To: Perry Yuan Cc: , , , , , , , , , , , , Subject: Re: [PATCH v5 6/7] cpufreq: amd-pstate: update pstate frequency transition delay time References: <20220814163548.326686-1-Perry.Yuan@amd.com> <20220814163548.326686-7-Perry.Yuan@amd.com> Date: Mon, 15 Aug 2022 16:05:47 +0100 In-Reply-To: <20220814163548.326686-7-Perry.Yuan@amd.com> (Perry Yuan's message of "Mon, 15 Aug 2022 00:35:47 +0800") Message-ID: <87bkslim2c.fsf@stealth> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Perry Yuan writes: > 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 How were these values derived? If from documentation, it'll be good to add 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 tests used to determine the value). > > /* > * TODO: We need more time to fine tune processors with shared memory solution