Date: Wed, 4 Jan 2017 02:15:03 +0000 (UTC) From: "George V. Neville-Neil" <gnn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311224 - head/sys/dev/hwpmc Message-ID: <201701040215.v042F3MC026377@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gnn Date: Wed Jan 4 02:15:03 2017 New Revision: 311224 URL: https://svnweb.freebsd.org/changeset/base/311224 Log: Fix PMC architecture check to handle later IPAs including Skylake Tested with tools/test/hwpmc/pmctest.py Obtained from: Oliver Pinter MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D9036 Modified: head/sys/dev/hwpmc/hwpmc_core.c Modified: head/sys/dev/hwpmc/hwpmc_core.c ============================================================================== --- head/sys/dev/hwpmc/hwpmc_core.c Wed Jan 4 01:58:38 2017 (r311223) +++ head/sys/dev/hwpmc/hwpmc_core.c Wed Jan 4 02:15:03 2017 (r311224) @@ -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?201701040215.v042F3MC026377>