drivers/perf: hisi_pcie: Add more events for counting TLP bandwidth
authorYicong Yang <yangyicong@hisilicon.com>
Fri, 23 Feb 2024 10:33:55 +0000 (18:33 +0800)
committerWill Deacon <will@kernel.org>
Mon, 4 Mar 2024 14:18:28 +0000 (14:18 +0000)
commit00ca69b856ba5ff0dab241bafe7119cd08348a92
tree6992c14990b9a7cd7df9f0ef440ca3a7a5be4c57
parentb6693ad68e2725a61d628f077e75eb3c31b9ea44
drivers/perf: hisi_pcie: Add more events for counting TLP bandwidth

A typical PCIe transaction is consisted of various TLP packets in both
direction. For counting bandwidth only memory read events are exported
currently. Add memory write and completion counting events of both
direction to complete the bandwidth counting.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240223103359.18669-5-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_pcie_pmu.c