From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 264C4CCD1AA for ; Tue, 21 Oct 2025 12:38:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9B5B10E5DD; Tue, 21 Oct 2025 12:38:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Dz14bKg5"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id E438D10E5DB for ; Tue, 21 Oct 2025 12:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761050305; x=1792586305; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LJt1AM2LusCcI8FeFNwzpBTphku0eQU1Pd+TWPFa+nM=; b=Dz14bKg563u2S3sqoXyD1qdBUl504neTR4+wmfeMgirwd3YCG2VGb746 yTFafO9UwAtdmK5Cz1IMlnx8yIM/1qsHnAls4jK9vSCcTJjkba5jyPzGk VBJsCXIpKK8kbl/A0JljoJtooqpraR8FUGpfMLsn66KxunWWhCHTunVxy qDqMKDGTFAfVmA1I7/StGkfIyr+KFT0VmJhXc08hTwsmv4qOgQZRJBEtD w2qyXeOOkHnTcGFbTSW7bSyTF+pSwLBOq7PuLzFEIkYRb239N/DF9VxcQ iohv+E9RjymQ8VZdYGkuDg6xXzbqw3X/IcSwsSWzzZC0ZolZ5vMxWhiq5 A==; X-CSE-ConnectionGUID: ViguzZepRdaNV1PlZvmbww== X-CSE-MsgGUID: jDhDJO1kRtqMuGqNBIATkA== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="50747435" X-IronPort-AV: E=Sophos;i="6.19,244,1754982000"; d="scan'208";a="50747435" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2025 05:38:25 -0700 X-CSE-ConnectionGUID: ETv9RmgQQ6Cfh3zpgH1tJw== X-CSE-MsgGUID: bm5MCxHtTkqF/tn/v6zl0A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,244,1754982000"; d="scan'208";a="187850348" Received: from gkczarna.igk.intel.com ([10.211.131.163]) by orviesa004.jf.intel.com with ESMTP; 21 Oct 2025 05:38:23 -0700 From: Tomasz Lis To: intel-xe@lists.freedesktop.org Cc: =?UTF-8?q?Micha=C5=82=20Winiarski?= , =?UTF-8?q?Micha=C5=82=20Wajdeczko?= , =?UTF-8?q?Piotr=20Pi=C3=B3rkowski?= , Matthew Brost , Satyanarayana K V P Subject: [PATCH v5 2/5] drm/xe/vf: Revert logic of vf.migration.enabled Date: Tue, 21 Oct 2025 14:39:40 +0200 Message-Id: <20251021123943.1436375-3-tomasz.lis@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251021123943.1436375-1-tomasz.lis@intel.com> References: <20251021123943.1436375-1-tomasz.lis@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Convert `enabled` property into `disabled`. Cc: Michal Wajdeczko Signed-off-by: Tomasz Lis Suggested-by: Michal Wajdeczko --- drivers/gpu/drm/xe/xe_sriov_vf.c | 6 +++--- drivers/gpu/drm/xe/xe_sriov_vf_types.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c index 911d5720917b..5ad39e315cb5 100644 --- a/drivers/gpu/drm/xe/xe_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_sriov_vf.c @@ -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) @@ -173,7 +173,7 @@ static void vf_migration_init_early(struct xe_device *xe) guc_version.major, guc_version.minor); } - xe->sriov.vf.migration.enabled = true; + xe->sriov.vf.migration.disabled = false; xe_sriov_dbg(xe, "migration support enabled\n"); } diff --git a/drivers/gpu/drm/xe/xe_sriov_vf_types.h b/drivers/gpu/drm/xe/xe_sriov_vf_types.h index 6a0fd0f5463e..d5f72d667817 100644 --- a/drivers/gpu/drm/xe/xe_sriov_vf_types.h +++ b/drivers/gpu/drm/xe/xe_sriov_vf_types.h @@ -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 */ -- 2.25.1