Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751295AbeADXqT (ORCPT + 1 other); Thu, 4 Jan 2018 18:46:19 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:43354 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751108AbeADXqS (ORCPT ); Thu, 4 Jan 2018 18:46:18 -0500 Date: Fri, 5 Jan 2018 00:45:58 +0100 (CET) From: Thomas Gleixner To: Andrea Arcangeli cc: Tim Chen , Peter Zijlstra , Andy Lutomirski , Linus Torvalds , Greg KH , Dave Hansen , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] x86/idle: Disable IBRS entering idle and enable it on wakeup In-Reply-To: <20180104234227.GB13348@redhat.com> Message-ID: References: <50b92931dd3cd403d60e69533f5583bbdbbb88d0.1515086770.git.tim.c.chen@linux.intel.com> <20180104224731.GE32035@hirez.programming.kicks-ass.net> <0ebb1848-c3ab-f636-f6f9-67716e814915@linux.intel.com> <20180104234227.GB13348@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, 5 Jan 2018, Andrea Arcangeli wrote: > On Thu, Jan 04, 2018 at 03:22:09PM -0800, Tim Chen wrote: > > No one should be calling this with IRQs enabled. This check is probably > > just paranoid. I can get rid of it. > > Yes, confirmed. > > > It probably doesn't matter as we will be switching the check > > to the spec_ctrl_ibrs a couple of patches later. > > The other problem with static_cpu_has is later the code intends to > support the cpuid rescan post late microcode update which will set > bits in boot_cpu_data (and transfer them to each cpu_has). If we'd > only support early microcode update static_cpu_has should have been ok > too. What's the problem to make the early update mandatory for this? Thanks, tglx