From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71C76C43613 for ; Mon, 24 Jun 2019 18:49:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49A4220657 for ; Mon, 24 Jun 2019 18:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729453AbfFXSt4 (ORCPT ); Mon, 24 Jun 2019 14:49:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55616 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbfFXSt4 (ORCPT ); Mon, 24 Jun 2019 14:49:56 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 585403007401; Mon, 24 Jun 2019 18:49:56 +0000 (UTC) Received: from krava (ovpn-204-119.brq.redhat.com [10.40.204.119]) by smtp.corp.redhat.com (Postfix) with SMTP id 41E41600C0; Mon, 24 Jun 2019 18:49:53 +0000 (UTC) Date: Mon, 24 Jun 2019 20:49:52 +0200 From: Jiri Olsa To: Andi Kleen Cc: Peter Zijlstra , Kan Liang , Jiri Olsa , David Carrillo-Cisneros , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Tom Vaden , Paolo Bonzini , Juergen Gross , Alok Kataria Subject: Re: [RFC] perf/x86/intel: Disable check_msr for real hw Message-ID: <20190624184952.GA8743@krava> References: <20190614112853.GC4325@krava> <20190621174825.GA31027@tassilo.jf.intel.com> <20190623224031.GB5471@krava> <20190624164617.GB31027@tassilo.jf.intel.com> <20190624180634.GB7292@krava> <20190624183806.GD31027@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190624183806.GD31027@tassilo.jf.intel.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Mon, 24 Jun 2019 18:49:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 11:38:06AM -0700, Andi Kleen wrote: > > Tom, plz correctme if I'm wrongm but AFAIK because the LBR tracing is > > enabled during the boot the lbr_from/lbr_to registers will fail the > > check_msr 'val_new != val_tmp' check > > Ok this should be handleable. It should be enough to check > the ctrl register, if that working likely we don't need > to check the data registers which might be changing. if the control register check is enough, we should be ok then, I'll send new version thanks, jirka