Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1307155yba; Tue, 2 Apr 2019 06:35:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqynIemqbENsVdFVCQ4NXumvZcaQBEpFdJmzioziwBBJXYG0+FCfkmJ9narkWebFyIgKcOEo X-Received: by 2002:a63:79c3:: with SMTP id u186mr21837454pgc.20.1554212108023; Tue, 02 Apr 2019 06:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554212108; cv=none; d=google.com; s=arc-20160816; b=VO8r6pNLvUijXpreGR5uMI65kxi4sTBbjioesGUt0O8APgA3ZTvaH300FfVNYvx4pm qKXrXmR144OxA9AP7Flw6WlJQGAK9hu/lJ+4lEEgOapfdiHAiLn+Y+bb5AUTw1Mx36iu Uaf4wGYXX5PCWGp4O+uVboMKlZ/tYIPh7z0le/EKytCFX1oFWuiiCjI0YJXaxJSR3oqw wrxxAgxcfvDUL9T55CA7qPCwHSyO9BQzgthlFgU6cfEq65FVuvON0+hpdhYUwDUqlfuy IpjateKzI9LQlKiGL+/9KuFKa28BXCrQLX+TOj1WcsMSeWY1rdL4rNWBjYp2hFPD7xJ5 YzMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=UDfm9FJB4yJ+Vc5ef1aA6MHEmQ8lkpZmNV3VIwvTgsw=; b=W/2YZE8Ys9BSsQAVGqL2Nt5+PsmTAgoNzwBjI9vZV7+rCWwKU6Epygq8J7ApMjwcO4 NRs+NrXX9HkiaWWxkTWtNYKklli51lTZSyRqNKzlbPsdalq7a7fc3hPCMiXLEVJpxb0R dSJb+XZxmtscStIVXalKghcawhjdV836yOnyn6egjGuLFrEg/K0FelKQ12VCEHva8C2F 60eMY6hDSPricUP2zAk+y9yNXIPMXTu9hl2aBYeFzUrCFoGJCCG92wAOFLfF+z06gzEp th77Ob/Zv8+Ra6GIRG/yjHpzOoCQ6/Tuz8mQnj+wge0MbHdydL8P9AdS0yn0aw4CHaP+ 6uWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=bfnjg0IR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si648544pgk.207.2019.04.02.06.34.51; Tue, 02 Apr 2019 06:35:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=bfnjg0IR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730612AbfDBNJV (ORCPT + 99 others); Tue, 2 Apr 2019 09:09:21 -0400 Received: from mail-eopbgr820048.outbound.protection.outlook.com ([40.107.82.48]:9672 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730133AbfDBNJU (ORCPT ); Tue, 2 Apr 2019 09:09:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UDfm9FJB4yJ+Vc5ef1aA6MHEmQ8lkpZmNV3VIwvTgsw=; b=bfnjg0IR5ueDVgJ3xAnkR5A+ESpUhNF5qYjmaxgBliKE9iWcmN1axXmpDz2cN9bvyjXubtfSeEscUL93YK06GtSX71H5Wn3UfMTYeqAUYebeBEUOs2cFDpYzw8+Gq+Z3t4+134rjNififswovGJRw9r+ytw0TGFI0I7P9J1f9cE= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2954.namprd12.prod.outlook.com (20.179.104.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Tue, 2 Apr 2019 13:09:17 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::b1af:416d:c2c3:8e3b]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::b1af:416d:c2c3:8e3b%5]) with mapi id 15.20.1750.014; Tue, 2 Apr 2019 13:09:17 +0000 From: "Lendacky, Thomas" To: Peter Zijlstra CC: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Arnaldo Carvalho de Melo , Alexander Shishkin , Ingo Molnar , Borislav Petkov , Namhyung Kim , Thomas Gleixner , Jiri Olsa , "gorcunov@gmail.com" , Vince Weaver , Stephane Eranian Subject: Re: [RFC PATCH v3 0/3] x86/perf/amd: AMD PMC counters and NMI latency Thread-Topic: [RFC PATCH v3 0/3] x86/perf/amd: AMD PMC counters and NMI latency Thread-Index: AQHU6NRfaGoIezVhSE2WaOPaqkz+laYo1yUAgAABuQA= Date: Tue, 2 Apr 2019 13:09:17 +0000 Message-ID: References: <155415519143.24457.2706922532995302758.stgit@tlendack-t1.amdoffice.net> <20190402130302.GL12232@hirez.programming.kicks-ass.net> In-Reply-To: <20190402130302.GL12232@hirez.programming.kicks-ass.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0501CA0067.namprd05.prod.outlook.com (2603:10b6:803:41::44) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.84.11] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7a40a20f-61da-43dd-3b1f-08d6b76c68fc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DM6PR12MB2954; x-ms-traffictypediagnostic: DM6PR12MB2954: x-microsoft-antispam-prvs: x-forefront-prvs: 0995196AA2 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(376002)(396003)(346002)(366004)(136003)(189003)(199004)(52314003)(478694002)(2906002)(6512007)(81166006)(97736004)(86362001)(105586002)(446003)(11346002)(305945005)(3846002)(26005)(476003)(31696002)(68736007)(6116002)(7736002)(36756003)(106356001)(8936002)(256004)(14444005)(7416002)(76176011)(186003)(53546011)(386003)(31686004)(53936002)(102836004)(6506007)(52116002)(66066001)(486006)(6246003)(316002)(229853002)(8676002)(478600001)(25786009)(4326008)(6916009)(6486002)(81156014)(72206003)(54906003)(99286004)(71200400001)(71190400001)(5660300002)(6436002)(14454004)(2616005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2954;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Pt3l34tsELBQdHd+Obuy5PsAywElVpLJwjAg9xTwgIX/ct1EMrFnEqacjlbfwVJWl/vQqkBCQ5FymZNiLwIWnMAqm0HLAH/9bm5lz1Tk0xoP5TLNVwqiJW40RJmNbyybJvqoO8O+E4SogA47d3YP7sli4GosHU+1av98dQbHuhTqSF7NYanzxko6dKzZngDSCXw8jA1icVjbQNB3XxfhSIxD696hgbLc5MLjSVbqKn0xmD3hNe69V2HlV2CmAbD4zx0cRFAQ8JlSNu+q9bwKoS1Bc2vDt7JNADHsGw2o3acIx79uNRXKQPHKbuI9dOFbUkw8oiAdOEGxDAmSkhthwdn7s5BQSfV6/NEi2R5ywQhe7BU7ofvyJHOMWyF2agRKgIJRI0/aCGXcBxN5dM4CiHtG7PiK8kVmzKTVN7bRnSc= Content-Type: text/plain; charset="utf-8" Content-ID: <05C6A372E1B7FD47AE3D6916F8C23106@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a40a20f-61da-43dd-3b1f-08d6b76c68fc X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2019 13:09:17.2710 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2954 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gNC8yLzE5IDg6MDMgQU0sIFBldGVyIFppamxzdHJhIHdyb3RlOg0KPiBPbiBNb24sIEFwciAw MSwgMjAxOSBhdCAwOTo0NjozM1BNICswMDAwLCBMZW5kYWNreSwgVGhvbWFzIHdyb3RlOg0KPj4g VGhpcyBwYXRjaCBzZXJpZXMgYWRkcmVzc2VzIGlzc3VlcyB3aXRoIGluY3JlYXNlZCBOTUkgbGF0 ZW5jeSBpbiBuZXdlcg0KPj4gQU1EIHByb2Nlc3NvcnMgdGhhdCBjYW4gcmVzdWx0IGluIHVua25v d24gTk1JIG1lc3NhZ2VzIHdoZW4gUE1DIGNvdW50ZXJzDQo+PiBhcmUgYWN0aXZlLg0KPj4NCj4+ IFRoZSBmb2xsb3dpbmcgZml4ZXMgYXJlIGluY2x1ZGVkIGluIHR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