[PATCH v5 3/5] drm/xe: move memirq out of VF
Michal Wajdeczko
michal.wajdeczko at intel.com
Tue Sep 17 20:14:36 UTC 2024
On 17.09.2024 13:23, Ilia Levi wrote:
> From: Ilia Levi <ilia.levi at intel.com>
>
> Up until now only VF used Memory Based Interrupts (memirq).
> Moving it out of VF to cater for other usages, specifically MSI-X.
>
> Signed-off-by: Ilia Levi <ilia.levi at intel.com>
> ---
...
> diff --git a/drivers/gpu/drm/xe/xe_memirq.c b/drivers/gpu/drm/xe/xe_memirq.c
> index 464cb9d7fee2..8b12209d995a 100644
> --- a/drivers/gpu/drm/xe/xe_memirq.c
> +++ b/drivers/gpu/drm/xe/xe_memirq.c
> @@ -19,15 +19,25 @@
> #include "xe_hw_engine.h"
> #include "xe_map.h"
> #include "xe_memirq.h"
> -#include "xe_sriov.h"
> -#include "xe_sriov_printk.h"
>
> #define memirq_assert(m, condition) xe_tile_assert(memirq_to_tile(m), condition)
> -#define memirq_debug(m, msg...) xe_sriov_dbg_verbose(memirq_to_xe(m), "MEMIRQ: " msg)
> +#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
> +
> +#define memirq_err(m, _fmt, ...) memirq_printk(m, err, _fmt, ##__VA_ARGS__)
> +#define memirq_err_ratelimited(m, _fmt, ...) \
> + memirq_printk(m, err_ratelimited, _fmt, ##__VA_ARGS__)
>
with memirq_dbg() changes moved to patch 1/5
Reviewed-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
More information about the Intel-xe
mailing list