From: Tomasz Lis Date: Tue, 21 Oct 2025 22:48:17 +0000 (+0200) Subject: drm/xe/vf: Do not disable VF migration on ATS-M X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13fb4b39e95d7ed62a598881896803d686fdb01d;p=thirdparty%2Fkernel%2Flinux.git drm/xe/vf: Do not disable VF migration on ATS-M Our current support for the VF migration depends on the availability of the MEMIRQ rather than specific graphics version 20. Relax our early migration support checks to allow also use some older platforms like ATS-M for experiments and testing. Do not allow ADL, as supporting VF migration through MMIO interrupts would require additional changes in order to achieve reliability. Reviewed-by: Michal Wajdeczko Cc: Michal Wajdeczko Signed-off-by: Tomasz Lis Signed-off-by: Michal Wajdeczko Link: https://lore.kernel.org/r/20251021224817.1593817-5-tomasz.lis@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c index 13d6c094ae8f6..39c829daa97c7 100644 --- a/drivers/gpu/drm/xe/xe_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_sriov_vf.c @@ -164,10 +164,9 @@ static void vf_migration_init_early(struct xe_device *xe) return xe_sriov_vf_migration_disable(xe, "experimental feature not available on production builds"); - if (GRAPHICS_VER(xe) < 20) - return xe_sriov_vf_migration_disable(xe, - "requires gfx version >= 20, but only %u found", - GRAPHICS_VER(xe)); + if (!xe_device_has_memirq(xe)) + return xe_sriov_vf_migration_disable(xe, "requires memory-based IRQ support"); + } /**