Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3754061ybd; Tue, 25 Jun 2019 07:57:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+dBGsD3WqWgAzWxgHIUtiobGSLXBDwMtGr57DCyJKKECrqTHUEvvy64stJz6iLVGXspxI X-Received: by 2002:a17:90a:26e4:: with SMTP id m91mr32658094pje.93.1561474650573; Tue, 25 Jun 2019 07:57:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561474650; cv=none; d=google.com; s=arc-20160816; b=D5FZ/b4ScXS2vEaijmBWSRmoIMQHgFjFyQEsSa0a3Yii3AYh9LC5c4XzPrPAqPqFmK f9ne3VbVCqvJhB+EqGSSi/WuBNtg4PZt5+ptTWgRg8I+Kvf3er3hOMB7Wm03BWro/k6d zNwx2qZBMrTyzQcqbktJutXUEndFjA7TT2UpjxmY6uMAgCDtM9kEzPm2ZfxQz7beyTni qZbeeYNoFHQCtreHW76i61+sKWqP+g726jEx0I+QE30Zkir6dG9WI4Nzz2Fw9HMsXHKd SkiSHklfKDqtonZ+prgWn3/gy0ddb1i0qvu5qqpnYDTG8hcMmK4AOvRe8esH1gU67w1s uZAg== 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-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=B3uZaEaKtXahH+0FTybYxrM9NJpYd0hj3KS3wtOMB+o=; b=S1nQVJriXHpFy0GfAKpjjn1G3aviU0aXln6aYT7EVxU6MGz9U9sl/M/7Qdi/Dh2IfF PTMGJPu8Fz2MBPdoT/nVK/86cfOR+YG6xStNysWOzh7gETfixnxdLFQe5e211WJAlz+4 yD/60WRcpFOboeUnGfKgAH9XrbXCAIMeNCClrKLT1yeflRGPC6epHMgPpCDpyXzgL7h2 Y29XthVPqX0XHpls+THzmtKEB9B1pqFVjLhSnH0T6NGpPjxIQnvOJSOc7IHP41Me0qXq UE/v5ZUy1SZboH/lmB5N02CpMcgU1WUUTXv3xjqALIY7c9NVPXwf59edYnrjTFxBri7N zaCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=0BcmpjN4; 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 37si552644pld.231.2019.06.25.07.57.14; Tue, 25 Jun 2019 07:57:30 -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-amdcloud-onmicrosoft-com header.b=0BcmpjN4; 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 S1731155AbfFYO5G (ORCPT + 99 others); Tue, 25 Jun 2019 10:57:06 -0400 Received: from mail-eopbgr790089.outbound.protection.outlook.com ([40.107.79.89]:44800 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730701AbfFYO5F (ORCPT ); Tue, 25 Jun 2019 10:57:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B3uZaEaKtXahH+0FTybYxrM9NJpYd0hj3KS3wtOMB+o=; b=0BcmpjN4np1nUAId9JKreLOIUz3E/muoqV+dlryoITdU1arWcD44qZzJ6td3BKWTbDRCHy384wM9N5rDCL8OPVTMLRUQUOsUwcHG20/OjMrcF1a2xi3tKrRqwhSpD5OZtM/JVhbsVW6+g4uHwJYjCQyT3UTlcx+sfBpV74E7Nc0= Received: from CY4PR12MB1798.namprd12.prod.outlook.com (10.175.59.9) by CY4PR12MB1832.namprd12.prod.outlook.com (10.175.61.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Tue, 25 Jun 2019 14:56:23 +0000 Received: from CY4PR12MB1798.namprd12.prod.outlook.com ([fe80::38d5:5f22:2510:9e44]) by CY4PR12MB1798.namprd12.prod.outlook.com ([fe80::38d5:5f22:2510:9e44%9]) with mapi id 15.20.2008.017; Tue, 25 Jun 2019 14:56:23 +0000 From: "Phillips, Kim" To: Peter Zijlstra , Ingo Molnar CC: "linux-kernel@vger.kernel.org" , "Phillips, Kim" , "stable@vger.kernel.org" , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , Martin Liska , "Suthikulpanit, Suravee" , "Natarajan, Janakarajan" , "Hook, Gary" , Pu Wen , Stephane Eranian , Vince Weaver , "x86@kernel.org" Subject: [PATCH 1/2 RESEND2] perf/x86/amd/uncore: Do not set ThreadMask and SliceMask for non-L3 PMCs Thread-Topic: [PATCH 1/2 RESEND2] perf/x86/amd/uncore: Do not set ThreadMask and SliceMask for non-L3 PMCs Thread-Index: AQHVK2YojefsBpqvIUqV/vgdz1UgXg== Date: Tue, 25 Jun 2019 14:56:23 +0000 Message-ID: <20190625145548.11600-1-kim.phillips@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0701CA0015.namprd07.prod.outlook.com (2603:10b6:803:28::25) To CY4PR12MB1798.namprd12.prod.outlook.com (2603:10b6:903:11a::9) authentication-results: spf=none (sender IP is ) smtp.mailfrom=kim.phillips@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.22.0 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6562aed3-028c-4dbe-ed42-08d6f97d4a5d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:CY4PR12MB1832; x-ms-traffictypediagnostic: CY4PR12MB1832: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0079056367 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(376002)(39860400002)(366004)(396003)(346002)(199004)(189003)(53936002)(2906002)(50226002)(66066001)(14454004)(4326008)(54906003)(305945005)(6486002)(71190400001)(5660300002)(7416002)(14444005)(256004)(1076003)(110136005)(6116002)(478600001)(3846002)(6512007)(386003)(6506007)(102836004)(36756003)(68736007)(66446008)(73956011)(52116002)(86362001)(81166006)(186003)(66946007)(81156014)(486006)(2616005)(6436002)(476003)(8676002)(7736002)(316002)(8936002)(26005)(99286004)(64756008)(66556008)(66476007)(71200400001)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1832;H:CY4PR12MB1798.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: 6Gsk++hVwjeOS7CmmS3335IX+wq7pmADA109nspKICZdq2mwNGY2n6DRmz6T0fNo2vT3aNGoE/8Y0TFMItZvazOQPTMB/jZnjr7zetV7LFkqPCcc9UmxxNwMS1z2PdcKxY4vuGy2Ug2/NyyuaU7zL4EuQcjG0/rMPgLbhIM8b+czwqVhh3TnThBFL5ufZKx2xZoEV+OoT+vyyVQoYt2ekeemTli/4wGxbZdfKsHqhim5wNoTEUS6BNr1qqR7hrRFrHpJBTVXISOIKpRXwSVN2GA4mcEBYSaXAP/pRtADxUfBcJA8Qpl7JAiB8FZWWXoodC+UQYhAuhFADsp6IdtFsrKv94AcqoUHaQhYzMkVaqoFSwwA5v9zPwnKYks9x2NcpWHfJaffe4wCsC4PFpxvXcn9BENX66Vr9E6IUxGlOFY= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6562aed3-028c-4dbe-ed42-08d6f97d4a5d X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2019 14:56:23.7214 (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-CrossTenant-userprincipalname: kphillips@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1832 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogS2ltIFBoaWxsaXBzIDxraW0ucGhpbGxpcHNAYW1kLmNvbT4NCg0KQ29tbWl0IGQ3Y2Ji ZTQ5YTkzMCAoInBlcmYveDg2L2FtZC91bmNvcmU6IFNldCBUaHJlYWRNYXNrIGFuZCBTbGljZU1h c2sNCmZvciBMMyBDYWNoZSBwZXJmIGV2ZW50cyIpIGVuYWJsZXMgTDMgUE1DIGV2ZW50cyBmb3Ig YWxsIHRocmVhZHMgYW5kDQpzbGljZXMgYnkgd3JpdGluZyAxcyBpbiBDaEwzUG1jQ2ZnIChMMyBQ TUMgUEVSRl9DVEwpIHJlZ2lzdGVyIGZpZWxkcy4NCg0KVGhvc2UgYml0ZmllbGRzIG92ZXJsYXAg d2l0aCBoaWdoIG9yZ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