Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp217247lqq; Thu, 13 Jun 2024 00:25:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvM3it9eL13qNQES/WZ6X/fN519+7n/tKujrZTyeXlwQJOIwu732l8w0IO+oYr1C6DKMi6HAUKVHf5Fs//IKLVLO+acrVG6LV7HAEuEQ== X-Google-Smtp-Source: AGHT+IF4ge7ASzA3meS0WYjgSr1oaAgM7sEdlO/G+f4qxuLI+k+DJJjww2EBD/GruBufSr6KMegs X-Received: by 2002:a05:6a20:4322:b0:1b6:7d9f:d25f with SMTP id adf61e73a8af0-1b8bf0c5f5emr3137050637.21.1718263554480; Thu, 13 Jun 2024 00:25:54 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310c718si799691a12.318.2024.06.13.00.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 00:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=tWKj1cXH; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-212690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 10FB228557C for ; Thu, 13 Jun 2024 07:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68BD813A3E0; Thu, 13 Jun 2024 07:25:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="tWKj1cXH" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2078.outbound.protection.outlook.com [40.107.220.78]) (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 CBF685CDD0; Thu, 13 Jun 2024 07:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.78 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718263546; cv=fail; b=lFAfd6rwRy6QHYeipELt8WUxW15E8VbRyUo4nzr6uRrtaC6IS5IiwbpHygMhgK9Zy8xpFRMyZdoYKGATnZMJZ+KyrpjpZslsFkALaNsxcxJipw5MLL5lZA8gTDNAKKh4xt04CmWD8b2lxMEBTfpc0H40CkoCOew9SQCYlPtweao= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718263546; c=relaxed/simple; bh=PkYLlZjxfECQNAtTpwSLNaDDoS6fj9PfSinZeOrh2Ng=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uKpTlnb75E0xkYQtndPArhW78ighuR056JHtcMKfpflJONx6vIVzLg5bgph41igzY+LFRMsc9TWAZ3f0nkTIteo0VC2pe6De4IUD0vjvFellVMyYf4itqJV7WSB5QrTzXZcLSEGstALmq/nQqN4rUrnybRujugrytJUtCF5SLnY= 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=tWKj1cXH; arc=fail smtp.client-ip=40.107.220.78 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lrrs9SCSE4KcP3HoixoeU+S9ggdZBgjgpKZ7JKTeDTUz9PCo9NTPaPawafm28xQhVgcKJ/ompv4+zLb2GU9/K+OKa2Yk4tWj8+xdEtKdIAn2V53Gtj5/lN/xCrQJnRvSVWPMmurNNzKKLGbT4IU2TzEAIQMNyWBLZhg7dZeLk0Pr+CYqcvPfcMVOQ51qZB+qRQRcB+E+k+qvSRQ1ub9HOzy+uuVM7P7/Kpx128WaWrrqAHwvzzMekVOYXlIGuqJnS9y+MXKh9kg/fzfM9zZKswVwxSVd1r08jsKUgnqHKOyTNYFAQwgAyjvKUK1SmsAYGIUOOObxHzSuq7DDvmF6Tw== 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=RQRULbL83Wq7yBUahvTIeQJ17zPzxLeAflkvrXSzwkM=; b=kLZP69/kStonYgXAHHB/+7nMtdzy9i8PfTEXspTt4cCm5KtnQ28pl+hd1SnucxOVdJCKlsYRwbOdBW/phC5oL7I4AMZiE+E+loGqBJCgtNzBOYhFzcMrQzbUtpddUWN1YT1ijO0fuInYdLXyCGQBcqioism5HDq0Nl3hfi2CfahqbYmxC/cZCNh34CyKxmVPpvo4/5Gyg4B6N04Ug3WTsUD9bko5TU66afUlvxgKACP6NcNO06Ql4R1qirSW6sx0p90BxsZ0K9GlBnBhqcGXaIdORkyQ0e4l3gm12HLENweyKMqsYNJIpF09tXeUxzK1gSpO+Vh8M6mnFp1n4WgNOA== 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=RQRULbL83Wq7yBUahvTIeQJ17zPzxLeAflkvrXSzwkM=; b=tWKj1cXHCL17OEJLTLKFxzFsM3pxsyls5UimJFR79OBc2lzUbGRRvBKvRwv5B5ilT+lK5+AYUQkq3As8qPUr8eQbU3yH1CHnFQpcz53107DGbvpb67TYHDrJRkw4NMBXczHUYkDATIl5ToG6sip8pshhBRpcqCORcdPiW6NIOTM= Received: from BL1PR13CA0072.namprd13.prod.outlook.com (2603:10b6:208:2b8::17) by IA1PR12MB6457.namprd12.prod.outlook.com (2603:10b6:208:3ab::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Thu, 13 Jun 2024 07:25:42 +0000 Received: from MN1PEPF0000ECD9.namprd02.prod.outlook.com (2603:10b6:208:2b8:cafe::1a) by BL1PR13CA0072.outlook.office365.com (2603:10b6:208:2b8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20 via Frontend Transport; Thu, 13 Jun 2024 07:25:42 +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 MN1PEPF0000ECD9.mail.protection.outlook.com (10.167.242.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Thu, 13 Jun 2024 07:25:42 +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.39; Thu, 13 Jun 2024 02:25:38 -0500 From: Perry Yuan To: , , CC: , , , , , , , Subject: [PATCH v11 1/9] cpufreq: acpi: move MSR_K7_HWCR_CPB_DIS_BIT into msr-index.h Date: Thu, 13 Jun 2024 15:25:13 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: MN1PEPF0000ECD9:EE_|IA1PR12MB6457:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ed3c314-e697-402e-7bf8-08dc8b7a086f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230034|376008|82310400020|1800799018|36860700007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?k1mlgG9UUFGHMKSYPyZrGm3afR8ARntwepK9G540pH/52uoZDev2ho5lwwtU?= =?us-ascii?Q?TcJ/Jv8qPzaPPuKEaZ4NKBD7//tp9vhF/GUn/g3n4YyM9IW2UGniWyVjrobS?= =?us-ascii?Q?UlMr/TVsBon2yqVhy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-ascii?Q?gtVdQ4jlRE06loT3YH5occfSzOCju4MaIce0eqkqz6UmzyXJ82goGXnCO4UQ?= =?us-ascii?Q?qXTD7zUPGJ6+N5Lk0mqMaPF+9Xm5wSz25qLDtKvhW4uPU1Cd7cr6m28geKU3?= =?us-ascii?Q?AgaYRkIRUAqJzPtQd7hqUKE52g20+PXjNbHHrdh6aXWxOJlsyWmed3WdH/mt?= =?us-ascii?Q?kr/4M2usBcRFhl1zjXmBoDMNIfhgL/7mPp2i8zw5UbknDfyap3vWUfWsfcca?= =?us-ascii?Q?qS40kW+YjwZ+0ktIbn3ly1Jb/wtEXQ+WJ6+eBiKtnsUAYi8b7DDEHlImpIvu?= =?us-ascii?Q?f9iBtOcRhmuXNY7Rubw4q0SvSO7wTiSrZs0+vS8Ovq/V4H0XhEYpyvKOvDRD?= =?us-ascii?Q?5rEAI5tlmU02eqsfwMKUeTtW03n1nvPCxDmk4aV5+vgLKo82Mg=3D=3D?= 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:(13230034)(376008)(82310400020)(1800799018)(36860700007);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 07:25:42.1062 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ed3c314-e697-402e-7bf8-08dc8b7a086f 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: MN1PEPF0000ECD9.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6457 There are some other drivers also need to use the MSR_K7_HWCR_CPB_DIS_BIT for CPB control bit, so it makes sense to move the definition to a common header file to allow other driver to use it. No intentional functional impact. Suggested-by: Gautham Ranjal Shenoy Signed-off-by: Perry Yuan Acked-by: Rafael J. Wysocki Acked-by: Huang Rui --- arch/x86/include/asm/msr-index.h | 2 ++ drivers/cpufreq/acpi-cpufreq.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index e022e6eb766c..384739d592af 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -781,6 +781,8 @@ #define MSR_K7_HWCR_IRPERF_EN BIT_ULL(MSR_K7_HWCR_IRPERF_EN_BIT) #define MSR_K7_FID_VID_CTL 0xc0010041 #define MSR_K7_FID_VID_STATUS 0xc0010042 +#define MSR_K7_HWCR_CPB_DIS_BIT 25 +#define MSR_K7_HWCR_CPB_DIS BIT_ULL(MSR_K7_HWCR_CPB_DIS_BIT) /* K6 MSRs */ #define MSR_K6_WHCR 0xc0000082 diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 37f1cdf46d29..2fc82831bddd 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -50,8 +50,6 @@ enum { #define AMD_MSR_RANGE (0x7) #define HYGON_MSR_RANGE (0x7) -#define MSR_K7_HWCR_CPB_DIS (1ULL << 25) - struct acpi_cpufreq_data { unsigned int resume; unsigned int cpu_feature; -- 2.34.1