From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 23 Oct 2019 14:39:26 -0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iNHnI-0003eb-I7 for speck@linutronix.de; Wed, 23 Oct 2019 16:39:25 +0200 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 34E9BAC7B for ; Wed, 23 Oct 2019 14:39:18 +0000 (UTC) Date: Wed, 23 Oct 2019 16:39:16 +0200 From: Borislav Petkov Subject: [MODERATED] Re: [PATCH v7 04/10] TAAv7 4 Message-ID: <20191023143916.GL12272@zn.tnic> References: <20191022165112.GK31458@zn.tnic> <20191022174452.GE29216@guptapadev.amr> <20191022190434.GR31458@zn.tnic> <20191022212902.GA30440@guptapadev.amr> <20191022215321.GY31458@zn.tnic> <20191022220555.GZ31458@zn.tnic> <20191023002756.GB30440@guptapadev.amr> <20191023052527.GA26602@guptapadev.amr> <20191023064653.GA12272@zn.tnic> <20191023132859.GA32452@guptapadev.amr> MIME-Version: 1.0 In-Reply-To: <20191023132859.GA32452@guptapadev.amr> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Wed, Oct 23, 2019 at 06:28:59AM -0700, speck for Pawan Gupta wrote: > cpu_mitigations_off() check after X86_FEATURE_RTM check will fix this. Ok, the second cmdline switch tsx=3D makes this a bit trickier than I was prepared for. I've reverted to your previous order: static void __init taa_select_mitigation(void) { u64 ia32_cap; if (!boot_cpu_has_bug(X86_BUG_TAA)) { taa_mitigation =3D TAA_MITIGATION_OFF; return; } /* TSX previously disabled by tsx=3Doff */ if (!boot_cpu_has(X86_FEATURE_RTM)) { taa_mitigation =3D TAA_MITIGATION_TSX_DISABLED; goto out; } if (cpu_mitigations_off()) { taa_mitigation =3D TAA_MITIGATION_OFF; return; } I've applied the first 9 patches and have incorporated as much of the feedback as I could. Will try to get a box for which the microcode fits and test it before I post today or tomorrow and we can continue there. Thx. --=20 Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imend=C3=B6rffer, HRB 36809, = AG N=C3=BCrnberg --=20