Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp222566ybm; Mon, 20 May 2019 15:02:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXEHR4gSJohhdsPHvBKqXxwOwynq87XjuSVssGeXlBP0cqJpqMeMDD4IwSEK3RcT0IMD2E X-Received: by 2002:a63:fd50:: with SMTP id m16mr77930731pgj.192.1558389740386; Mon, 20 May 2019 15:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558389740; cv=none; d=google.com; s=arc-20160816; b=NxI0E/vE9y7FdnVjc7IXXeVYflo0Jh+TsZvfLMYu5tAz9cNH6ENVECv+Ohd8IZpSk/ 7Z/9CpbrWUG9fzomlYn0QCrSAlN9Cfx1rh5ZVxurfuJpemJwpPDl4nH60iFxr9/3gnTr Cb13hCRIwTHwWG1xOZQdJU7W+IwZyalqEUx2t6OR74QiVs1kCiOi2eeIei3BsxcuZRiJ z9cOmFDr+dGE4on69hu1NVmDmP7FR2D/6VNzTKXf9HEXAGcy6Gb/1VfYQg+Tvsfo51Dn qsDuJZGxDcHaBd8SsO5TY/9+jWvsqEQ1ednsk07LnDqfvSM8QHRu5iy9wCzyy8RHmYaP 4m5g== 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=CL3mTv7on0vWJQmZeXTTaRg1qiThV8bAQV+TvMGhRd8=; b=iV1dFd27GYH5L5BGg1ucZAbyXmmLsgFWffteqzsmUlH2spLDTDzA9Umx78B/+zlEfF /sXCNKAbCGKhrn/ottGmBcTFH0LBXuTJTQ1tj0oIzrElSeWXunGteLxyw2GSpfdMG1mz 7J5Adcv8uhjWkd86w9EwJYoVR3pFKhlgwCE+CZC34qV+Jdpy94MSW0+MAMb8TS3Qbvxi OVFx49pwozKuy6UlAsWQWO09NaKk792Mf2LyGY2wTUEYh3SBJu9MyWA/xqJm5SrR4voM hg23jyBBYu6D+k2nKCV+HLQDJQa7/new2pbSoUM/NavdJjCeXCHwBEyYe8QCTuahxEAh Eulg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=QRJD5oIM; 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 k1si17940894pll.317.2019.05.20.15.02.04; Mon, 20 May 2019 15:02:20 -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=QRJD5oIM; 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 S1726628AbfETWA2 (ORCPT + 99 others); Mon, 20 May 2019 18:00:28 -0400 Received: from mail-eopbgr820059.outbound.protection.outlook.com ([40.107.82.59]:38944 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725776AbfETWA1 (ORCPT ); Mon, 20 May 2019 18:00:27 -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=CL3mTv7on0vWJQmZeXTTaRg1qiThV8bAQV+TvMGhRd8=; b=QRJD5oIM+1nHviuk0tcUn7eIFwe8YONxKY2V0/jHodYvlIIEuxY50j2bUV3fNMmDRdXoUujLyGhurZ/Lv/KfkfkLPzfRsAvAPhfKHz7+0+Nj1Bz38NGvzS5rp7FxtRxt63jgzIad3eiKJ8tvU8vpx8PO/Hu5oaf5RlFtsJvBDnA= Received: from CY4PR12MB1798.namprd12.prod.outlook.com (10.175.59.9) by CY4PR12MB1269.namprd12.prod.outlook.com (10.168.168.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.22; Mon, 20 May 2019 22:00:25 +0000 Received: from CY4PR12MB1798.namprd12.prod.outlook.com ([fe80::c84c:8885:45d3:fb52]) by CY4PR12MB1798.namprd12.prod.outlook.com ([fe80::c84c:8885:45d3:fb52%3]) with mapi id 15.20.1900.020; Mon, 20 May 2019 22:00:25 +0000 From: "Phillips, Kim" To: "linux-kernel@vger.kernel.org" CC: "Phillips, Kim" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , "H. Peter Anvin" , =?utf-8?B?TWFydGluIExpxaFrYQ==?= , "Suthikulpanit, Suravee" , "Natarajan, Janakarajan" , "Hook, Gary" , Pu Wen , Stephane Eranian , Vince Weaver , "x86@kernel.org" Subject: [PATCH 2/2] perf/x86/amd/uncore: set the thread mask for F17h L3 PMCs Thread-Topic: [PATCH 2/2] perf/x86/amd/uncore: set the thread mask for F17h L3 PMCs Thread-Index: AQHVD1dt3RoRbldJXkuiFY7rDdaJUg== Date: Mon, 20 May 2019 22:00:24 +0000 Message-ID: <20190520215955.24343-2-kim.phillips@amd.com> References: <20190520215955.24343-1-kim.phillips@amd.com> In-Reply-To: <20190520215955.24343-1-kim.phillips@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR05CA0013.namprd05.prod.outlook.com (2603:10b6:805:de::26) 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.21.0 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 21350774-6e4e-4e51-d992-08d6dd6e8f96 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:CY4PR12MB1269; x-ms-traffictypediagnostic: CY4PR12MB1269: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 004395A01C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(396003)(376002)(39860400002)(366004)(199004)(189003)(476003)(5660300002)(68736007)(5640700003)(36756003)(446003)(11346002)(53936002)(486006)(2616005)(76176011)(86362001)(99286004)(14454004)(102836004)(52116002)(6916009)(478600001)(6506007)(26005)(186003)(2351001)(54906003)(386003)(7416002)(6512007)(66066001)(7736002)(316002)(305945005)(2501003)(2906002)(8676002)(50226002)(6436002)(71200400001)(71190400001)(81156014)(66946007)(81166006)(256004)(8936002)(64756008)(66476007)(25786009)(73956011)(66556008)(66446008)(6116002)(6486002)(4326008)(1076003)(3846002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1269;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: IX4SH4VlrsXYBH7KcqagQD9QQf03jtxg8L/8jyR0VKv4u7bPYx/DKbWTUB1VrDLETrn/3oHjvKABmnNf9Ho1B14rVG5Lu8+AETh07Q31AZKSYkZtR/lmd2dT81LfUEXgQ/fhFyAmm5jP/dp/NTp7/Sr3sKlfu1BWA3oe0Lj1HIWjtGts1AndY7WtqG1cQSl+G0i5v+8uJwFq5tJ0nqjBJmcdEZAoPWi8OrOCb9Lgb1W5Vow9u1hqnGNfr1H71DGmkjXefoJtLufkJfc8zrpI1NH22+h8X3ApBCUZR5mkbcLoda//t1/w5Uk+X/xZhaooEUdNOtw/7Tahme6nSQ4LkJ+icBgST3O7wNWcIjYcDqFIFraTEvHTaNrzbV7v5OkvJGq/UIQ58mKEyKKUU0t6BZMoKslmuGaLftsBeKAglps= Content-Type: text/plain; charset="utf-8" Content-ID: <2B4B400BAA1A2E4DBC1582B205CC68CB@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21350774-6e4e-4e51-d992-08d6dd6e8f96 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2019 22:00:24.7725 (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: CY4PR12MB1269 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogS2ltIFBoaWxsaXBzIDxraW0ucGhpbGxpcHNAYW1kLmNvbT4NCg0KRmlsbCBpbiB0aGUg TDMgcGVyZm9ybWFuY2UgZXZlbnQgc2VsZWN0IHJlZ2lzdGVyIFRocmVhZE1hc2sNCmJpdGZpZWxk LCB0byBlbmFibGUgcGVyIGhhcmR3YXJlIHRocmVhZCBhY2NvdW50aW5nLg0KDQpTaWduZWQtb2Zm LWJ5OiBLaW0gUGhpbGxpcHMgPGtpbS5waGlsbGlwc0BhbWQuY29tPg0KQ2M6IFBldGVyIFppamxz dHJhIDxwZX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