[Mesa-dev] [PATCH 14/19] intel: perf: kbl: add pma stall metric
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Mon Jun 18 17:39:35 UTC 2018
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/perf/oa-kblgt2.xml | 103 ++++++++++++++++++++++++++++++++++-
src/intel/perf/oa-kblgt3.xml | 103 ++++++++++++++++++++++++++++++++++-
2 files changed, 204 insertions(+), 2 deletions(-)
diff --git a/src/intel/perf/oa-kblgt2.xml b/src/intel/perf/oa-kblgt2.xml
index da2954e9e2d..c9150c8dcbe 100644
--- a/src/intel/perf/oa-kblgt2.xml
+++ b/src/intel/perf/oa-kblgt2.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<metrics version="1508421694" merge_md5="">
+<metrics version="1522878593" merge_md5="">
<set name="Render Metrics Basic Gen9"
mdapi_supported_apis="OGL OCL IO BB"
underscore_name="render_basic"
@@ -10634,4 +10634,105 @@
</register_config>
</set>
+ <set name="Metric set PMA Stall"
+ mdapi_supported_apis="OGL OGL4 OCL IO MEDIA"
+ underscore_name="pma__stall"
+ hw_config_guid="b49aa434-4958-4d98-9e6f-443ff27ca74d"
+ chipset="KBLGT2"
+ symbol_name="PMA_Stall"
+ >
+ <counter name="GPU Time Elapsed"
+ description="Time elapsed on the GPU during the measurement."
+ data_type="uint64"
+ equation="GPU_TIME 0 READ 1000000000 UMUL $GpuTimestampFrequency UDIV"
+ underscore_name="gpu_time"
+ units="ns"
+ symbol_name="GpuTime"
+ semantic_type="duration"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Tier1 Overview System Frame Batch Draw"
+ mdapi_hw_unit_type="gpu"
+ mdapi_group="GPU"
+ />
+ <counter name="GPU Core Clocks"
+ description="The total number of GPU core clocks elapsed during the measurement."
+ data_type="uint64"
+ equation="GPU_CLOCK 0 READ"
+ underscore_name="gpu_core_clocks"
+ units="cycles"
+ symbol_name="GpuCoreClocks"
+ semantic_type="event"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Tier1 Frame Batch Draw"
+ mdapi_hw_unit_type="gpu"
+ mdapi_group="GPU"
+ />
+ <counter name="STC PMA stall"
+ description="Percentage of time when stencil cache line and an overlapping pixel are causing stalls"
+ data_type="float"
+ max_equation="100"
+ equation="B 0 READ B 1 READ FADD 2 FDIV 100 UMUL $GpuCoreClocks FDIV"
+ underscore_name="stc_pma_stall"
+ units="percent"
+ symbol_name="StcPMAStall"
+ availability="$SliceMask 1 AND"
+ semantic_type="duration"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Frame Batch Draw"
+ mdapi_group="GPU/Stencil Cache"
+ mdapi_hw_unit_type="gpu"
+ />
+ <counter name="AVG GPU Core Frequency"
+ description="Average GPU Core Frequency in the measurement."
+ data_type="uint64"
+ max_equation="$GpuMaxFrequency"
+ equation="$GpuCoreClocks 1000000000 UMUL $GpuTime UDIV"
+ underscore_name="avg_gpu_core_frequency"
+ units="hz"
+ symbol_name="AvgGpuCoreFrequency"
+ semantic_type="event"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Tier1 Overview System Frame Batch Draw"
+ mdapi_group="GPU"
+ mdapi_hw_unit_type="gpu"
+ />
+ <register_config type="NOA">
+ <register type="NOA" address="0x00009840" value="0x00000080" />
+ <register type="NOA" address="0x00009888" value="0x122D3080" />
+ <register type="NOA" address="0x00009888" value="0x000D2000" />
+ <register type="NOA" address="0x00009888" value="0x060D8000" />
+ <register type="NOA" address="0x00009888" value="0x080DA000" />
+ <register type="NOA" address="0x00009888" value="0x0A0DA000" />
+ <register type="NOA" address="0x00009888" value="0x0C0F0800" />
+ <register type="NOA" address="0x00009888" value="0x0E0FAA00" />
+ <register type="NOA" address="0x00009888" value="0x100F0002" />
+ <register type="NOA" address="0x00009888" value="0x002D0025" />
+ <register type="NOA" address="0x00009888" value="0x062D1300" />
+ <register type="NOA" address="0x00009888" value="0x082D16A4" />
+ <register type="NOA" address="0x00009888" value="0x0A2D162E" />
+ <register type="NOA" address="0x00009888" value="0x102D0000" />
+ <register type="NOA" address="0x00009888" value="0x1190003F" />
+ <register type="NOA" address="0x00009888" value="0x51900000" />
+ <register type="NOA" address="0x00009888" value="0x41900000" />
+ <register type="NOA" address="0x00009888" value="0x55900000" />
+ <register type="NOA" address="0x00009888" value="0x45900000" />
+ <register type="NOA" address="0x00009888" value="0x47900000" />
+ <register type="NOA" address="0x00009888" value="0x57900000" />
+ <register type="NOA" address="0x00009888" value="0x49900000" />
+ <register type="NOA" address="0x00009888" value="0x37900000" />
+ <register type="NOA" address="0x00009888" value="0x33900000" />
+ </register_config>
+ <register_config type="OA">
+ <register type="OA" address="0x00002740" value="0x00000000" />
+ <register type="OA" address="0x00002710" value="0x00000000" />
+ <register type="OA" address="0x00002714" value="0x30800000" />
+ <register type="OA" address="0x00002720" value="0x00000000" />
+ <register type="OA" address="0x00002724" value="0x00800000" />
+ <register type="OA" address="0x00002770" value="0x00E00021" />
+ <register type="OA" address="0x00002774" value="0x0007FFF8" />
+ <register type="OA" address="0x00002778" value="0x07000101" />
+ <register type="OA" address="0x0000277C" value="0x0038FFC7" />
+ </register_config>
+ </set>
+
</metrics>
diff --git a/src/intel/perf/oa-kblgt3.xml b/src/intel/perf/oa-kblgt3.xml
index aa1e83e3da1..20911267138 100644
--- a/src/intel/perf/oa-kblgt3.xml
+++ b/src/intel/perf/oa-kblgt3.xml
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
-<metrics version="1508421695" merge_md5="">
+<metrics version="1522878593" merge_md5="">
<set name="Render Metrics Basic Gen9"
mdapi_supported_apis="OGL OCL IO BB"
underscore_name="render_basic"
@@ -10701,4 +10701,105 @@
</register_config>
</set>
+ <set name="Metric set PMA Stall"
+ mdapi_supported_apis="OGL OGL4 OCL IO MEDIA"
+ underscore_name="pma__stall"
+ hw_config_guid="85bc2e4f-2563-4388-921b-dc0dad879cf3"
+ chipset="KBLGT3"
+ symbol_name="PMA_Stall"
+ >
+ <counter name="GPU Time Elapsed"
+ description="Time elapsed on the GPU during the measurement."
+ data_type="uint64"
+ equation="GPU_TIME 0 READ 1000000000 UMUL $GpuTimestampFrequency UDIV"
+ underscore_name="gpu_time"
+ units="ns"
+ symbol_name="GpuTime"
+ semantic_type="duration"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Tier1 Overview System Frame Batch Draw"
+ mdapi_hw_unit_type="gpu"
+ mdapi_group="GPU"
+ />
+ <counter name="GPU Core Clocks"
+ description="The total number of GPU core clocks elapsed during the measurement."
+ data_type="uint64"
+ equation="GPU_CLOCK 0 READ"
+ underscore_name="gpu_core_clocks"
+ units="cycles"
+ symbol_name="GpuCoreClocks"
+ semantic_type="event"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Tier1 Frame Batch Draw"
+ mdapi_hw_unit_type="gpu"
+ mdapi_group="GPU"
+ />
+ <counter name="STC PMA stall"
+ description="Percentage of time when stencil cache line and an overlapping pixel are causing stalls"
+ data_type="float"
+ max_equation="100"
+ equation="B 0 READ B 1 READ FADD 2 FDIV 100 UMUL $GpuCoreClocks FDIV"
+ underscore_name="stc_pma_stall"
+ units="percent"
+ symbol_name="StcPMAStall"
+ availability="$SliceMask 1 AND"
+ semantic_type="duration"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Frame Batch Draw"
+ mdapi_group="GPU/Stencil Cache"
+ mdapi_hw_unit_type="gpu"
+ />
+ <counter name="AVG GPU Core Frequency"
+ description="Average GPU Core Frequency in the measurement."
+ data_type="uint64"
+ max_equation="$GpuMaxFrequency"
+ equation="$GpuCoreClocks 1000000000 UMUL $GpuTime UDIV"
+ underscore_name="avg_gpu_core_frequency"
+ units="hz"
+ symbol_name="AvgGpuCoreFrequency"
+ semantic_type="event"
+ mdapi_supported_apis=""
+ mdapi_usage_flags="Tier1 Overview System Frame Batch Draw"
+ mdapi_group="GPU"
+ mdapi_hw_unit_type="gpu"
+ />
+ <register_config type="NOA">
+ <register type="NOA" address="0x00009840" value="0x00000080" />
+ <register type="NOA" address="0x00009888" value="0x122D3080" />
+ <register type="NOA" address="0x00009888" value="0x000D2000" />
+ <register type="NOA" address="0x00009888" value="0x060D8000" />
+ <register type="NOA" address="0x00009888" value="0x080DA000" />
+ <register type="NOA" address="0x00009888" value="0x0A0DA000" />
+ <register type="NOA" address="0x00009888" value="0x0C0F0800" />
+ <register type="NOA" address="0x00009888" value="0x0E0FAA00" />
+ <register type="NOA" address="0x00009888" value="0x100F0002" />
+ <register type="NOA" address="0x00009888" value="0x002D0025" />
+ <register type="NOA" address="0x00009888" value="0x062D1300" />
+ <register type="NOA" address="0x00009888" value="0x082D16A4" />
+ <register type="NOA" address="0x00009888" value="0x0A2D162E" />
+ <register type="NOA" address="0x00009888" value="0x102D0000" />
+ <register type="NOA" address="0x00009888" value="0x1190003F" />
+ <register type="NOA" address="0x00009888" value="0x51900000" />
+ <register type="NOA" address="0x00009888" value="0x41900000" />
+ <register type="NOA" address="0x00009888" value="0x55900000" />
+ <register type="NOA" address="0x00009888" value="0x45900000" />
+ <register type="NOA" address="0x00009888" value="0x47900000" />
+ <register type="NOA" address="0x00009888" value="0x57900000" />
+ <register type="NOA" address="0x00009888" value="0x49900000" />
+ <register type="NOA" address="0x00009888" value="0x37900000" />
+ <register type="NOA" address="0x00009888" value="0x33900000" />
+ </register_config>
+ <register_config type="OA">
+ <register type="OA" address="0x00002740" value="0x00000000" />
+ <register type="OA" address="0x00002710" value="0x00000000" />
+ <register type="OA" address="0x00002714" value="0x30800000" />
+ <register type="OA" address="0x00002720" value="0x00000000" />
+ <register type="OA" address="0x00002724" value="0x00800000" />
+ <register type="OA" address="0x00002770" value="0x00E00021" />
+ <register type="OA" address="0x00002774" value="0x0007FFF8" />
+ <register type="OA" address="0x00002778" value="0x07000101" />
+ <register type="OA" address="0x0000277C" value="0x0038FFC7" />
+ </register_config>
+ </set>
+
</metrics>
--
2.17.1
More information about the mesa-dev
mailing list