]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf/dwc_pcie: Fix the event numbers
authorIlkka Koskinen <ilkka@os.amperecomputing.com>
Thu, 5 Dec 2024 06:19:13 +0000 (06:19 +0000)
committerWill Deacon <will@kernel.org>
Mon, 9 Dec 2024 15:45:21 +0000 (15:45 +0000)
According to Databook, L1 aux is event number 0x08 and
TX L0s and RX L0S is 0x09. Fix the event numbers for the
two events.

Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241205061914.5568-2-ilkka@os.amperecomputing.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/dwc_pcie_pmu.c

index 9cbea9675e21a07f6369a532ed87266a19b5ebc9..890cf3bb43a22dca1d57a18c3421974524c92e4b 100644 (file)
@@ -199,8 +199,8 @@ static struct attribute *dwc_pcie_pmu_time_event_attrs[] = {
        DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(L1_1, 0x05),
        DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(L1_2, 0x06),
        DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(CFG_RCVRY, 0x07),
-       DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(TX_RX_L0S, 0x08),
-       DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(L1_AUX, 0x09),
+       DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(L1_AUX, 0x08),
+       DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(TX_RX_L0S, 0x09),
 
        /* Group #1 */
        DWC_PCIE_PMU_TIME_BASE_EVENT_ATTR(tx_pcie_tlp_data_payload, 0x20),