We have 2 of those we can configure to source programmable events.
Those are not part of the OA reports. Configuration happens in i915
through the metric set selected by the application. On the Mesa side
we'll just sample those and do a diff.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
<field name="All Allocation" start="25" end="31" type="uint"/>
</register>
+ <register name="PERFCNT1" length="2" num="0x91b8">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
+ <register name="PERFCNT2" length="2" num="0x91c0">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
<register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
<field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
</register>
<field name="All Allocation" start="25" end="31" type="uint"/>
</register>
+ <register name="PERFCNT1" length="2" num="0x91b8">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
+ <register name="PERFCNT2" length="2" num="0x91c0">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
<register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
<field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
</register>
<field name="All Allocation" start="25" end="31" type="uint"/>
</register>
+ <register name="PERFCNT1" length="2" num="0x91b8">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
+ <register name="PERFCNT2" length="2" num="0x91c0">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
<register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
<field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
</register>
<field name="All Allocation" start="25" end="31" type="uint"/>
</register>
+ <register name="PERFCNT1" length="2" num="0x91b8">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
+ <register name="PERFCNT2" length="2" num="0x91c0">
+ <field name="Value" start="0" end="43" type="uint"/>
+ <field name="Event Selection" start="52" end="59" type="uint"/>
+ <field name="Counter Clear" start="60" end="60" type="bool"/>
+ <field name="Edge Detect" start="61" end="61" type="bool"/>
+ <field name="Overflow Enable" start="62" end="62" type="bool"/>
+ <field name="Counter Enable" start="63" end="63" type="bool"/>
+ </register>
+
<register name="PS_INVOCATION_COUNT" length="2" num="0x2348">
<field name="PS Invocation Count Report" start="0" end="63" type="uint"/>
</register>