]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/vf: Revert logic of vf.migration.enabled
authorTomasz Lis <tomasz.lis@intel.com>
Tue, 21 Oct 2025 22:48:14 +0000 (00:48 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 Oct 2025 14:00:45 +0000 (16:00 +0200)
Convert `enabled` property into `disabled`.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20251021224817.1593817-2-tomasz.lis@intel.com
drivers/gpu/drm/xe/xe_sriov_vf.c
drivers/gpu/drm/xe/xe_sriov_vf_types.h

index 911d5720917bc6a5b0886de84c11f9e049127d82..0d8135f3927ce72acddb83b43c7148dff0f35fe6 100644 (file)
 bool xe_sriov_vf_migration_supported(struct xe_device *xe)
 {
        xe_assert(xe, IS_SRIOV_VF(xe));
-       return xe->sriov.vf.migration.enabled;
+       return !xe->sriov.vf.migration.disabled;
 }
 
 static void vf_disable_migration(struct xe_device *xe, const char *fmt, ...)
@@ -146,7 +146,7 @@ static void vf_disable_migration(struct xe_device *xe, const char *fmt, ...)
        xe_sriov_notice(xe, "migration disabled: %pV\n", &vaf);
        va_end(va_args);
 
-       xe->sriov.vf.migration.enabled = false;
+       xe->sriov.vf.migration.disabled = true;
 }
 
 static void vf_migration_init_early(struct xe_device *xe)
@@ -172,9 +172,6 @@ static void vf_migration_init_early(struct xe_device *xe)
                                                    "CCS migration requires GuC ABI >= 1.23 but only %u.%u found",
                                                    guc_version.major, guc_version.minor);
        }
-
-       xe->sriov.vf.migration.enabled = true;
-       xe_sriov_dbg(xe, "migration support enabled\n");
 }
 
 /**
index 6a0fd0f5463ed8d02cb5948048346e6e3fef775b..d5f72d6678179076f76f9fc124f8394493193ffd 100644 (file)
@@ -34,10 +34,10 @@ struct xe_device_vf {
        /** @migration: VF Migration state data */
        struct {
                /**
-                * @migration.enabled: flag indicating if migration support
-                * was enabled or not due to missing prerequisites
+                * @migration.disabled: flag indicating if migration support
+                * was turned off due to missing prerequisites
                 */
-               bool enabled;
+               bool disabled;
        } migration;
 
        /** @ccs: VF CCS state data */