Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp687190yba; Mon, 1 Apr 2019 14:47:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHCQbUYwW6na1XWzwHBeBDmk+H/T82l4uMdK0w9+cElrqbFdoxfQJps3KDXNsBcMUCA6rf X-Received: by 2002:a17:902:8e82:: with SMTP id bg2mr67325704plb.217.1554155251709; Mon, 01 Apr 2019 14:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554155251; cv=none; d=google.com; s=arc-20160816; b=kiM5JtKYrtsT6Vc5FG2qy21A27Mbe72eHxHnoMIKh1iCQVOej2/TghBB6kAq3Sj5+e j62pKVFMp2QJKnZ4dECZDQurAgEngBONAqZ+y0on9CXkRFY9yAOmRzNboZVKV7yASGeo 1wXln/qIZYFpPYj8SPX7tiJQzQ4U60fOxAetWOblEnw7mmqgUbhScAWZpQsGTBvqZfWd Ms8XLJDZKN9J7ksete0RiQGs4n5J770tEGUxJricETR6o+xByxQnl8aDgSq8wQSov9Jh 4EZYMQVht68h3QhHnJLP5W6AuRIXzt/pFD3eU27WyOI/OXouRO0/NAhgMNcO0W2sKNnP dV/Q== 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:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Fia7FaaUcBN/cDtoTsiCUdGH+wpN7EPSnoNPDgfb5kI=; b=gx/+JKF0LYhX/lyUXPNpBzwd/NdDtG4Z1f4JftMPoifUrHSHj+7KfLDaDhwyvsNLSd 2KUCF9fQAQf3PhSYCLU7AnVd9wcfVP0cfjg8dYsKAxTrfVWxkRPdDoLhR0RhhHpazJuY paKPclfqd66aIFemtHTg7msuJD1mUrTM1ofoa1MpyQJMoNomZztfTFzeRgPqcRPXL1Vg 9jLr/Uei5qy8vPRvxPCVBZKEq7btRYPcT1ZGm3V45hia8jUHnu73qxpv8+DBQJd2voBZ IEJjuCFuuDqIqz0Y1hG7MvL7h49aOU4qMYI7/yePR2KCRRgzm5t8Ky2U2p/dZzcFvja4 HLvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=kvYbgz3V; 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 g10si5619474pgq.440.2019.04.01.14.47.16; Mon, 01 Apr 2019 14:47:31 -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=kvYbgz3V; 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 S1726864AbfDAVqj (ORCPT + 99 others); Mon, 1 Apr 2019 17:46:39 -0400 Received: from mail-eopbgr720052.outbound.protection.outlook.com ([40.107.72.52]:32768 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726109AbfDAVqh (ORCPT ); Mon, 1 Apr 2019 17:46:37 -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=Fia7FaaUcBN/cDtoTsiCUdGH+wpN7EPSnoNPDgfb5kI=; b=kvYbgz3VQM/VXur/uzjAXOn6qLjMQR7bJ3MrQxNe4KENF3MbkW6g/NTHOFXZxEUUZ65cfzFxnu/WGZuO4/1LKeon7SY4iWdCEJoUj7c5uGRCWWAgtoNXusiE1uYL36sa0ZFAUW934Uy8WDSPmubnCN8Ka4WF4VfkCYekls0lPMI= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2970.namprd12.prod.outlook.com (20.178.29.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.16; Mon, 1 Apr 2019 21:46:33 +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; Mon, 1 Apr 2019 21:46:33 +0000 From: "Lendacky, Thomas" To: "x86@kernel.org" , "linux-kernel@vger.kernel.org" CC: Peter Zijlstra , Arnaldo Carvalho de Melo , Alexander Shishkin , Ingo Molnar , Borislav Petkov , Namhyung Kim , Thomas Gleixner , Jiri Olsa Subject: [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+lQ== Date: Mon, 1 Apr 2019 21:46:33 +0000 Message-ID: <155415519143.24457.2706922532995302758.stgit@tlendack-t1.amdoffice.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0501CA0078.namprd05.prod.outlook.com (2603:10b6:803:22::16) 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.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f16cec99-1e0f-48d6-63f0-08d6b6eb81ff 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:DM6PR12MB2970; x-ms-traffictypediagnostic: DM6PR12MB2970: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0994F5E0C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(346002)(39860400002)(136003)(199004)(189003)(478694002)(4326008)(8676002)(71190400001)(66066001)(102836004)(53936002)(6116002)(6306002)(26005)(54906003)(103116003)(81166006)(86362001)(110136005)(25786009)(97736004)(81156014)(316002)(186003)(106356001)(105586002)(7736002)(99286004)(14444005)(486006)(7416002)(305945005)(8936002)(71200400001)(2906002)(256004)(6436002)(2501003)(14454004)(478600001)(52116002)(6506007)(386003)(72206003)(6512007)(966005)(5660300002)(3846002)(9686003)(68736007)(476003)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2970;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: YbdoT85AS28RYK6B+6YPucrgwQApnt9ZUuUbtzIEazvHQvRv+RMgH955nlO63nXQ7GQpqYlRj7CTLiA/AXDzUS05K1D4Fl0yIMkRCFmdtdYQLv7CTkULyNjeE3492cFdgLp4xWgsoUIPuImFR0fk55CLqWo4r3SIxHS6KDvWKG+F6io9e6KmcdG/8oG7OkoG8yQYPBoKDFOfJWTWCkveEpyzyBHu/eoTFwYz0q4eqdfdsSGSBOeUzbqeNOZowsWoWbB7+qUhS/cwi6oMIP1LxJPLX7ZlhX6cpp67E9KnxXyWFylcAsyjEmJgIxeInuUWMMSdbDOzEAQ/kL2QNe28PypbhfzK2QBPmeooLx6AEM7/DgtPkmstdA+DM1mQDHZzAXz7tOR88A3p98tu0vR/wAYdrwqDnGpRLg/FGftpwH8= Content-Type: text/plain; charset="utf-8" Content-ID: <1899F99A3C20CB40B4A3D4761EEC8DE3@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f16cec99-1e0f-48d6-63f0-08d6b6eb81ff X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2019 21:46:33.7244 (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: DM6PR12MB2970 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCBzZXJpZXMgYWRkcmVzc2VzIGlzc3VlcyB3aXRoIGluY3JlYXNlZCBOTUkgbGF0 ZW5jeSBpbiBuZXdlcg0KQU1EIHByb2Nlc3NvcnMgdGhhdCBjYW4gcmVzdWx0IGluIHVua25vd24g Tk1JIG1lc3NhZ2VzIHdoZW4gUE1DIGNvdW50ZXJzDQphcmUgYWN0aXZlLg0KDQpUaGUgZm9sbG93 aW5nIGZpeGVzIGFyZSBpbmNsdWRlZCBpbiB0aGlzIHNlcmllczoNCg0KLSBSZXNvbHZlIGEgcmFj ZSBjb25kaXRpb24gd2hlbiBkaXNhYmxpbmcgYW4gb3ZlcmZsb3dlZCBQTUMgY291bnRlciwNCiAg c3BlY2lmaWNhbGx5IHdoZW4gdXBkYXRpbmcgdGhlIFBNQyBjb3VudGVyIHdpdGggYSBuZXcgdmFs dWUuDQotIFJlc29sdmUgaGFuZGxpbmcgb2YgYWN0aXZlIFBNQyBjb3VudGVyIG92ZXJmbG93cyBp biB0aGUgcGVyZiBOTUkNCiAgaGFuZ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