Skip to content

Commit

Permalink
Clear MBOX registers at startCounters for Intel Broadwell
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Dec 12, 2022
1 parent 914697f commit 88cf44d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/includes/perfmon_broadwell.h
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,22 @@ int perfmon_startCountersThread_broadwell(int thread_id, PerfmonEventSet* eventS
}
}
break;
case MBOX1:
case MBOX2:
case MBOX3:
case MBOX4:
case MBOX5:
case MBOX6:
case MBOX7:
if (haveLock)
{
if (!cpuid_info.supportClientmem)
{
VERBOSEPRINTREG(cpu_id, counter1, 0x0ULL, CLEAR_BOX)
CHECK_MSR_WRITE_ERROR(HPMwrite(cpu_id, dev, counter1, 0x0ULL));
}
}
break;
case WBOX0FIX:
if (haveLock)
{
Expand Down

0 comments on commit 88cf44d

Please sign in to comment.