Return-path: Received: from mx2.suse.de ([195.135.220.15]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fBeZn-000360-Lo for speck@linutronix.de; Thu, 26 Apr 2018 12:56:38 +0200 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E8391ACE5 for ; Thu, 26 Apr 2018 10:56:29 +0000 (UTC) Date: Thu, 26 Apr 2018 12:56:15 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [PATCH v5 09/11] [PATCH v5 09/10] Linux Patch #9 Message-ID: <20180426105615.GG15043@pd.tnic> References: <20180426020546.338350662@localhost.localdomain> MIME-Version: 1.0 In-Reply-To: <20180426020546.338350662@localhost.localdomain> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Wed, Apr 25, 2018 at 10:04:24PM -0400, speck for konrad.wilk_at_oracle.com= wrote: > x86/bugs/AMD: Add support to disable RDS on Fam[15,16,17]h if requested >=20 > AMD does not need the Speculative Store Bypass mitigation to be enabled. >=20 > But the parameters for this are already available and can be done > via MSR C001_1020. Each family uses a different bit in that MSR for this. >=20 > xSuggested-by: Borislav Petkov > Signed-off-by: Konrad Rzeszutek Wilk > --- > v2: New patch > v3: Use the right CPU features > Move the whole logic in early_init_amd and init_amd > v5: Set X86_FEATURE_RDS on Fam16->17h > Change title to have 'bugs' in it. > --- > arch/x86/kernel/cpu/amd.c | 16 ++++++++++++++++ > arch/x86/kernel/cpu/bugs.c | 10 ++++++++-- > 2 files changed, 24 insertions(+), 2 deletions(-) Reviewed-by: Borislav Petkov --=20 Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imend=C3=B6rffer, Jane Smithard, Graham Norton, HR= B 21284 (AG N=C3=BCrnberg) --=20