From patchwork Wed Aug 28 10:10:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gautham R. Shenoy" X-Patchwork-Id: 13781044 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2081.outbound.protection.outlook.com [40.107.237.81]) (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 A291E32C8E; Wed, 28 Aug 2024 10:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724839862; cv=fail; b=piTze88oCqb3265LqQ18xb/aA07q1+lhQakt5dQ7uv12Ggm3zs2RhesFLa4Eeqz9BaInu2d3JimDCrpSzuj0Kn4ZjGjiUFmcGAeuUQUKXDmCSqydlhoRh/DZEI48qN0khTrym1XSRqSdshGQChZ/91lT2Uainsqk+mfvN0pehPg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724839862; c=relaxed/simple; bh=wD7lfzto2CBj53meBb0n3GLFFRmqexN+zEjsMremeqA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Z3xrRms6NAHyYx016MCpImwGprd05QqAPhkeFNJNex6DxbEzODtbvMXOFvUCan/OenoIA+UaG4BzrEGlCAbV0PvWuFLj58p87isg27swm5sWCAAD3EwtTvLlRNj/Ky0OsQCptd83rkVYz/ierHw73X8dUo+HK9mCS38wnFQGMXg= 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=ooBgkWYF; arc=fail smtp.client-ip=40.107.237.81 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="ooBgkWYF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Hgp5nj7UZlBZ6saPlKQKIRoPNm9HrUhQctPZGA+3AgU3h2qtP1vRHS6k59XicOQ+R4Esof1FQq4Adyy5IEF8m7QgM5WBVjq04lTrCNLGt1imEPRvsr7J8MQhphDeoMt4i68W/qaVtIcus+Ac73nYLIH8bPI0ETLrDURGCKBKJTNLDwnAWc3LOBSrZxLlU6RuDrx0AHTLXQCAoo6LbFJgJZ6aJfJqSEpNSdERP5TFwQTbCYB+wfYNlvNhqwPU1Il97DAd2y4Xqd47LmiB7+NBgc49fmFAY0c9QEW6YV3fROj0zTpRUnnzz7o04KxOJpmGU7QeUYCU2AdB0czJqmKjBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=gfec9QP3yVwaigL2L/UIgvyLoE0fkZapSKCOdlYuFa8=; b=iZWfuLjbr4JZGFBngv1eqJ6GQ5mcHoUQVLve4Z1ZF28d8YpwTRJe2DGU1RylczQX6hZStd3Ae5cqTab+OtOyktJvOpc1ZuPd82ImxDTcj82DrVSyWyPGaY2zs56sG/OJLVZz48C/KO7OIpZIpMOIcvz6h+rUnsu/Oa8HGozy0px/HTSFIoGF+qk7L7/p1bVW0NtTHSLA7aCspVoMrtax5Mll+iaulcWT+sq22QCukGJgi/8/e41f2t72ax7kkx4O1YJGEuCcrels6XQ8E2KoM8yNN7/yCsR7pGnHUoyvQV1yIDbzxsTA2doAGDxx+7QxGrcBWyN5d6m2bRR/nMX8GA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org 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=gfec9QP3yVwaigL2L/UIgvyLoE0fkZapSKCOdlYuFa8=; b=ooBgkWYFzy3eXBhzwSqm1hu0uSG0Tn57QJKmQh7bUHorpM+ezjb7c35eHrzoRT1xkc64DVZkyqvgRp+bFxGilRodATXMlN1GPMZRH+s66eVEuAG/VZjmNWSPVjU4OwzOhXwwhIAS0xHqBkv34CwpImYsBfSRaoze9ZGvupVLHxI= Received: from SJ0PR03CA0218.namprd03.prod.outlook.com (2603:10b6:a03:39f::13) by MN2PR12MB4061.namprd12.prod.outlook.com (2603:10b6:208:19a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.26; Wed, 28 Aug 2024 10:10:56 +0000 Received: from SJ5PEPF000001C8.namprd05.prod.outlook.com (2603:10b6:a03:39f:cafe::95) by SJ0PR03CA0218.outlook.office365.com (2603:10b6:a03:39f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.26 via Frontend Transport; Wed, 28 Aug 2024 10:10: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 SJ5PEPF000001C8.mail.protection.outlook.com (10.167.242.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Wed, 28 Aug 2024 10:10:56 +0000 Received: from BLRRASHENOY1.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.39; Wed, 28 Aug 2024 05:10:52 -0500 From: "Gautham R. Shenoy" To: "Rafael J . Wysocki" , Viresh Kumar , Mario Limonciello CC: , , Huang Rui , Perry Yuan , Dhananjay Ugwekar , David Wang <00107082@163.com>, "Gautham R . Shenoy" , Xiaojian Du Subject: [PATCH v2 0/1] cpufreq/amd-pstate: Fix warnings for X86_FEATURE_CPPC Date: Wed, 28 Aug 2024 15:40:34 +0530 Message-ID: <20240828101035.2099-1-gautham.shenoy@amd.com> X-Mailer: git-send-email 2.34.1 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: SJ5PEPF000001C8:EE_|MN2PR12MB4061:EE_ X-MS-Office365-Filtering-Correlation-Id: 4dab7b40-14cd-4735-3f65-08dcc749b53a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|36860700013|376014; X-Microsoft-Antispam-Message-Info: GRAZ488JW4S1qpqjqu/Q6c8szi3436kgiy4IGyCWosKygNpFYucc39OZCtvtnpshMN3ioWFAJq39oB/a0WvXUW3b+tl3flOpsTTZJAVKvh6uizD7jIUrnuoy5A0nz9GFq7Anb9rzN6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556Rp6SPbanz30O9oGJJE+1UqB9lD3Ir524pxRVwAMHqcoQarkn81+0Z195byl5C1p1Y80pHTBMhPlX+6xcDr+Z2zffMfKlMy6P7+96rYrMrSg7m5Ow5lsiQ6fXSY1x3tmOe5qm1UWP4MFLDqPw1d0G4QxPNztUPLBZkwUap9x6RoDjeO55zCEPv2d4/R+t80KFIRBC3kR/YZ0GaxGDYCl8ndfn4bbSY35Uts0xcsjddoAOa+8ePk6KO/s0Zi7fUOX 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:(13230040)(82310400026)(1800799024)(36860700013)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 10:10:56.5238 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4dab7b40-14cd-4735-3f65-08dcc749b53a 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: SJ5PEPF000001C8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4061 Hello, This is the 2nd version of the patch to remove the warnings for X86_FEATURE_CPPC on certain Zen Models. The v1 was posted here: https://lore.kernel.org/lkml/20240813095459.2122-1-gautham.shenoy@amd.com/ Changes from v1: * Removed the warnings only for Zen1 and Zen2 Models 0x70-0x7F after feedback from Xioajian. * Modified some of the comments, and introduced the switch-case statement for model range checking to improve readability The patch is applied on the "amd-pstate-fixes" of https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git Gautham R. Shenoy (1): cpufreq/amd-pstate: Remove warning for X86_FEATURE_CPPC on certain Zen models drivers/cpufreq/amd-pstate.c | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-)