From owner-freebsd-current@freebsd.org Thu Jun 15 07:45:35 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC3BCC779B6 for ; Thu, 15 Jun 2017 07:45:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0F54668264 for ; Thu, 15 Jun 2017 07:45:34 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA04270 for ; Thu, 15 Jun 2017 10:45:27 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1dLPT4-000GrR-SA for freebsd-current@FreeBSD.org; Thu, 15 Jun 2017 10:45:26 +0300 To: FreeBSD Current From: Andriy Gapon Subject: hwpmc and Xeon E5 v4 Message-ID: Date: Thu, 15 Jun 2017 10:44:05 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2017 07:45:35 -0000 It seems that hwpmc does not support newer Xeon processors: pmc: Unknown Intel CPU. This is how FreeBSD reports a processor from Xeon E5 v4 line: CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz (2095.20-MHz K8-class CPU) Origin="GenuineIntel" Id=0x406f1 Family=0x6 Model=0x4f Stepping=1 Features=0xbfebfbff Features2=0x7ffefbff AMD Features=0x2c100800 AMD Features2=0x121 Structured Extended Features=0x21cbfbb XSAVE Features=0x1 VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr TSC: P-state invariant, performance statistics I think that this processor belongs to Broadwell-EP family: http://www.cpu-world.com/CPUs/Xeon/Intel-Xeon%20E5-2620%20v4.html >From my reading of the code it seems that 0xf1 case needs to be added to the big switch statement on the CPU model number. But I am not sure if / how the processor is compatible which the previous models. Would it suffice to treat that CPU as PMC_CPU_INTEL_BROADWELL_XEON? Or would something more elaborate be required? I would appreciate any help, patches, suggestions, documentation links, etc. Thank you. -- Andriy Gapon