From patchwork Tue Apr 23 08:40:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuan, Perry" X-Patchwork-Id: 791852 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2061.outbound.protection.outlook.com [40.107.93.61]) (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 6B6C45A7AE; Tue, 23 Apr 2024 08:41:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713861700; cv=fail; b=XRKWzjNkNwbPjl8NJeQUDix77JYgCU++VZR4AgFNB5V54LpenM02iIKivGSTfsqzbEJQ0THubmrPUrl6ElRjKNBDA6sK6JcSjn4hw1ERp+PEZbSURSpq+x/YnAZFHJuscej0F7pEMvcRFEo/8ZarTORLSLAjHKIouBf0VQTUoKU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713861700; c=relaxed/simple; bh=W+dCh9C8EntywcvXhSubkaBnZJJuzKjsF7idcfLgto4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K9KAApiNdPbmRLNCIn4XkR7gsyZBWNUuZ6dMU2YdMHrLGsddMFFA3vPXKPbeOsDM4jGsKp0O8L9SdxU6OmIbohPqvasyidAP43saTKcgaNdAMEyWYka/X/wt/uQ/68ZwWLGeXTCYY/r2/xx1dvQyjDdPQBWirXqUsHtNc/OxCxw= 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=B+KSOM5C; arc=fail smtp.client-ip=40.107.93.61 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="B+KSOM5C" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B7R3DOjUP5jAzpsGHKefq1Gi1i4B6M7abT5WlyJHGP7jmbSA+BKs8HL3AF3Yta3ZVJ5Stxo2HU6i3VjG1G7D8w25STpgFd3g1CqeHuzJhtsYnh8yVkVxZk6WkIAuRs08CpeNvg+OlXnPaaNCQ6/e6SSoM7cu3caS4DB9iBAArQroTn51+jK+7Gx4tPsClFwgJ1H9GEMpYBqvPzsXLylkLg3M9O/bWDbqvS68Qs1leqjKJA+hrApv0GiCuxbaHQHlxN00LkjO4qFtjZuZaJBG8y+Lxi0fqYvYe/r9kC2sGpZoc4QGCKJmwJRfjrfN9xbQY4uPWmRXeIITsIRyvC6+lQ== 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=o8EDLYk3NSyioGPjxU+pIEAuL4I7f4cRvkuByN872I4=; b=BxRukI8hoytJE81wLIUezbWpiDldJmLaVVQennyPJR5RiKqe3oZUO9nG3OOSJeHMoraVkTip8jO7pN3ijvPw9ZZjUhACw80lnEuKW9RIp/Pu1vUoaKiYoYbKz6JaKD2mGFJHqljdMGg+su03YMjS9LMhp4DsQW0hjfd8bYoScI5N1McqgVsdkhKRT/Bt/OYnYlHmTvOhOT1XYCl3P0zx5zbobc5T7mxyWzNiJLUstEG0vU5RCHWMS3B7XHryNIrbV/WRCdKJge5jqO3ylPHY1/gmu6/WjgoLKJTCrf2tNN2VPSusC8Hnkah6LTCVW0inhxSWq7UV8z8ksHYNNHbUtg== 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 (0) 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=o8EDLYk3NSyioGPjxU+pIEAuL4I7f4cRvkuByN872I4=; b=B+KSOM5CBTa9RbUWqm9sBKOTxjYgfGkMdWanUIcMqgr+hw3HzefRSpAVZXGsmZfg0zf9XdnL0OCEn1hu6ACHKv8y0ZBwGhhMpW/odL315+ARU7kwjqNWtmjrAKbeGR1nwKnyh+z21EPsbKYHOU3fdUlQ1fyeYLxWu+3h+mhaqp4= Received: from DM6PR03CA0057.namprd03.prod.outlook.com (2603:10b6:5:100::34) by SN7PR12MB7451.namprd12.prod.outlook.com (2603:10b6:806:29b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Tue, 23 Apr 2024 08:41:36 +0000 Received: from DS3PEPF000099DC.namprd04.prod.outlook.com (2603:10b6:5:100:cafe::c7) by DM6PR03CA0057.outlook.office365.com (2603:10b6:5:100::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.35 via Frontend Transport; Tue, 23 Apr 2024 08:41:36 +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 DS3PEPF000099DC.mail.protection.outlook.com (10.167.17.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Tue, 23 Apr 2024 08:41:36 +0000 Received: from pyuan-Chachani-VN.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.2507.35; Tue, 23 Apr 2024 03:41:32 -0500 From: Perry Yuan To: , , , , , , CC: , , , , , Subject: [PATCH v7 6/6] cpufreq: amd-pstate-ut: support new cpb boost control interface Date: Tue, 23 Apr 2024 16:40:59 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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-TrafficTypeDiagnostic: DS3PEPF000099DC:EE_|SN7PR12MB7451:EE_ X-MS-Office365-Filtering-Correlation-Id: e2958de3-5bae-4203-e5db-08dc63712ff5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y0zhh1idaBn1Tj+XkXOXAh2s4RcMC6WLC5TixD+5EhvZsxk61IW59FbITLDm4bDcTJl/vbtWatFHV5153V7jtOQPHXCvJw5/5MmbcCmRLZELRZOCUg6ficO1Uzdy7ab4vcI+oe09JOvm3yFj6BwNzVBBWGHJ5a+KQmnsy/XKzQ5YKt5lvZm1MV7/fPAJFuoK3YwWaOwh8/ERGwx2jB/qsYTovk90a/SEfeDhUMsOEID9n++nuJIRmR6ez6b0nOOGMkdo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BFAMOw8tJ4yCaIBLKyaOtkdaZ/UdtWKyFo8DrHq4rSqJ5TJ0Z3x9dzkOJR5AEz 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:(13230031)(36860700004)(1800799015)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2024 08:41:36.6085 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2958de3-5bae-4203-e5db-08dc63712ff5 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: DS3PEPF000099DC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7451 As the new CPB boost control is enabled, pstate unit test needs to remove legacy `boost_supported` check and start to use new CPB boost control interface `amd_pstate_global_params.cpb_boost`. Signed-off-by: Perry Yuan --- drivers/cpufreq/amd-pstate-ut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/amd-pstate-ut.c b/drivers/cpufreq/amd-pstate-ut.c index f04ae67dda37..b3601b0e6dd3 100644 --- a/drivers/cpufreq/amd-pstate-ut.c +++ b/drivers/cpufreq/amd-pstate-ut.c @@ -226,7 +226,7 @@ static void amd_pstate_ut_check_freq(u32 index) goto skip_test; } - if (cpudata->boost_supported) { + if (amd_pstate_global_params.cpb_boost) { if ((policy->max == cpudata->max_freq) || (policy->max == cpudata->nominal_freq)) amd_pstate_ut_cases[index].result = AMD_PSTATE_UT_RESULT_PASS;