Page MenuHomeFreeBSD

bump check for PMC architecture in hwpmc core
ClosedPublic

Authored by op on Jan 3 2017, 11:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 4:50 AM
Unknown Object (File)
Tue, Apr 2, 7:43 PM
Unknown Object (File)
Tue, Apr 2, 5:57 PM
Unknown Object (File)
Mar 3 2024, 7:33 AM
Unknown Object (File)
Mar 3 2024, 7:06 AM
Unknown Object (File)
Feb 21 2024, 5:25 AM
Unknown Object (File)
Feb 16 2024, 11:55 AM
Unknown Object (File)
Jan 24 2024, 4:37 AM
Subscribers

Details

Summary

This fixes the hwpmcs on Intel i7-6700 CPU.

Before this fix on hwpmc module load, we got this error message:

[82] hwpc_core: unknown PMC architecture: 4
[82] hwpmc: SOFT/16/64/0x67<INT,USR,SYS,REA,WRI>

but with this patch:

[335] hwpmc: SOFT/16/64/0x67<INT,USR,SYS,REA,WRI> TSC/1/64/0x20<REA> IAP/4/48/0x3ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA,PRC> IAF/3/48/0x67<INT,USR,SYS,REA,WRI>

and the hwpmc is fully functional.

Obtained-from: opBSD

Test Plan

0. get a skylake cpu based system

  1. apply the patch
  2. recompile the hwpmc module
  3. kldload hwpmc
  4. pmcstat -T -S instructions

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

op retitled this revision from to bump check for PMC architecture check in hwpmc core.
op updated this object.
op edited the test plan for this revision. (Show Details)
op added reviewers: rrs, kib, jhb.
op set the repository for this revision to rS FreeBSD src repository - subversion.
op retitled this revision from bump check for PMC architecture check in hwpmc core to bump check for PMC architecture in hwpmc core.Jan 3 2017, 11:25 PM

(When the diff got a positive review, please commit them.)

This revision was automatically updated to reflect the committed changes.