mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
drm/xe: Suppress printing of mode when running in non-sriov mode
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@intel.com> Cc: Michał Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250116055617.20611-1-satyanarayana.k.v.p@intel.com
This commit is contained in:
parent
238f96315a
commit
173baa1b2d
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user