Bug 1290998

Summary: Papi errors out with every invocation on Power8
Product: [Fedora] Fedora Reporter: Jakub Jelen <jjelen>
Component: papiAssignee: William Cohen <wcohen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jcapik, wcohen
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-16 12:43:52 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 Jakub Jelen 2015-12-12 15:31:54 UTC
Description of problem:
Actual papi version on Fedora 22 prints errors in the beginning of every invocation.
I was trying to report upstream, but their Trac do not accept any new registration so trying here.
Let me know if there is any more information I should provide or other way to get in touch with upstream

Version-Release number of selected component (if applicable):
papi-5.4.0-3.fc22.ppc64

How reproducible:
deterministic

Steps to Reproduce:
1. Install papi on Power8 machine
2. run papi_mem_info (for example, others result in the same error)

Actual results:
PAPI Error: papi_preset: Error finding event PM_LD_REF_L1.

PAPI Error: papi_preset: Error finding event PM_LD_REF_L1.
[...]

Expected results:
no errors

Comment 1 Jaromír Cápík 2015-12-16 09:02:13 UTC
The papi_mem_info is trying to read from non-existing /sys/devices/cpu/events/PM_LD_REF_L1 file. The file exists on P7+.

Comment 2 Jaromír Cápík 2015-12-16 09:18:45 UTC
The following kernel patch looks like what you need ...

https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-November/135909.html


... but it's quite recent and not applied to f22 sources yet.

Comment 3 William Cohen 2015-12-16 12:23:10 UTC
It looks like libpfm-4.5 in f22 needs the following backported:

https://sourceforge.net/p/perfmon2/libpfm4/ci/506db47a2f0c232f123bdfef0cd281e09bf9f6e3/

Update IBM Power8 event list

The list of available Power 8 performance counter events has been updated.
There are a number of new events that have been added to the list with a
few corrections to existing events.

Signed-off-by: Carl Love <carll.com>

Comment 4 Jaromír Cápík 2015-12-16 12:24:19 UTC
libpfm-4.6.0-3.fc23 helped to get rid of the issue

Comment 5 Jakub Jelen 2015-12-16 12:43:52 UTC
As noted update libpfm to F23 package helped so we can close this report as it is functional in current release.

Thanks for consultation.