Received: by 10.223.164.221 with SMTP id h29csp2260997wrb; Thu, 2 Nov 2017 08:13:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QZKT3PdkRCbn+sKEuFe8Fk8q2wir2tj96MjgS3zjuLjLsmDhD4RQBJ3sFJVB/JB6oj7PFp X-Received: by 10.84.209.164 with SMTP id y33mr3562552plh.439.1509635600347; Thu, 02 Nov 2017 08:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509635600; cv=none; d=google.com; s=arc-20160816; b=UJ2IXVZMwF4orPvVEjwWrlOOb8D5S/th35UCVkzJ3URIUC0TAqpC+FT+stJ32XFcKH 4hdA58T7WX4dUlEX5dtK7ItH4X28Bh7S7Z1GS+cvAjvDf1Vz00LAqNS16jsBCf1dMLTD 66u32ieogEKZmZNN1SJ6tKM+l4yUc/XgQScmlT99PA2RU5N+TR+al5gnv4h6o+qnYQvc h0SKYBheS08Y5l8P+y1gphQz8RC8LjoEkXiRi2qeoWeELq4Jhsu3ITdRkuQIhjHpRdFr QahLLehqfiqG1cGX3ngq3JOedL/0uQ64gTAEW9yGjoEIY1mA3w9MJeR8Un7qmnV4Acqo 0ang== 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 :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=7/6Bm1BYs40GApEBEdmFPcAec+pM9O06wm0rgDFCSl8=; b=fPS3y8iEYg2vGpOSWlom+s4qNPTmYqSLT9v6FbCsT+ysk+6D8Qq/MVrEyHs6LpmKc6 cnD5kUvKMSEMIiThCq1FOsigiqtiJfx3sL1CVGidh3HQ3+MKIDuClaQACUCIIflVo8N+ +z2dlC1U7VbQJ3nFeSHaFCTDX66qP3KzOdfb8uT+S9x2LlwL2NfI/KzyDwUCkEjG89Hz KlSLV8bTkTzjUKYxGw4Yx5XBGpA/2i+b6xGegBBsI4kcKm9aNlp6lxLk/uq8td72wVNM egn9+e1S115hLVP7BqbxdmvpmR7cyi23MEIDjjGVVFr+nnCsX54m3QTVmFHVihY+3sHt UB7Q== ARC-Authentication-Results: i=1; mx.google.com; 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 22si3880801pga.629.2017.11.02.08.13.07; Thu, 02 Nov 2017 08:13: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; 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 S933720AbdKBPLF convert rfc822-to-8bit (ORCPT + 97 others); Thu, 2 Nov 2017 11:11:05 -0400 Received: from mga02.intel.com ([134.134.136.20]:45549 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932724AbdKBPLE (ORCPT ); Thu, 2 Nov 2017 11:11:04 -0400 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Nov 2017 08:11:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,334,1505804400"; d="scan'208";a="1032673069" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga003.jf.intel.com with ESMTP; 02 Nov 2017 08:11:00 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 2 Nov 2017 08:11:00 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 2 Nov 2017 08:11:00 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Thu, 2 Nov 2017 23:10:58 +0800 From: "Liang, Kan" To: Thomas Gleixner CC: "peterz@infradead.org" , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , "acme@kernel.org" , "eranian@google.com" , "ak@linux.intel.com" Subject: RE: [PATCH V3 1/5] perf/x86/intel/uncore: customized pmu event read for client IMC uncore Thread-Topic: [PATCH V3 1/5] perf/x86/intel/uncore: customized pmu event read for client IMC uncore Thread-Index: AQHTTPn8N2Thg1PlBU23gMJh7UBtUqMAoguAgACGaBD//3vBgIAAAViAgACGcoD//3zEgIAAAYeAgACG4uD//4RegAAQ3Stw Date: Thu, 2 Nov 2017 15:10:57 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077537DCB0D@SHSMSX103.ccr.corp.intel.com> References: <1508843124-4081-1-git-send-email-kan.liang@intel.com> <37D7C6CF3E00A74B8858931C1DB2F077537DCA04@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F077537DCA32@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F077537DCA69@SHSMSX103.ccr.corp.intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmZlOWY4Y2UtMDdlOC00ODBmLWIzY2MtMmYxMzg3N2FkYTEzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ik5OQWExMU1qUHdMc0pCQ01BTDJhalplRlNETUpjWlRpWHFQczgybzZPaGM9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Thu, 2 Nov 2017, Liang, Kan wrote: > > > On Thu, 2 Nov 2017, Thomas Gleixner wrote: > > > But then you have this in uncore_perf_event_update(): > > > > > > - if (event->hw.idx >= UNCORE_PMC_IDX_FIXED) > > > + if (event->hw.idx == UNCORE_PMC_IDX_FIXED) > > > > > > So how is that supposed to work? > > > > This is for generic code. > > > > In previous code, the event_read function for IMC use generic code. > > So we have to deal with >= in generic code. > > > > Now, customized event_read function 'snb_uncore_imc_event_read' > > is introduced for IMC. So IMC does not touch the generic code. > > The generic code is corrected here. > > The customized read function does not help at all. > > uncore_perf_event_update() is used from snb_uncore_imc_event_stop(). So > it's broken with this patch. Right, need to use the customized read function to replace it as well. I will fix it in next version. > > This is a complete and utter mess to review. Most of the customized functions will be clean up after the series is applied. Thanks, Kan From 1582966792188894668@xxx Thu Nov 02 14:59:33 +0000 2017 X-GM-THRID: 1582166476632080836 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread