mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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
This commit is contained in:
committed by
Michal Wajdeczko
parent
9d26a9beae
commit
c94a7702d3
@@ -130,7 +130,7 @@
|
||||
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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user