Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp907668ybk; Wed, 20 May 2020 15:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1QgcmbXa9tArWMjUQ0G8/IEPLrIkIzY7Fb6vy8TEMNmYcohnVBgTxe9lM1mo1XuZqtrE8 X-Received: by 2002:a17:906:6891:: with SMTP id n17mr1070608ejr.338.1590013386647; Wed, 20 May 2020 15:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590013386; cv=none; d=google.com; s=arc-20160816; b=mndphY/ORJdirZhm/WMg+bUVYwQG6gELOkLY2/L+GfNxi0Z3XOxxrBGPZryIUsjk2t 4pIWAbDHwj4EBZQgfbH07cHVGI6yn2UhySz6LsPHHbBJLaFksXZ845jLeCXswSy23fgt mnNXGtHgcP7K4nDUKidP8ODR6FddW8C1myk6sQ0rX0xrEPrzHRhpSa0HDF3GMk5e7fyN hgKBdgWn3hmVTSfZi4FBC1EaVrr+MwjgUw5tjbKh239Sz93zenSnMrmsKNUfaqQweFZS poXRmwjaVccts/nm3t2ao4bWIyjeOKvO6C9A6UCNnXxHUHQ5Iv2huF9YAx1q6sBE2E9P Bgsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=v6ZtvHl/pTW3eJW5e+gRyUE0Wc4uhCTnsA7vV30WeZg=; b=ld4iZTHkz4nlb0GSUiYN8FlqYwfaZP62L7BGT5rPYwdrtA2RAoVFc2Q1kVx+RWFO+h 1Lf3VHdAjIfk1XNarcOsx6AOT/KE5MoAgkptBXwFvuT05QfYzhs5d5f+ZB5nponbNWK8 /yAC/b5H/8cXB8qmB2OYk3IZOIiifCMTNb1qf8qhcqgNy3QblFCmHtuRVj5JR7MZEg4w MdtMFxfq7EtnLVP9dTKOk1ETIkv3nzuwugwmkvtCTYrIOq09J42QMvXZPnYPIp5cfcFJ PHpdoEBWBrpNJOsvuAfoThK114zvSOzNTeE1Vp5p4sB1CJLtWPRAIY9BxXlN2wqVtNMJ nKjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr9si2383057ejc.163.2020.05.20.15.22.44; Wed, 20 May 2020 15:23:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728550AbgETWUt convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 May 2020 18:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgETWUs (ORCPT ); Wed, 20 May 2020 18:20:48 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D423AC061A0E for ; Wed, 20 May 2020 15:20:47 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jbX4J-0004yy-Uc; Thu, 21 May 2020 00:20:08 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 649C8100C2D; Thu, 21 May 2020 00:20:07 +0200 (CEST) From: Thomas Gleixner To: Andy Lutomirski Cc: Peter Zijlstra , LKML , x86@kernel.org, "Paul E. McKenney" , Andy Lutomirski , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon , Tom Lendacky , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui Subject: Re: [patch V6 04/37] x86: Make hardware latency tracing explicit In-Reply-To: References: <87imgqv055.fsf@nanos.tec.linutronix.de> Date: Thu, 21 May 2020 00:20:07 +0200 Message-ID: <87blmiuu3s.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski writes: >> On May 20, 2020, at 1:10 PM, Thomas Gleixner wrote: >> Peter Zijlstra writes: >>> We probably have to anyway. But I can do that later I suppose. >> >> Second thoughts. For #DB and #INT3 we can just keep nmi_enter(), needs >> just annotation in nmi_enter() around that trace muck. >> >> For #NMI and #MCE I rather avoid the early trace call and do it once we >> have reached "stable" state, i.e. avoid it in the whole nested NMI mess. > > What’s the issue? The actual meat is mostly in the asm for NMI, and > for MCE it’s just the sync-all-the-cores thing. The actual > simultaneous NMI-and-MCE case is utterly busted regardless, and I’ve > been thinking about how to fix it. It won’t be pretty, but nmi_enter() > will have nothing to do with it. The issue is that I want to avoid anything which is not essential just for pure paranoia reasons. I can drop that and just move the trace muck after RCU is safe and annotate it properly.