Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/vf: Revert logic of vf.migration.enabled

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

authored by

Tomasz Lis and committed by
Michal Wajdeczko
c94a7702 9d26a9be

+5 -8
+2 -5
drivers/gpu/drm/xe/xe_sriov_vf.c
··· 130 130 bool xe_sriov_vf_migration_supported(struct xe_device *xe) 131 131 { 132 132 xe_assert(xe, IS_SRIOV_VF(xe)); 133 - return xe->sriov.vf.migration.enabled; 133 + return !xe->sriov.vf.migration.disabled; 134 134 } 135 135 136 136 static void vf_disable_migration(struct xe_device *xe, const char *fmt, ...) ··· 146 146 xe_sriov_notice(xe, "migration disabled: %pV\n", &vaf); 147 147 va_end(va_args); 148 148 149 - xe->sriov.vf.migration.enabled = false; 149 + xe->sriov.vf.migration.disabled = true; 150 150 } 151 151 152 152 static void vf_migration_init_early(struct xe_device *xe) ··· 172 172 "CCS migration requires GuC ABI >= 1.23 but only %u.%u found", 173 173 guc_version.major, guc_version.minor); 174 174 } 175 - 176 - xe->sriov.vf.migration.enabled = true; 177 - xe_sriov_dbg(xe, "migration support enabled\n"); 178 175 } 179 176 180 177 /**
+3 -3
drivers/gpu/drm/xe/xe_sriov_vf_types.h
··· 34 34 /** @migration: VF Migration state data */ 35 35 struct { 36 36 /** 37 - * @migration.enabled: flag indicating if migration support 38 - * was enabled or not due to missing prerequisites 37 + * @migration.disabled: flag indicating if migration support 38 + * was turned off due to missing prerequisites 39 39 */ 40 - bool enabled; 40 + bool disabled; 41 41 } migration; 42 42 43 43 /** @ccs: VF CCS state data */