Bug 1228289 - Backport arm64: Enable Nvidia driver for Coresight PMU arch device
Summary: Backport arm64: Enable Nvidia driver for Coresight PMU arch device
Status: IN_PROGRESS
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Kernel (show other bugs)
Version: unspecified
Hardware: aarch64 SLES 15
: P5 - None : Normal
Target Milestone: ---
Assignee: Ivan Ivanov
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-24 17:03 UTC by Carol Soto
Modified: 2024-07-25 19:59 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carol Soto 2024-07-24 17:03:30 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
Comment 1 Miroslav Beneš 2024-07-25 09:31:36 UTC
(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?
Comment 2 Carol Soto 2024-07-25 14:41:19 UTC
(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.
Comment 3 Carol Soto 2024-07-25 19:59:02 UTC
(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