Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1264319imc; Mon, 11 Mar 2019 09:51:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWSTklWa3cBBGQOd0QLZRB1ToYM0kfyBUul3jTIY3fku/EswkHl3WJuW0ZgOxKrh3g54kO X-Received: by 2002:aa7:8750:: with SMTP id g16mr7513814pfo.123.1552323075183; Mon, 11 Mar 2019 09:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552323075; cv=none; d=google.com; s=arc-20160816; b=pgoZFDk8OWhw68u4Xs0qLYsXC0lNMXzzCBKdPWv7oGEUQXBSZ2ks4YFFJHNQdpKxac QFJ4qR7I/2anRJoB1y8iiW5Wv/wzAg/C+2TfnFqAFW0k8/fLxcdTs+MQ67kwtwI7UFuo thsUAAiBeloN3rkdMNDV6sfpnWepmIvc1ir4Dzfj271/+euJdf0qfNN/9gPvA94hpGfS Lra0sf/kRCBPEZs05t+VOFzMLM4f3oNvt1pBdiMPiYyg26dmWvNLKsR4LBq8M/vBQKcz U5lJjcko4SCBXipjN232qzHXJkM4gsYAASVX/GXB23mPUDsmpFtWOr4G2dziYz2RfnIE J6cA== 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=GLsGENjE4BEMJa0J60nEPeYQG7Yv7xYnIpkuihp0U1I=; b=VT+GbdMGu+DsWMLeG1moboUSBsfHFGIcrA5Ar2rA6CNjAdKeUUNACKq+lGAhXSzLC+ ReqGORHZYCWjNplzKDSBQxbDCHJohvWC9BSZoy0IOshHcMDlwjMQgR2rv3i6D0ovASRi IkIG8Yp0JTb6EgDWQeLzY18FUZ4gnn/9iTxJOU2XoELfXFQsum4VuPpzDB6ZMyZy/A1F r/66d+BV4/WKrWZ1QiQMegIPAE5fpo5ieNjkK3M08JVJqRZri3lZpLbiuEGdbCAioTkF jelgcVBa63l2lHFfDYtgSxHIrlw8Nef9sv89PHQjsu7Le8KSz3SQqzsDRoFheikXdqJI Ew/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=saHUvFep; 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 u17si5106368pgh.487.2019.03.11.09.50.59; Mon, 11 Mar 2019 09:51:15 -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=saHUvFep; 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 S1727683AbfCKQsz (ORCPT + 99 others); Mon, 11 Mar 2019 12:48:55 -0400 Received: from mail-eopbgr720074.outbound.protection.outlook.com ([40.107.72.74]:17046 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726675AbfCKQsy (ORCPT ); Mon, 11 Mar 2019 12:48:54 -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=GLsGENjE4BEMJa0J60nEPeYQG7Yv7xYnIpkuihp0U1I=; b=saHUvFepLX7YBiKYpCYgoNogrBZvrhmnXJe1gcGSbgIBQ5UZUSzfOIXuUtVpEanDIlD5NA3/ODKRrmSUtC/mgdO/ASnM/AZqsAW3UA4FGe/NiuWrAoCUoen6+Ed+wlAXFWWlYPFCOuRJw40VNh+h20JVdak8U4+tEOQry61d9W0= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB2891.namprd12.prod.outlook.com (20.179.71.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Mon, 11 Mar 2019 16:48:51 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::a8aa:c9af:1f69:2a89]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::a8aa:c9af:1f69:2a89%6]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 16:48:51 +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 2/2] x86/perf/amd: Resolve NMI latency issues when multiple PMCs are active Thread-Topic: [RFC PATCH 2/2] x86/perf/amd: Resolve NMI latency issues when multiple PMCs are active Thread-Index: AQHU2CpOuC8N+vFHqESTwWx3yJMr4Q== Date: Mon, 11 Mar 2019 16:48:51 +0000 Message-ID: <155232292961.21417.3665243457569518550.stgit@tlendack-t1.amdoffice.net> References: <155232291547.21417.2499429555505085131.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <155232291547.21417.2499429555505085131.stgit@tlendack-t1.amdoffice.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR04CA0050.namprd04.prod.outlook.com (2603:10b6:805:2a::27) 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: a0260891-d20f-4fd6-2e0f-08d6a64170da x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM6PR12MB2891; x-ms-traffictypediagnostic: DM6PR12MB2891: x-microsoft-exchange-diagnostics: 1;DM6PR12MB2891;20:LRbt0leofw+1Yi/JhnHG0B9uLQPGC2DFMouOeuolbaJOsYzXSwZVW1Yj4DNc238es7Wp3b6I0y0/+rGFytl5LEK1eFBJXwoCsZ4N2JorzX5kuWOtlzA6QkHYehKZ3Br289xLyPRS86WFQGTCqY1NloTDC9ZjIwk9Iwt0G+UFM+PSrQd5v3vHy3wF/64Qv6HaL1coGXkJ6zHPKpDI/py7hLzFjJ5aIQY0zPlX55vYe7wnIhzBGqowA/neh6pHGTNe x-microsoft-antispam-prvs: x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(366004)(136003)(346002)(376002)(199004)(189003)(4326008)(25786009)(6116002)(72206003)(103116003)(9686003)(102836004)(66066001)(68736007)(186003)(476003)(11346002)(446003)(256004)(478600001)(8676002)(71200400001)(6436002)(97736004)(6486002)(81156014)(81166006)(71190400001)(14444005)(6512007)(86362001)(316002)(110136005)(54906003)(2906002)(106356001)(7416002)(105586002)(2501003)(53936002)(5660300002)(3846002)(14454004)(486006)(26005)(8936002)(7736002)(305945005)(52116002)(76176011)(6506007)(386003)(99286004);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB2891;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: u5ESY49nxEtU35K9o5XGfeQgT8Bb+QC81q/hFtMWun3JjHktHVZL1ndUw9TUM4KbVWpz222FlnAxRyxpr7LcvuRR7e+eqk+GnQW2yg+fVchGP5wNFi3Jo8B/m06o2mXF7v5DNnbGS5PoH/WcGS+So6CB/2ca0OI5tADm67d6F2Br78AffPdB/uCoulx/P0yPeH6yjGk64Cs/Ytk5demMs3nzKuCiy8FNSoR6GGxfMkB+VshdrKtdxjlGUucQLl8QyhgiJ33qiUzLgoTIMZfJkKRQcmuIPublkhIUZEIEqQt21VY3bUJsclhPKNjPN0NUsswkaoFOJ+7p11qF3INAdOB70xKbOn5uOW3p08LXZz2fumB6P3tYBptSKtXY4HgNi7AjabiT3ShmUrNmMW0mLJCZzWugtAWXewmyHryi/Eo= Content-Type: text/plain; charset="utf-8" Content-ID: <820C40B8383BBD4291C7966538B1BDB2@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0260891-d20f-4fd6-2e0f-08d6a64170da X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 16:48:51.8267 (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: DM6PR12MB2891 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gQU1EIHByb2Nlc3NvcnMsIHRoZSBkZXRlY3Rpb24gb2YgYW4gb3ZlcmZsb3dlZCBQTUMgY291 bnRlciBpbiB0aGUgTk1JDQpoYW5kbGVyIHJlbGllcyBvbiB0aGUgY3VycmVudCB2YWx1ZSBvZiB0 aGUgUE1DLiBTbywgZm9yIGV4YW1wbGUsIHRvIGNoZWNrDQpmb3Igb3Zlc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