drivers/gpu/trace/Kconfig | 1 + 1 file changed, 1 insertion(+)
GPU memory usage tracepoints are only used by DRM GPU drivers.
Hence add a dependency on DRM, to prevent asking the user about this
functionality when configuring a kernel without DRM GPU support.
Fixes: 5d95cbf21a4a550f ("gpu/trace: make TRACE_GPU_MEM configurable")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/gpu/trace/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/trace/Kconfig b/drivers/gpu/trace/Kconfig
index cd3d19c4a201c9c6..7f405ce7df5a0a42 100644
--- a/drivers/gpu/trace/Kconfig
+++ b/drivers/gpu/trace/Kconfig
@@ -2,6 +2,7 @@
config TRACE_GPU_MEM
bool "Enable GPU memory usage tracepoints"
+ depends on DRM || COMPILE_TEST
default n
help
Choose this option to enable tracepoints for tracking
--
2.43.0
On Thu, Jul 31, 2025 at 09:51:13AM +0200, Geert Uytterhoeven wrote: >GPU memory usage tracepoints are only used by DRM GPU drivers. >Hence add a dependency on DRM, to prevent asking the user about this >functionality when configuring a kernel without DRM GPU support. > >Fixes: 5d95cbf21a4a550f ("gpu/trace: make TRACE_GPU_MEM configurable") >Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Currently there are 2 drivers using it: drm/xe and drm/msm, but there's no real dependency and in future more drivers may add these tracepoints. Juston, do you have any other drivers planned? Lucas De Marchi >--- > drivers/gpu/trace/Kconfig | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/drivers/gpu/trace/Kconfig b/drivers/gpu/trace/Kconfig >index cd3d19c4a201c9c6..7f405ce7df5a0a42 100644 >--- a/drivers/gpu/trace/Kconfig >+++ b/drivers/gpu/trace/Kconfig >@@ -2,6 +2,7 @@ > > config TRACE_GPU_MEM > bool "Enable GPU memory usage tracepoints" >+ depends on DRM || COMPILE_TEST > default n > help > Choose this option to enable tracepoints for tracking >-- >2.43.0 >
© 2016 - 2025 Red Hat, Inc.