Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
paflib
paflib.reset_MMCR0_independently_of_PAF_EBB_FLA...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File paflib.reset_MMCR0_independently_of_PAF_EBB_FLAGS_RESET_PMU.patch of Package paflib
diff --git a/ebb/ebb-hook.c b/ebb/ebb-hook.c index aa0c2e5..388dc76 100644 --- a/ebb/ebb-hook.c +++ b/ebb/ebb-hook.c @@ -52,11 +52,20 @@ out: flags = __paf_ebb_get_thread_flags (); if (flags & PAF_EBB_FLAGS_RESET_PMU) { + /* 1) If requested, reset PMC to possible trigger another EBB */ uint32_t sample_period = __paf_ebb_get_thread_sample_period (); - reset_mmcr0 (); reset_pmcs (sample_period); } + /* 2) clear MMCR0[PMAO] - docs say BESCR[PMEO] should do this */ + /* 3) set MMCR0[PMAE] - docs say BESCR[PME] should do this */ + reset_mmcr0 (); + + /* 4) clear BESCR[PMEO] */ mtspr (BESCRR, BESCR_PMEO); + + /* 5) set BESCR[PME] */ mtspr (BESCRSU, BESCR_PMEU); + + /* 6) rfebb 1 - done in ebb-callback*.S */ }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor