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 B791CCCD1AB for ; Tue, 21 Oct 2025 22:46:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8000E10E667; Tue, 21 Oct 2025 22:46:59 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="jeAO7j+a"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id C482210E667 for ; Tue, 21 Oct 2025 22:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761086816; x=1792622816; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CuqJzKAtE+KSOv+hkX/vLNB4xNTM28pMHbrEe33g9Wk=; b=jeAO7j+aGef1by2U4F6jwLdZGQzR/YUJvJgrJlrU6oiDEeSdVSWBYNPe lN6gnKUDs/x/wUF0FUB5nZad1lWRLkakW4GLGDxyGcSdfw4EqSPB541XU QzTasuV1t4ASQ8667yEt2n6VwBKprYlUYYqC7ohElJHTb/5XKBDWyxtlX od+sEzoqLqCJ7miRGThXsvPoDmMSQk5Mx+L5yLnF45ehs16PyBdbx/Pru 8Ij8ODcRRbW/vyYrrAcP5lTvd6oTc6VT/3hu4zGkYXeelTdsLdm2i5R1b HfUmWHvhejx9YVqCnr+Rvsvx5FQ3H7dvRH2x6d9MZLzV+9kDxYaYEfp5v w==; X-CSE-ConnectionGUID: O22fTpJUTF6hpv81apKDBw== X-CSE-MsgGUID: VvwzyaeBT2mfR1igNzeLlw== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="67089085" X-IronPort-AV: E=Sophos;i="6.19,246,1754982000"; d="scan'208";a="67089085" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2025 15:46:56 -0700 X-CSE-ConnectionGUID: 5L7JlLIvT6SWlHP+QUafmQ== X-CSE-MsgGUID: 7A8I62NsShOgCCBbInO3Ag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,246,1754982000"; d="scan'208";a="188989349" Received: from gkczarna.igk.intel.com ([10.211.131.163]) by fmviesa004.fm.intel.com with ESMTP; 21 Oct 2025 15:46:54 -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 v7 1/4] drm/xe/vf: Revert logic of vf.migration.enabled Date: Wed, 22 Oct 2025 00:48:14 +0200 Message-Id: <20251021224817.1593817-2-tomasz.lis@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251021224817.1593817-1-tomasz.lis@intel.com> References: <20251021224817.1593817-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`. Reviewed-by: Michal Wajdeczko Cc: Michal Wajdeczko Signed-off-by: Tomasz Lis Suggested-by: Michal Wajdeczko --- v2: removed writing false to what is already zeroed out (Michal) drivers/gpu/drm/xe/xe_sriov_vf.c | 7 ++----- drivers/gpu/drm/xe/xe_sriov_vf_types.h | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c index 911d5720917b..0d8135f3927c 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) @@ -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"); } /** 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