drm/xe: Define DRM_XE_DEBUG_SRIOV config
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 28 Nov 2023 15:15:03 +0000 (16:15 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:27 +0000 (11:45 -0500)
We will be using extra logs during enabling of the SR-IOV features
or when adding support for new platforms. Define separate config
flag to keep that low level logs disabled if we're not debugging.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20231128151507.1015-2-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/Kconfig.debug

index 11bb13c73e7b6888ea69cd32fb966ad038635f19..549065f57a78e63ffcf52bc01c1cf25ebae52120 100644 (file)
@@ -40,6 +40,16 @@ config DRM_XE_DEBUG_VM
 
          If in doubt, say "N".
 
+config DRM_XE_DEBUG_SRIOV
+       bool "Enable extra SR-IOV debugging"
+       default n
+       help
+         Enable extra SR-IOV debugging info.
+
+         Recommended for driver developers only.
+
+         If in doubt, say "N".
+
 config DRM_XE_DEBUG_MEM
        bool "Enable passing SYS/VRAM addresses to user space"
        default n