Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp13984imc; Fri, 15 Mar 2019 13:43:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwMWSMBPbCzNXVUPsM8ixlIfD49h/epfeQ64g29gCwwrwhSaRbUC8JAYtWzF3WeoFan6Eu X-Received: by 2002:aa7:8c1a:: with SMTP id c26mr5989695pfd.31.1552682615887; Fri, 15 Mar 2019 13:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552682615; cv=none; d=google.com; s=arc-20160816; b=bxHm458/ecXKnaeDbPDHxm7zofsvsu2Hf4ncwssXZ0ywpwnlSRO8pkJ/anHqugL0xq BqvP6GAVEpp9qW/4okMpNt6JO7bn3Gf7t+TqfxWXa+JRp5Blitt/XGsswSjuOQPUbwmL nSBuqqavM4CkGg44Jz4pPHiG1lz2Kh9GP/NHmhhMx3nxuMlZSaywKfQwp3YjNDR20lMT 21vzQCfvHDMJkVrLGb3DVHmTrE8lA9emKIWeicB2U0NMhIngj5+S8MdCVL33/rNu99Y2 1wxYKN/gl8ryI2q3F9TqU/OF8MsJzRf6GykL/qDT3SJzQ+0hdt7CY7hvRwh7bd9pah6w /lvg== 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=YF0ZIUfXzdo7oWVQsMDOHg2rjM5bF22nsYWS943NAlY=; b=EjyBg8NYLGeRc/mbuL+nNy/Pt9t6ZI8NR6x41YvPwyj6/80oRlf4mWPCci/Dz0XUmK +Dp/cybsK9w6BadnCRPBaivoQ5Rqp1ZY5ROgS+hogQBFs7Gf1499L9M6C3bTdVSMuzAR KLbJ77AqTLgem1l+g+Pwf2E0wP3nkesI6n89V0E1+hhpI01rqLRx8gvTdSE58EsZYVuQ WBM3SUpMbLFKSWBKAE7rhpGduyEi1vEv95kgf3pEjoZF8vJhFZDqagHTbiIAvZJtBcyW olaAsvFhtFJzS2lMQz7UudkQ0PZPRF+zEBmXmUYOcJ4gPXzGuWvLrHrtBxscNvIgtTz1 0w0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=oN6ifim4; 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 v11si2577123plo.377.2019.03.15.13.43.21; Fri, 15 Mar 2019 13:43:35 -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=oN6ifim4; 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 S1726808AbfCOUlG (ORCPT + 99 others); Fri, 15 Mar 2019 16:41:06 -0400 Received: from mail-eopbgr800075.outbound.protection.outlook.com ([40.107.80.75]:22059 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726465AbfCOUlG (ORCPT ); Fri, 15 Mar 2019 16:41:06 -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=YF0ZIUfXzdo7oWVQsMDOHg2rjM5bF22nsYWS943NAlY=; b=oN6ifim4Pu6hfUx1yqK2W6LDN36SuL0xm6h+hOxoLOAZFvPBRzMuSHy/c8HJFjPVWjVCR+ZQs4wLQN7OSan4I2kzo9FGffMM7hHBrQvPyyfwyTOLZyRVsJ23+2dbbaU8T1V1I4y6EoNbQblhUegnu9gAFFVX1ufye7l/VDYwfyE= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3545.namprd12.prod.outlook.com (20.179.106.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Fri, 15 Mar 2019 20:41:00 +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.1709.011; Fri, 15 Mar 2019 20:41:00 +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 v2 2/2] x86/perf/amd: Resolve NMI latency issues when multiple PMCs are active Thread-Topic: [RFC PATCH v2 2/2] x86/perf/amd: Resolve NMI latency issues when multiple PMCs are active Thread-Index: AQHU229mIvha5pwXckCqUIpBYzaKPw== Date: Fri, 15 Mar 2019 20:41:00 +0000 Message-ID: <155268245818.14761.10443012194152751116.stgit@tlendack-t1.amdoffice.net> References: <155268244291.14761.3432013617741218607.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <155268244291.14761.3432013617741218607.stgit@tlendack-t1.amdoffice.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN2PR01CA0019.prod.exchangelabs.com (2603:10b6:804:2::29) 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: b1c765de-c03b-46d8-5658-08d6a9868883 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:DM6PR12MB3545; x-ms-traffictypediagnostic: DM6PR12MB3545: x-microsoft-antispam-prvs: x-forefront-prvs: 09778E995A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(136003)(396003)(39860400002)(366004)(199004)(189003)(256004)(9686003)(305945005)(6506007)(486006)(86362001)(316002)(5660300002)(476003)(6436002)(76176011)(81166006)(6116002)(102836004)(81156014)(7416002)(52116002)(6486002)(66066001)(3846002)(103116003)(71200400001)(72206003)(71190400001)(2906002)(2501003)(68736007)(105586002)(186003)(26005)(8676002)(386003)(7736002)(14454004)(11346002)(478600001)(25786009)(446003)(99286004)(53936002)(110136005)(8936002)(54906003)(106356001)(97736004)(14444005)(4326008)(6512007);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3545;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: PxqZ+PaBgARsUw9xDa473I/GfYGotBfkLt/sdUfSQThaKURV3cH+Z3OpniqWJqCWU6cZhFx/8E7pDT4mPkzbJYvV+ZAxmWZ15BczF0sJXYw3e766gSoQtX4B+HO70Y2BKhNEq/3lDAYj6ldIqLLXw52M4W1r+/4cN3LHxFK2U7lwCOp0/bPs8uF2xoVxNTvv0GpojVp4lX57toz3HH0CxAk909s82PUC+zPlhKkQg7tkZtooLaTSJYUOfTCGXloqnHSO8UdWFZG5wuIi93ghuzRjtrUEUBNQJILwNph3Urhu5LLfBItXhmZRPC3Vt9ToV5BlAkw6Ug2VEDC5mBBosHOjBN7RL+BhTDW7FnJ0LM49OHSoEGgTYjpCx8PN0RsmPg37Iawb6B8uOW0CoMAAPILU/37g+cnDctzpM4Ade48= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1c765de-c03b-46d8-5658-08d6a9868883 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 20:41:00.2685 (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: DM6PR12MB3545 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gQU1EIHByb2Nlc3NvcnMsIHRoZSBkZXRlY3Rpb24gb2YgYW4gb3ZlcmZsb3dlZCBQTUMgY291 bnRlciBpbiB0aGUgTk1JDQpoYW5kbGVyIHJlbGllcyBvbiB0aGUgY3VycmVudCB2YWx1ZSBvZiB0 aGUgUE1DLiBTbywgZm9yIGV4YW1wbGUsIHRvIGNoZWNrDQpmb3Igb3ZlcmZsb3cgb24gYSA0OC1i aXQgY291bnRlciwgYml0IDQ3IGlzIGNoZWNrZWQgdG8gc2VlIGlmIGl0IGlzIDEgKG5vdA0Kb3Zl cmZsb3dlZCkgb3IgMCAob3ZlcmZsb3dlZCkuDQoNCldoZW4gdGhlIHBlcmYgTk1JIGhhbmRsZXIg ZXhlY3V0ZXMgaXQgZG9lcyBub3Qga25vdyBpbiBhZHZhbmNlIHdoaWNoIFBNQw0KY291bnRlcnMg aGF2ZSBvdmVyZmxvd2VkLiBBcyBzdWNoLCB0aGUgTk1JIGhhbmRsZXIgd2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