Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4549839imw; Tue, 12 Jul 2022 09:50:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHAjrNQpy3ylKmtV2HREZTRYne0w6XkHGuCIPnt6zmc+XNaQuHpoeh3AR/jDSY4aECr185 X-Received: by 2002:a63:d554:0:b0:40d:86ec:626b with SMTP id v20-20020a63d554000000b0040d86ec626bmr21358762pgi.530.1657644650662; Tue, 12 Jul 2022 09:50:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657644650; cv=pass; d=google.com; s=arc-20160816; b=Xsanij4xripFLS/X5Z4oE/tzxlHd6WdZTgn/mfOfb7qZQRSIeq0eofGq6J0u5HPYhh vMCEyMGX5KEhvVgEi9k42lrqeEGmp2HHa7JBvODCCSPhpAFMxIMkbUCTiMfZ6TGllDUD J+eMhcnuQlqgi9OSCdIumhm5JcCvXuazqmWS5ZLHLNW/cSfOhDk9yHZ+EBTutSqSaxA3 xPxNLiJQ3CdtQ4qpIBaHfvz6SJldtVY/Lvhgzbubvmde7/I8VYGJoAneyrYokJETojmV 9kAkze88FeEWC56NUR4urAxUbkc5j32YoynF0g2ZRIbQQKoYpw+kVDr1A3bJxrwltinE kE9Q== 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=nQzY6ZjO4+NLotDe0Sqa2ADxdZIi5WF1I+zUsc2a/Bk=; b=K0lpNwTIkElEJtF7ZYNkI2jopBn9QrWgEih22nTB1rQ8pN+hL17s3p+oBUlaRHhmks 9GG0uu7gpE4mULRbOWRPxuTs5bQybVsZecDiIf4t58OyJoTpqEfvFSQnAhbzFEQg2hqs ZfPEFj6zXX6FEefbcXU+rrtE436hoPpGjEZea4UfjckAIBSn/CU8DvDAfbOnfBAUWov0 NQvzHo//yGjK2F88MkKVABR0Ti2+8rkg/Be7ObmwsytVFqa9yyAeXK3rFVHx5g4tYA2T bJYLOW/PDzUJ3y4B+mNeyxmf55j2i8k9IM+rZMtVf3xPbt370fg5h97YCPqArVd7mqf9 tO8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="Cb7/OvEn"; 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 q4-20020a632a04000000b00415da5925e4si13037682pgq.414.2022.07.12.09.50.36; Tue, 12 Jul 2022 09:50:50 -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="Cb7/OvEn"; 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 S234197AbiGLPnB (ORCPT + 99 others); Tue, 12 Jul 2022 11:43:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233884AbiGLPm7 (ORCPT ); Tue, 12 Jul 2022 11:42:59 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2082.outbound.protection.outlook.com [40.107.212.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0491C3AD9; Tue, 12 Jul 2022 08:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LZOpFImKTGPMlftvYhGeouRbTfh7hjgrCO3wixDRL/RSqBmvQEFciv4xwEu2DaKqpLjcmOR+UkbozH1yKUwithmHYcRLp5ehI3mGsqvOxyQxWfJq15n35mdmPdAUcqShL3wQV0xoz32/Ri8GHcacyqUpip8RA0fdr+rwDhHEi0RofZ8o/jMqGsd4o3MLiSG9YX1a6kjBWdfyq4oUIKWdWTpEJxV0udYv6oN4iQJ2Wdo4Gr5B9KwgP6ziHreMiIW9rU1tt1rMH8RS9BVWb/uQxfpG7QbNZwd0+afHqvaSvKC6INpzNeA6LuX/WZ2l6GQrWjojcXQvkhaednuHrcubIg== 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=nQzY6ZjO4+NLotDe0Sqa2ADxdZIi5WF1I+zUsc2a/Bk=; b=LYoVhn8pA54RqjZZ8KJQSoloRO8wNaq6Zq6qPyx18VDkRxYWW9ykOUitJN9DqfABmZCf/PotrHefLRJ5cRsuudadIhfXa3Uyr+zHUdpsxC2DbFqHnIyXMxI95TlQT68ULaiFGhub2GScYfa507DEImsiZa+nHDOEx6V9sXbB+ziUFwsD9MLwmjWle/E7qJBw8vR2arVzrTe6y5SdNzslAQs1E0DxApJ4KZmuwWMoqPwlb+nYHFO621h9MAsBtw0KH3OuX30QtFKNf+t4PawOeAOG5TK6AQmy85hEuy70MiSSvP3E2CxJRfSnCY6bM0W4XjyBYxdwlYCH1TCyMWZHRA== 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=nQzY6ZjO4+NLotDe0Sqa2ADxdZIi5WF1I+zUsc2a/Bk=; b=Cb7/OvEnPiJixiFJQ5Z/Kf2FeShEtqrR4HS9EYpfhVQY0APShOv4fCJyqqzFsYFRoWS+enelCFbtYq4KHCjPuCcsVaV3yQ8gX7+N09X5YpauFrrbKa+5H3mdAEofxexZyrZg2LgBBDJED8aBCBUgU7/wI1mHuqzImlq1qV3GWB4= Received: from BN9PR03CA0690.namprd03.prod.outlook.com (2603:10b6:408:10e::35) by MW3PR12MB4409.namprd12.prod.outlook.com (2603:10b6:303:2d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20; Tue, 12 Jul 2022 15:42:56 +0000 Received: from BN8NAM11FT065.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10e:cafe::c4) by BN9PR03CA0690.outlook.office365.com (2603:10b6:408:10e::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.17 via Frontend Transport; Tue, 12 Jul 2022 15:42:56 +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 BN8NAM11FT065.mail.protection.outlook.com (10.13.177.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5417.15 via Frontend Transport; Tue, 12 Jul 2022 15:42:55 +0000 Received: from pyuan-desktop.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; Tue, 12 Jul 2022 10:42:51 -0500 From: Perry Yuan To: , , CC: , , , , , , , , , , Perry Yuan , Huang Rui , "Rafael J. Wysocki" Subject: [PATCH v3 11/13] cpufreq: amd_pstate: update transition delay time to 1ms Date: Tue, 12 Jul 2022 11:42:42 -0400 Message-ID: X-Mailer: git-send-email 2.25.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: 058b4a92-0143-4945-e773-08da641d3094 X-MS-TrafficTypeDiagnostic: MW3PR12MB4409:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UFjL2xzPP3piniY8C9B0fPuXKEQLjgDvISiacVzwAFcLivI3El9ptBFxAimF6Tqs3aTv2DtfgqMbCOJykj9YjfdN/LXczT5ItfOvciV7S063Zc0rVSxz5BMESq3xu0f3WzvJemCVa3aBQDRpVZpzsLBKDPHrd38a3jCTuHM7QE+iRNLZ4p7qjpWEHYxsQcQtvkGaZGtPb18gg9bkNB1rBFtB/W530itEwVfp9Kne2375aQoUFcGCbWNu1NwZay+Et1QahhZsBKf67CGoQ5tnyDeC3lqKQPfjC74PllNbOeiHmUCyDVJrgS3dd8M5ajFQe1lfYJAQYIJUrt9mf6igob+jNUylKL8BjjYB5NmQG62NYSr7aIwG/BRSWaCwfrrjePhXwLdVCL6YKomeoCOMXoIQZTSsk3sYWDv3Mt9dv9XmJZEUdw2vZDtNvcIXj5PU///UolVx1VqVf+6dPTA6sEsHzVFFRSkRloWcTFogqvfNGvccQq75cyyVUcH3VFnCM8XSg4mD2Rr3O4xmhH7mdj0nkGV8R1HDhZOs5KBTfj4VhgZqEA5PJmM5Rsx6bPybG3z6aWqe1hI4GLYLhlvFzRZuC8aExeNeWkX24ak0M28Ylp7Re0UXy6DFawUk0SrC7Q2HYt/9a8JLa/dB9oAgjrG209Vf3HRrQ/Odq3CJoJAgcmDLf5Uq4L3U2QDLnB1Yj8hd3roozIv8+jThy0e9NZG69TCTq+ya8IqFGhZdI2hQlnjzjz2c3bs8en2UF1YiCO9YKNiwnzwJBuJJqabHf+iHD2IhFG43yQ1xfYxPsG/3VfBlHxlRcJmFz1crcxRobxPfI0e0ljJA4vJOy3f5XxB9h58B7yb8fWf1bykY2lk= 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)(40470700004)(36840700001)(46966006)(82310400005)(36756003)(316002)(478600001)(2616005)(15650500001)(40460700003)(16526019)(26005)(186003)(6636002)(110136005)(54906003)(356005)(70586007)(4744005)(83380400001)(36860700001)(6666004)(47076005)(81166007)(4326008)(41300700001)(2906002)(426003)(8936002)(40480700001)(86362001)(5660300002)(7696005)(336012)(82740400003)(8676002)(70206006)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 15:42:55.7459 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 058b4a92-0143-4945-e773-08da641d3094 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: BN8NAM11FT065.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4409 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 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. 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 a9918728948a..83570acecc78 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.25.1