Bug 1429990

Summary: papi L1 cache events are incorrect on POWER8
Product: [Fedora] Fedora Reporter: Michael Petlan <mpetlan>
Component: papiAssignee: William Cohen <wcohen>
Status: CLOSED EOL QA Contact: Michael Petlan <mpetlan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:52:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Petlan 2017-03-07 15:46:56 UTC
Description of problem:
# ./ctests/tenth 
Test case 10: start, stop for derived event PAPI_L1_DCA.
--------------------------------------------------------
Default domain is: 1 (PAPI_DOM_USER)
Default granularity is: 1 (PAPI_GRN_THR)
Using 100 iterations of c += a*b
Repeated 10 times
-------------------------------------------------------------------------
Test type   :          min          max          sum
PAPI_L1_DCA:         65535    207667972   2076595932
PAPI_L1_DCW:         65535      8651223     86511103
PAPI_L1_DCR:         65535      8650582     86503926
-------------------------------------------------------------------------
Verification:
Sum 1 approximately equals sum 2 + sum 3 or    173015029
percent error: 91.668332
tenth.c                                     FAILED
Line # 220
Error: PAPI_L1_DCA

Version-Release number of selected component (if applicable):
papi-5.4.3-2.fc24.ppc64le

How reproducible:
100% on POWER8

Steps to Reproduce:
1. run ctests/tenth testcase
2.
3.

Actual results:

as above...

Expected results:

--------------------------------------------------------
Default domain is: 1 (PAPI_DOM_USER)
Default granularity is: 1 (PAPI_GRN_THR)
Using 100 iterations of c += a*b
Repeated 10 times
-------------------------------------------------------------------------
Test type   :          min          max          sum
PAPI_L1_DCA:         65535     17316351    173122133
PAPI_L1_DCW:         65535      8650804     86504471
PAPI_L1_DCR:         65535      8659023     86567374
-------------------------------------------------------------------------
Verification:
Sum 1 approximately equals sum 2 + sum 3 or    173071845
percent error: 0.029048
tenth.c                                     PASSED


Additional info:

POWER7 looks OK.

The equation DCA = DCW + DCR should roughly apply to the results.

Comment 1 Michael Petlan 2017-03-07 16:05:02 UTC
It is strange that RHEL-7.3 seems to have the same settings, but the same test passes there even on POWER8.

So, with RHEL-7.3, both POWER7 and POWER8 pass.
With Fedora, POWER7 passes, POWER8 fails.

Comment 2 Fedora End Of Life 2017-11-16 18:52:03 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-12-12 10:52:38 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.