drm/xe: Print virtualization mode during probe
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 15 Nov 2023 07:38:04 +0000 (08:38 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:44:57 +0000 (11:44 -0500)
We already print some basic information about the device, add
virtualization information, until we expose that elsewhere.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20231115073804.1861-3-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/xe_pci.c

index 3d163cb3dd8cd315e7f5c436a86469171b7a0cb7..066a223a341a80bfec40b75dc92245e560f28021 100644 (file)
@@ -735,6 +735,10 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
                xe_step_name(xe->info.step.display),
                xe_step_name(xe->info.step.basedie));
 
+       drm_dbg(&xe->drm, "SR-IOV support: %s (mode: %s)\n",
+               str_yes_no(xe_device_has_sriov(xe)),
+               xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
+
        err = xe_device_probe(xe);
        if (err)
                goto err_pci_disable;