]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/xe: Enable SR-IOV for ADL/ATSM
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 22 Jul 2025 18:26:17 +0000 (20:26 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 23 Jul 2025 18:49:48 +0000 (11:49 -0700)
We were already testing those two platforms for a while on our CI,
but enabling flag (has_sriov) was only available on the topic branch
and only for builds with CONFIG_DRM_XE_DEBUG config.

Since those two platforms are guarded by the another enabling flag
(require_force_probe) and we believe our SR-IOV support for them is
at sufficient level to start enjoying the feature, turn on the
SR-IOV enabling flag unconditionally.

Suggested-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250722182618.30811-4-michal.wajdeczko@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_pci.c

index f64942737a0b12ca398544ef4cebe056b4e44e9f..c672af43d3616a7d031de11c5f229e3a308ca0de 100644 (file)
@@ -193,6 +193,7 @@ static const struct xe_device_desc adl_s_desc = {
        .dma_mask_size = 39,
        .has_display = true,
        .has_llc = true,
+       .has_sriov = true,
        .max_gt_per_tile = 1,
        .require_force_probe = true,
        .subplatforms = (const struct xe_subplatform_desc[]) {
@@ -210,6 +211,7 @@ static const struct xe_device_desc adl_p_desc = {
        .dma_mask_size = 39,
        .has_display = true,
        .has_llc = true,
+       .has_sriov = true,
        .max_gt_per_tile = 1,
        .require_force_probe = true,
        .subplatforms = (const struct xe_subplatform_desc[]) {
@@ -225,6 +227,7 @@ static const struct xe_device_desc adl_n_desc = {
        .dma_mask_size = 39,
        .has_display = true,
        .has_llc = true,
+       .has_sriov = true,
        .max_gt_per_tile = 1,
        .require_force_probe = true,
 };
@@ -270,6 +273,7 @@ static const struct xe_device_desc ats_m_desc = {
 
        DG2_FEATURES,
        .has_display = false,
+       .has_sriov = true,
 };
 
 static const struct xe_device_desc dg2_desc = {