Patch "perf vendor events: Update PMC used in PM_RUN_INST_CMPL event for power10 platform" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf vendor events: Update PMC used in PM_RUN_INST_CMPL event for power10 platform

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-vendor-events-update-pmc-used-in-pm_run_inst_cm.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d0449ec19383b0ce8b30fae2dca4d9c6a2a7903c
Author: Kajol Jain <kjain@xxxxxxxxxxxxx>
Date:   Mon Oct 16 20:01:10 2023 +0530

    perf vendor events: Update PMC used in PM_RUN_INST_CMPL event for power10 platform
    
    [ Upstream commit 3f8b6e5b11192dacb721d2d28ea4589917f5e822 ]
    
    The CPI_STALL_RATIO metric group can be used to present the high
    level CPI stall breakdown metrics in powerpc, which will show:
    
    - DISPATCH_STALL_CPI ( Dispatch stall cycles per insn )
    - ISSUE_STALL_CPI ( Issue stall cycles per insn )
    - EXECUTION_STALL_CPI ( Execution stall cycles per insn )
    - COMPLETION_STALL_CPI ( Completion stall cycles per insn )
    
    Commit cf26e043c2a9 ("perf vendor events power10: Add JSON
    metric events to present CPI stall cycles in powerpc)" which added
    the CPI_STALL_RATIO metric group, also modified
    the PMC value used in PM_RUN_INST_CMPL event from PMC4 to PMC5,
    to avoid multiplexing of events.
    But that got revert in recent changes. Fix this issue by changing
    back the PMC value used in PM_RUN_INST_CMPL to PMC5.
    
    Result with the fix:
    
     ./perf stat --metric-no-group -M CPI_STALL_RATIO <workload>
    
     Performance counter stats for 'workload':
    
            68,745,426      PM_CMPL_STALL                    #     0.21 COMPLETION_STALL_CPI
             7,692,827      PM_ISSUE_STALL                   #     0.02 ISSUE_STALL_CPI
           322,638,223      PM_RUN_INST_CMPL                 #     0.05 DISPATCH_STALL_CPI
                                                      #     0.48 EXECUTION_STALL_CPI
            16,858,553      PM_DISP_STALL_CYC
           153,880,133      PM_EXEC_STALL
    
           0.089774592 seconds time elapsed
    
    "--metric-no-group" is used for forcing PM_RUN_INST_CMPL to be scheduled
    in all group for more accuracy.
    
    Fixes: 7d473f475b2a ("perf vendor events: Move JSON/events to appropriate files for power10 platform")
    Reported-by: Disha Goel <disgoel@xxxxxxxxxxxxxxxxxx>
    Signed-off-by: Kajol Jain <kjain@xxxxxxxxxxxxx>
    Reviewed-by: Athira Rajeev <atrajeev@xxxxxxxxxxxxxxxxxx>
    Tested-by: Disha Goel<disgoel@xxxxxxxxxxxxx>
    Cc: maddy@xxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20231016143110.244255-1-kjain@xxxxxxxxxxxxx
    Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/pmu-events/arch/powerpc/power10/pmc.json b/tools/perf/pmu-events/arch/powerpc/power10/pmc.json
index 0a2bf56ee7c10..1c44f0120505e 100644
--- a/tools/perf/pmu-events/arch/powerpc/power10/pmc.json
+++ b/tools/perf/pmu-events/arch/powerpc/power10/pmc.json
@@ -190,7 +190,7 @@
     "BriefDescription": "Threshold counter exceeded a value of 128."
   },
   {
-    "EventCode": "0x400FA",
+    "EventCode": "0x500FA",
     "EventName": "PM_RUN_INST_CMPL",
     "BriefDescription": "PowerPC instruction completed while the run latch is set."
   }



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux