Date: Thu, 12 Jan 2017 03:34:29 +0000 (UTC) From: "George V. Neville-Neil" <gnn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r311960 - stable/11/sys/dev/hwpmc Message-ID: <201701120334.v0C3YT4X030809@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gnn Date: Thu Jan 12 03:34:29 2017 New Revision: 311960 URL: https://svnweb.freebsd.org/changeset/base/311960 Log: MFC 311224 Fix PMC architecture check to handle later IPAs including Skylake Tested with tools/test/hwpmc/pmctest.py Obtained from: Oliver Pinter Modified: stable/11/sys/dev/hwpmc/hwpmc_core.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/hwpmc/hwpmc_core.c ============================================================================== --- stable/11/sys/dev/hwpmc/hwpmc_core.c Thu Jan 12 01:20:51 2017 (r311959) +++ stable/11/sys/dev/hwpmc/hwpmc_core.c Thu Jan 12 03:34:29 2017 (r311960) @@ -2857,7 +2857,7 @@ pmc_core_initialize(struct pmc_mdep *md, PMCDBG3(MDP,INI,1,"core-init cputype=%d ncpu=%d ipa-version=%d", core_cputype, maxcpu, ipa_version); - if (ipa_version < 1 || ipa_version > 3 || + if (ipa_version < 1 || ipa_version > 4 || (core_cputype != PMC_CPU_INTEL_CORE && ipa_version == 1)) { /* Unknown PMC architecture. */ printf("hwpc_core: unknown PMC architecture: %d\n",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701120334.v0C3YT4X030809>