Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1430682AbdDYM70 (ORCPT ); Tue, 25 Apr 2017 08:59:26 -0400 Received: from mail.skyhub.de ([5.9.137.197]:42804 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1430646AbdDYM7V (ORCPT ); Tue, 25 Apr 2017 08:59:21 -0400 Date: Tue, 25 Apr 2017 14:59:13 +0200 From: Borislav Petkov To: Denys Vlasenko Cc: Ingo Molnar , Andy Lutomirski , Brian Gerst , Peter Zijlstra , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86, msr: Better document AMD "tweak MSRs", rename MSR_F15H_IC_CFG Message-ID: <20170425125913.5nnd436dz54q7cld@pd.tnic> References: <20170425114541.8267-1-dvlasenk@redhat.com> <20170425115948.6hekn2xklodjil7e@pd.tnic> <785f402c-a830-1d23-545e-289fb14a84a8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <785f402c-a830-1d23-545e-289fb14a84a8@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1082 Lines: 33 On Tue, Apr 25, 2017 at 02:16:55PM +0200, Denys Vlasenko wrote: > However, all IBS registers are in this range. I knew you were gonna say that. But IBS registers are architectural too in the sense that they are behind a CPUID bit. > DRi_ADDR_MASK are in this range - and these are very useful, likely to > stay. Those are too behind a CPUID bit. > In the arch/x86/include/asm/msr-index.h file we already have > three "tweak" MSRs defined with "AMD64": > > #define MSR_AMD64_LS_CFG 0xc0011020 > #define MSR_AMD64_DC_CFG 0xc0011022 > #define MSR_AMD64_BU_CFG2 0xc001102a > > I just noticed that we have a fourth one in > arch/x86/kernel/cpu/amd.c: > > #define MSR_AMD64_DE_CFG 0xC0011029 That's wrong. I think we should call those something else but not "AMD64". Perhaps the families for which the workaround is being applied. In the last case, MSR_F12H_DE_CFG, for example. And yes, I should've paid attention to that but ... -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.