Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp280431imw; Fri, 15 Jul 2022 03:08:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZ9qranhcqzIT/usUcSKvkmojb3iNG4ZkMpJXNgMlO7vcZnwyTahiA9iFlelUE2EeEnObM X-Received: by 2002:a17:902:8bc2:b0:16c:2bd8:8dae with SMTP id r2-20020a1709028bc200b0016c2bd88daemr12889888plo.160.1657879734961; Fri, 15 Jul 2022 03:08:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657879734; cv=pass; d=google.com; s=arc-20160816; b=lUxKVJzJq2E1FIisdGt1Gn0ym85fwDM4ZyfMm/k8XkywmAGs7u7kyckQhpAJksnhGl qKWl1gMWJ0+WsVrf9TLleXV8nwe690ZzBYBBbn9t4EBZEp1qptVN0uyKq8K1LwcsL543 1X10XGzdgHUN7V6TSLm1o5r/T2TcjVoSQOWIlK5OuO4XYm5KhHcgGFLQ1N/Web4jpOG8 Xiv9Oo3arPmjd+dZ7U6XVlpeNaYiwu75jwX3i+9fOm9G9Gh3JEuhvFNf3oaC1P+hlXrW 2IJc862iOj3d7Yo4ejZHhXvcuyqHNPvMEaosAhSVEaMGQswhjd30oK24qHMgOZl7auZ6 04xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MyEfC/pQFjsoMpJM51dDEFp+MNBMAA6Dy+dVawzhXM4=; b=xSGzP4KK6YhCmW96Jzzd72j43y1lHYmSBz+NLLMPh2e6HURZBGw1Yj5YwQJ4ERtrkf IMdrZR4G43j3g7Qe648YPwavsMljopRWuHkfB0suuetYPpz+ezfZPPCx4TB3A9SzG8Yv DeyBq3iCd/xLAgxFTByKrznREpwGwryYRZAhollVyo/KJO/IdPDk/YvpPr+qy7IKaIjx yQyHpBvG3d2EnTg38nWqZlZh8VlfF5195xN1dttbAIdkzjNEqyJGYKZTZRFypcMvwyhw 9Ru6o5hBtfvSsGKcNwZo413FZmdo7TPxN8HhwAFiM2UuKXDXAKbECA9q6fJwiH6olbkU +urQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="4yTaH/J4"; arc=pass (i=1 spf=pass spfdomain=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 j71-20020a638b4a000000b00419de8c08ccsi1879725pge.588.2022.07.15.03.08.40; Fri, 15 Jul 2022 03:08:54 -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="4yTaH/J4"; arc=pass (i=1 spf=pass spfdomain=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 S234142AbiGOKGj (ORCPT + 99 others); Fri, 15 Jul 2022 06:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233824AbiGOKFb (ORCPT ); Fri, 15 Jul 2022 06:05:31 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2050.outbound.protection.outlook.com [40.107.93.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13C2382FA1; Fri, 15 Jul 2022 03:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Klvv8E09ggdKzUIJDSArKitNAmgn27qp2+nxmSsbFGiFMYMnB3hyU8xsRdmw5F9ibe8BZRQvdkp39A7xFW/hy2uvMwzArFaIg35UjoWksB029hAyaDOLtrzjBzmU1jo+ZRHJfxUz5xodS1KQ+SrTFG35Sfdyr3i7vIDngbZWQqgX2HwHHE7WskTyGm6jOrGydCXRG7DKo5OAsT0wnb/gR2qmqHViEDik0qXhW4FECUhXPLd38dm5l8yah2dZOWwCTA21pOs4NLvTg5m71WJkmoMOk3zX6Xc6ccGAqduU8sfknUEIEKdSyM8eZ3Uoj2Zy+/qKYsBEyOk6PX5gBTh0mA== 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=MyEfC/pQFjsoMpJM51dDEFp+MNBMAA6Dy+dVawzhXM4=; b=SSud0UGZK1MZfwz0/o+8ieQDuwb0UggLDCITBdIu5fQbjm4vjH4JR29LBEhRTqa3+xk1ijqC+fRXS/JY4vPNdHIBbJmG8SiEcr1bc/76DP8UCSBR373EH5YakCLfTQo7N/MisSFuMgEKJeGyAvlaX/hMDln4NbkyBBLjUHF7bjOl+0HL2/6X8+iz84PcUD9xuZwC8ylN3DmYXMKr1vC1+ovjR/uOoe+dXqqYQhS3VZswGiZWyc4Fr5jxYLwrpwt7H7E8Rbh6JGjgseH4sPOHa6SKBuH1g9E/gLgQiRmOFflruc0bUvtRcvK5NhJk95YLbnyz+ulgBabM/ZEN10jtvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=MyEfC/pQFjsoMpJM51dDEFp+MNBMAA6Dy+dVawzhXM4=; b=4yTaH/J40ij+p+HA2aD2sw/N1GWlApyk7JihaDBWdGMIYvLXVwSiPEB/9yoWvmh6L889yzWH8oh+F7ZzBPa5ksxYa4k7W32pw1WVx5eNt9aebeatpSlT+qGQXNDCv8h4OmZff7qfZuBiXH/doE39sdc659ztI344VMTzuHknPXA= Received: from BN0PR03CA0053.namprd03.prod.outlook.com (2603:10b6:408:e7::28) by DM8PR12MB5446.namprd12.prod.outlook.com (2603:10b6:8:3c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.14; Fri, 15 Jul 2022 10:05:27 +0000 Received: from BN8NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e7:cafe::ae) by BN0PR03CA0053.outlook.office365.com (2603:10b6:408:e7::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.17 via Frontend Transport; Fri, 15 Jul 2022 10:05:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT029.mail.protection.outlook.com (10.13.177.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5438.12 via Frontend Transport; Fri, 15 Jul 2022 10:05:27 +0000 Received: from AerithDEV2.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 15 Jul 2022 05:05:23 -0500 From: Perry Yuan To: , , CC: , , , , , , , , , , Perry Yuan Subject: [PATCH v4 11/13] cpufreq: amd_pstate: update transition delay time to 1ms Date: Fri, 15 Jul 2022 06:04:30 -0400 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 093b131b-543a-4fd2-e094-08da66498b04 X-MS-TrafficTypeDiagnostic: DM8PR12MB5446:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: umle0qvW+COktyUIWFy3Bk0aS2Yc/Qv1WMLK41dPIEe1spXYbvoS0RFkwmjG3urx4BO3546b/A6EfKpEJPxq+7fXHHjIQgo4k4JQ7H0Y2uqZeeGAy/PG0X8NgB56Om3iFdCZex8v0EQDOxLqpJ7IwbOKYfsdEt7M4JJ5PYR4v3Zxgthopgoxz9TjkhD+/yL5yLP2+naugo9gplblngvYiDh6ug+T62PVOeHnqkx+6EDLmjaxc4qOnSHcT8SwA/0Fr+3CgBtfAqYemcERuCsQnBLl7PooX40EuMCfVGX6FYjK+MSbdZLCxYIv3JGRcv/2IH4ns3eWHKTpvIu6Z2mcVwER+PVBc26BX6NRLT2CMBeO4rUtxOhzdrxfPunmOzYsEjl36PfqHbv7I/ygkC7sE42+W9O6OW4GtaVa/KE8hqT6SggHgI2cd23Iw7re93hQ4QlLM6kjP00QqxtqjRIkHWvTXT+Z+1Mb6OSi5AoHIWcpmY/A7iOhaHW7PyoLRnUHemxrtIYPaNzK1yVcNmaCaCQiuE0pAjifTEOPT4EMgl6YhxnIEeR+mbFywtyXijE0GRScvmwyRdMat0C1sM2wGxvZqXnIuQnk5R0eHF09iHnkW0XwSlFxhld0o8Lh/3nrrE5i3ZKuklXcTmQSWFWdNnDE1D4Tue4TiD1VvqvAlVUxrxqY454O+1XzTZNkvYUxYyRjVN8F8wSCH9Ytrl63SBM9u4e3kVM0aTmjAHaaYtcvVwqNg7RUsCh1v53q5kJ3BN7XU5HbOswvtsMU4+JkB0+ZwdNrQgphxO5IFVBf6h7R3CsMpHje1rwXJDpGY2qVcakXv5Ap6WUKnXbgqnArUA+WvlJg4idqHzAe0N2cR4c= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(376002)(346002)(396003)(136003)(46966006)(36840700001)(40470700004)(70206006)(36756003)(5660300002)(2906002)(16526019)(426003)(186003)(47076005)(83380400001)(8936002)(15650500001)(4744005)(336012)(36860700001)(4326008)(70586007)(8676002)(110136005)(41300700001)(478600001)(7696005)(86362001)(82310400005)(6636002)(26005)(316002)(2616005)(54906003)(82740400003)(356005)(40460700003)(81166007)(6666004)(40480700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 10:05:27.6563 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 093b131b-543a-4fd2-e094-08da66498b04 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5446 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 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 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 Signed-off-by: Su Jinzhou --- drivers/cpufreq/amd-pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 4f8600a36194..d3bc441b3923 100644 --- a/drivers/cpufreq/amd-pstate.c +++ b/drivers/cpufreq/amd-pstate.c @@ -42,7 +42,7 @@ #include "amd-pstate-trace.h" #define AMD_PSTATE_TRANSITION_LATENCY 20000 -#define AMD_PSTATE_TRANSITION_DELAY 500 +#define AMD_PSTATE_TRANSITION_DELAY 1000 /* * TODO: We need more time to fine tune processors with shared memory solution -- 2.32.0