From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbdB0Wz7 (ORCPT ); Mon, 27 Feb 2017 17:55:59 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:53516 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbdB0Wzy (ORCPT ); Mon, 27 Feb 2017 17:55:54 -0500 Date: Mon, 27 Feb 2017 21:35:49 +0100 From: Peter Zijlstra To: Paolo Bonzini Cc: Thomas Gleixner , Wanpeng Li , Mike Galbraith , LKML , Ingo Molnar , Borislav Petkov Subject: Re: tip.today - scheduler bam boom crash (cpu hotplug) Message-ID: <20170227203549.GA6500@twins.programming.kicks-ass.net> References: <1484811069.17751.14.camel@gmx.de> <20170227130440.GW6500@twins.programming.kicks-ass.net> <15367170-e1c0-8901-7e15-940d8d699c21@redhat.com> <20170227155954.GY6500@twins.programming.kicks-ass.net> <111f89b9-22e3-5a0f-3469-6f64092521ff@redhat.com> <20170227163606.GZ6500@twins.programming.kicks-ass.net> <1104576579.26276825.1488222387110.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1104576579.26276825.1488222387110.JavaMail.zimbra@redhat.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 27, 2017 at 02:06:27PM -0500, Paolo Bonzini wrote: > > > + if (!boot_cpu_has(X86_FEATURE_NONSTOP_TSC)) > > > + mark_tsc_unstable("not invariant"); > > > > Errm, no. > > > > That makes TSC unusable for systems which do not go into C/P states in > > which the TSC stops. There is a world outside KVM .... > > Actually I was surprised too by Peter's patch, as it was adding > mark_tsc_unstable pretty much everywhere that didn't have nonstop TSC. > But hopefully it would still be okay to call clear_sched_clock_stable > in tsc_init, in the same way. I was preserving the sched_clock behaviour. That said, maybe we can simply remove all those extra checks and only rely on the current mark_tsc_unstable() calls. I'll just have to sit down and consider the various cases..