[PATCH] drm/xe: Suppress printing of mode when running in non-sriov mode.

Lucas De Marchi lucas.demarchi at intel.com
Thu Jan 16 14:51:40 UTC 2025


On Thu, Jan 16, 2025 at 11:26:17AM +0530, Satyanarayana K V P wrote:
>The xe_sriov_probe_early() function prints the sriov pf/vf mode on
>driver probe. When running in non-sriov mode, the below debug message
>is seen.
>
>"Running in none mode".
>
>This print does not convey any information. This commit suppresses this
>debug message and shows only when running in PF/VF mode.
>
>Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
>Cc: Michał Wajdeczko <michal.wajdeczko at intel.com>

Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi

>---
> drivers/gpu/drm/xe/xe_sriov.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_sriov.c b/drivers/gpu/drm/xe/xe_sriov.c
>index 04e2f539ccd9..a0eab44c0e76 100644
>--- a/drivers/gpu/drm/xe/xe_sriov.c
>+++ b/drivers/gpu/drm/xe/xe_sriov.c
>@@ -81,7 +81,7 @@ void xe_sriov_probe_early(struct xe_device *xe)
> 	xe->sriov.__mode = mode;
> 	xe_assert(xe, xe->sriov.__mode);
>
>-	if (has_sriov)
>+	if (IS_SRIOV(xe))
> 		drm_info(&xe->drm, "Running in %s mode\n",
> 			 xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
> }
>-- 
>2.35.3
>


More information about the Intel-xe mailing list