Bugzilla – Bug 1228289
Backport arm64: Enable Nvidia driver for Coresight PMU arch device
Last modified: 2024-07-25 19:59:02 UTC
We want to be able to do: perf list | grep nvidia and see PMU events listed at SLES 15 SP6. SLES 15 SP6 has this patch: https://github.com/torvalds/linux/commit/bfc653aa89cb05796d7b4e046600accb442c9b7a Then will need this patch: arm64: defconfig: Enable NVIDIA CoreSight PMU driver CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m This patch went thru this patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=a9a4cd9c3397109c2799cb765ab0d3959831a248 lore discussion: https://lore.kernel.org/linux-arm-kernel/20240509215808.126217-1-bwicaksono@nvidia.com/ Probably need to enable this one too: grep CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU /boot/config-6.4.0-150600.23.14-64kb # CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU is not set
(In reply to Carol Soto from comment #0) > We want to be able to do: > perf list | grep nvidia > and see PMU events listed at SLES 15 SP6. > > SLES 15 SP6 has this patch: > https://github.com/torvalds/linux/commit/ > bfc653aa89cb05796d7b4e046600accb442c9b7a > > Then will need this patch: > > arm64: defconfig: Enable NVIDIA CoreSight PMU driver > > CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m > > This patch went thru this patch: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/ > ?id=a9a4cd9c3397109c2799cb765ab0d3959831a248 Not exactly, updating defconfig would not help much. > lore discussion: > > https://lore.kernel.org/linux-arm-kernel/20240509215808.126217-1- > bwicaksono@nvidia.com/ > > > Probably need to enable this one too: > grep CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU > /boot/config-6.4.0-150600.23.14-64kb > # CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU is not set Right, so the report is just about enabling CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU, correct?
(In reply to Miroslav Beneš from comment #1) > (In reply to Carol Soto from comment #0) > > We want to be able to do: > > perf list | grep nvidia > > and see PMU events listed at SLES 15 SP6. > > > > SLES 15 SP6 has this patch: > > https://github.com/torvalds/linux/commit/ > > bfc653aa89cb05796d7b4e046600accb442c9b7a > > > > Then will need this patch: > > > > arm64: defconfig: Enable NVIDIA CoreSight PMU driver > > > > CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m > > > > This patch went thru this patch: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/ > > ?id=a9a4cd9c3397109c2799cb765ab0d3959831a248 > > Not exactly, updating defconfig would not help much. > > > lore discussion: > > > > https://lore.kernel.org/linux-arm-kernel/20240509215808.126217-1- > > bwicaksono@nvidia.com/ > > > > > > Probably need to enable this one too: > > grep CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU > > /boot/config-6.4.0-150600.23.14-64kb > > # CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU is not set > > Right, so the report is just about enabling > CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU, correct? Yes enabling CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU and CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU.
(In reply to Carol Soto from comment #2) > (In reply to Miroslav Beneš from comment #1) > > (In reply to Carol Soto from comment #0) > > > We want to be able to do: > > > perf list | grep nvidia > > > and see PMU events listed at SLES 15 SP6. > > > > > > SLES 15 SP6 has this patch: > > > https://github.com/torvalds/linux/commit/ > > > bfc653aa89cb05796d7b4e046600accb442c9b7a > > > > > > Then will need this patch: > > > > > > arm64: defconfig: Enable NVIDIA CoreSight PMU driver > > > > > > CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m > > > > > > This patch went thru this patch: > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/ > > > ?id=a9a4cd9c3397109c2799cb765ab0d3959831a248 > > > > Not exactly, updating defconfig would not help much. > > > > > lore discussion: > > > > > > https://lore.kernel.org/linux-arm-kernel/20240509215808.126217-1- > > > bwicaksono@nvidia.com/ > > > > > > > > > Probably need to enable this one too: > > > grep CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU > > > /boot/config-6.4.0-150600.23.14-64kb > > > # CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU is not set > > > > Right, so the report is just about enabling > > CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU, correct? > > Yes enabling CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU and > CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU. Just in case, they can be CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m