Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758207AbcCCP4s (ORCPT ); Thu, 3 Mar 2016 10:56:48 -0500 Received: from mail-bn1bon0062.outbound.protection.outlook.com ([157.56.111.62]:60128 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754373AbcCCPzF (ORCPT ); Thu, 3 Mar 2016 10:55:05 -0500 Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=amd.com; From: Aravind Gopalakrishnan To: , , , , , , CC: , , , , , , , , , Subject: [PATCH V3 1/5] x86/mce: Move MCx_CONFIG MSR definition Date: Thu, 3 Mar 2016 10:10:54 -0600 Message-ID: <1457021458-2522-2-git-send-email-Aravind.Gopalakrishnan@amd.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457021458-2522-1-git-send-email-Aravind.Gopalakrishnan@amd.com> References: <1457021458-2522-1-git-send-email-Aravind.Gopalakrishnan@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN1PR0701CA0022.namprd07.prod.outlook.com (25.162.96.32) To BY1PR12MB0421.namprd12.prod.outlook.com (25.162.146.30) X-MS-Office365-Filtering-Correlation-Id: 01375c15-80a1-4d43-ec6c-08d3437c2c48 X-Microsoft-Exchange-Diagnostics: 1;BY1PR12MB0421;2:thHomovF12apu/LOILDdphmvbMn/a/YGRPjB6FeIrw1dGZx7rMCQLqjN4ybL9KQYygc0tDkGdpruyvdpmam97Qw93FHlFlg7W2mydaFwWls6GY+ITK1VAQR2AUX7jGY9oACWirqTRHFC2O4VgvUzO+3tex/L2SfQ/UiR/ztBlMXvzR1p3EaTXgNYdwXkpy1M;3:vr6H12gqpYC9hiQM2op3VuHpDLs3r32voGBajcDZRVcWxFVmreoprCXYRwCTxAn4g5q7gBilJIGiiCl0YlqPCMiKEU+jRrLmsaFL5AV/ZyeL/hm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jnJlIDYEKahTwiBmOPzGAOvGrsGJKCxu9L3G+Wx2sICKBlTN5qqKkBsv3vEOjxGdMAvDNKAcnXlOFERG5RsQkMNntp8R9jf3ia0L+YyFdyhatBHSjg075g+n46a6mFktFqpqnT6GJenILyvuAvA6KgvuZnBgT1k4DYBQ0Qi/v3S5y38n92WNVi4kHPjEqLlSyd52lPPclDoSgbXFhMDIOVS3g4B7FFM7ekoiHTxvDkUdSQoGIfaDuSAcEk4mDPGCLUI/vzqN8so X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY1PR12MB0421;BCL:0;PCL:0;RULEID:;SRVR:BY1PR12MB0421; X-Forefront-PRVS: 0870212862 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(209900001)(229853001)(2906002)(48376002)(2950100001)(40100003)(50986999)(92566002)(122386002)(4326007)(76176999)(50226001)(189998001)(5001770100001)(42186005)(15975445007)(6116002)(50466002)(586003)(36756003)(1096002)(5008740100001)(81166005)(15395725005)(2201001)(86362001)(87976001)(53416004)(5004730100002)(66066001)(19580405001)(47776003)(19580395003)(77096005)(5003940100001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR12MB0421;H:arav-dinar.amd.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR12MB0421;23:IpzrsHzAE+YwTh/oZbJ0/t1b4a1gpKsuZmD7eTw3J?= =?us-ascii?Q?UN+XsdGh8q6tHO9300mepMEPh1jDtIgiJrdBQHWtiFAso9w+PhH9TXb/ziq0?= =?us-ascii?Q?xFt5El96UBARS45RVLXQg/hhlcyteueG0n9TkBEPxFS3a4x9vVK7YatJd1q+?= =?us-ascii?Q?a0xw5DF4xB3AGK9qg5lVFdB2EDUubHQoOwOGhGrbD4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D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR12MB0421;5:o2UhQYqW9EE9aPJ2S0FegUZEsnVYQTMqdP34qANBSU420ObeKBpN9gk3jjX7CHrzLmiO2tKGW1B02hMaUVwvj6udJGoePos0vwoQEqrkqprRSCTnf6UArtHVowavFvUeVz+IVLU9Z1/66tI8OG5NxA==;24:UiMkquWlsvUmOeu/1ejdCISmgnvwyKk9r4ChPM+6jWkLPhXYNVDOM1FoY62B7tPOxmj7z66MUEnlApViNmjYqbe2IA3zSXtSIosk0zLaXlA=;20:mzScg7apJcCYQQuUWxykR+etHantSt6aZ9GQ5au/Q77njyt0XJbXUEQtW9UW/zbdNW5xj9NukW7pgdQJODQqEQGal8+YBTiZ1BPnZPiMnl3tBwpg6I2fq84SlPUj8US+il5xK/Cnva49WwLxt+CgJhbnLukMoaXWh+pQiobFUOX3lr6ZYVClO3szt4NI3FJBgbZnBiJaDfnUHu/3GjE9jULvQoBsh7Vw8DeA4HCTjFZ+04IYnpWMiKAaSr776850 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2016 15:54:56.8759 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR12MB0421 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1529 Lines: 44 Since this is contained to only MCE code, move the MSR definiton there instead of adding to msr-index Per discussion here: http://marc.info/?l=linux-kernel&m=145633699026474&w=2 Signed-off-by: Aravind Gopalakrishnan --- arch/x86/include/asm/mce.h | 4 ++++ arch/x86/include/asm/msr-index.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 18d2ba9..e8b09b3 100644 --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -91,6 +91,10 @@ #define MCE_LOG_LEN 32 #define MCE_LOG_SIGNATURE "MACHINECHECK" +/* 'SMCA': AMD64 Scalable MCA */ +#define MSR_AMD64_SMCA_MC0_CONFIG 0xc0002004 +#define MSR_AMD64_SMCA_MCx_CONFIG(x) (MSR_AMD64_SMCA_MC0_CONFIG + 0x10*(x)) + /* * This structure contains all data related to the MCE log. Also * carries a signature to make it easier to find from external diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index 75a5bb6..984ab75 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -269,10 +269,6 @@ #define MSR_IA32_MC0_CTL2 0x00000280 #define MSR_IA32_MCx_CTL2(x) (MSR_IA32_MC0_CTL2 + (x)) -/* 'SMCA': AMD64 Scalable MCA */ -#define MSR_AMD64_SMCA_MC0_CONFIG 0xc0002004 -#define MSR_AMD64_SMCA_MCx_CONFIG(x) (MSR_AMD64_SMCA_MC0_CONFIG + 0x10*(x)) - #define MSR_P6_PERFCTR0 0x000000c1 #define MSR_P6_PERFCTR1 0x000000c2 #define MSR_P6_EVNTSEL0 0x00000186 -- 2.7.0