drivers/perf: hisi: Add identifier sysfs file
authorJohn Garry <john.garry@huawei.com>
Thu, 8 Oct 2020 09:26:18 +0000 (17:26 +0800)
committerWill Deacon <will@kernel.org>
Wed, 25 Nov 2020 15:10:35 +0000 (15:10 +0000)
commitac4511c9364c9a6390e8585cdd4596103bca16eb
tree288b061966dadaf444755689696905684e4c4620
parent6c8cfbf5db42bc300372d893a140ea0879fb0772
drivers/perf: hisi: Add identifier sysfs file

To allow userspace to identify the specific implementation of the device,
add an "identifier" sysfs file.

Encoding is as follows (same for all uncore drivers):
hi1620: 0x0
hi1630: 0x30

Signed-off-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1602149181-237415-2-git-send-email-john.garry@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c
drivers/perf/hisilicon/hisi_uncore_hha_pmu.c
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c
drivers/perf/hisilicon/hisi_uncore_pmu.c
drivers/perf/hisilicon/hisi_uncore_pmu.h