[PATCH v5 1/5] drm/xe: Introduce dedicated config for memirq debug

Michal Wajdeczko michal.wajdeczko at intel.com
Tue Sep 17 20:07:56 UTC 2024



On 17.09.2024 13:23, Ilia Levi wrote:
> From: Ilia Levi <ilia.levi at intel.com>
> 
> Separate config for memory based interrupts (memirq) infrastructure.

s/for/for debugging

> 
> Signed-off-by: Ilia Levi <ilia.levi at intel.com>
> ---
>  drivers/gpu/drm/xe/Kconfig.debug | 12 ++++++++++++

maybe I wasn't clear but in addition to Kconfig change I was expecting
those small adjustments in memirq_debug() macro definition to be
included in this patch:

-#define memirq_debug(m, msg...)	xe_sriov_dbg_verbose(...)
+
+#define memirq_printk(m, _level, _fmt, ...)			\
+	drm_##_level(&memirq_to_xe(m)->drm, "MEMIRQ%u: " _fmt,	\
+		     memirq_to_tile(m)->id, ##__VA_ARGS__)
+
+#ifdef CONFIG_DRM_XE_DEBUG_MEMIRQ
+#define memirq_debug(m, _fmt, ...)	memirq_printk(m, dbg, _fmt,
##__VA_ARGS__)
+#else
+#define memirq_debug(...)
+#endif
+

>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/Kconfig.debug b/drivers/gpu/drm/xe/Kconfig.debug
> index bc177368af6c..2de0de41b8dd 100644
> --- a/drivers/gpu/drm/xe/Kconfig.debug
> +++ b/drivers/gpu/drm/xe/Kconfig.debug
> @@ -40,9 +40,21 @@ config DRM_XE_DEBUG_VM
>  
>  	  If in doubt, say "N".
>  
> +config DRM_XE_DEBUG_MEMIRQ
> +	bool "Enable extra memirq debugging"
> +	default n
> +	help
> +	  Choose this option to enable additional debugging info for
> +	  memory based interrupts.
> +
> +	  Recommended for driver developers only.
> +
> +	  If in doubt, say "N".
> +
>  config DRM_XE_DEBUG_SRIOV
>  	bool "Enable extra SR-IOV debugging"
>  	default n
> +	select DRM_XE_DEBUG_MEMIRQ
>  	help
>  	  Enable extra SR-IOV debugging info.
>  


More information about the Intel-xe mailing list