diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2023-11-15 10:38:03 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:44:57 +0300 |
commit | 13e5c32c849ace3dd0af9049fc19ce910591db8b (patch) | |
tree | 66feac52f2636c7d9c63519db33eebb248ae5d9e /drivers/gpu/drm/xe/xe_pci.c | |
parent | d6d14854ddf362633fbcf050ce19bd0d7b0d9a3a (diff) | |
download | linux-13e5c32c849ace3dd0af9049fc19ce910591db8b.tar.xz |
drm/xe: Prepare for running in different SR-IOV modes
We will be adding support for the SR-IOV and driver might be then
running, in addition to existing non-virtualized bare-metal mode,
also in Physical Function (PF) or Virtual Function (VF) mode.
Since these additional modes require some changes to the driver,
define enum flag to represent different SR-IOV modes and add a
function where we will detect the actual mode in the runtime.
We start with a forced bare-metal mode as it is sufficient to
enable basic functionality and ensures no impact to existing code.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20231115073804.1861-2-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_pci.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 0a4b83a9fc0b..3d163cb3dd8c 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -24,6 +24,7 @@ #include "xe_module.h" #include "xe_pci_types.h" #include "xe_pm.h" +#include "xe_sriov.h" #include "xe_step.h" enum toggle_d3cold { @@ -705,6 +706,8 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) pci_set_master(pdev); + xe_sriov_probe_early(xe, desc->has_sriov); + err = xe_info_init(xe, desc, subplatform_desc); if (err) goto err_pci_disable; |