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 9932ECCD1A5 for ; Tue, 21 Oct 2025 22:47:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51A5A10E66E; Tue, 21 Oct 2025 22:47:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="a5XRgeMM"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6036110E66E for ; Tue, 21 Oct 2025 22:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761086821; x=1792622821; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4SP/cgALr5NfYVOPun/GvAZlftX1ExSx3icuc3jlZrc=; b=a5XRgeMMUph0H6FDhfSMDW6Uuow31DL/FRKxeamTR9FMgm5ZATgYx7y+ s+rLlhBktGf7adaZ0Vvr7WDz4zZgKO+EeA3/ObJR/QbiowwmqU7L8qFs7 52njDBbiDENu29V2G2Ui5NGI9UyjO+MPyfDXPF8IFgJxeoNysOTxOsjj/ Pn9yBIP+l4X2EWw3bgCzkF+JCB+BwmjZn4kA5pVaTvKHna3er36py22R8 ISPA/b73xZ46qwGRiv4yapU580BCq8wS1M7mNSShbNFdZZ+RP7WXmJhUS zBYLjPL3AFWklr7OCjHeYjCrYDkV8QylE1U7nAl3dKH6O4TwmpHDORMi0 A==; X-CSE-ConnectionGUID: yoEn/r9rSJm7xYpnyuNO3A== X-CSE-MsgGUID: bvQkCKEmTXalja7ASHCI+A== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="67089100" X-IronPort-AV: E=Sophos;i="6.19,246,1754982000"; d="scan'208";a="67089100" 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:47:01 -0700 X-CSE-ConnectionGUID: WKLFa8lJTKGLbbxlXAT07g== X-CSE-MsgGUID: i/B0WyMcQS6qnLntqANbjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,246,1754982000"; d="scan'208";a="188989378" Received: from gkczarna.igk.intel.com ([10.211.131.163]) by fmviesa004.fm.intel.com with ESMTP; 21 Oct 2025 15:46:59 -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 4/4] drm/xe/vf: Do not disable VF migration on ATS-M Date: Wed, 22 Oct 2025 00:48:17 +0200 Message-Id: <20251021224817.1593817-5-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" Our current support for the VF migration depends on the availability of the MEMIRQ rather than specific graphics version 20. Relax our early migration support checks to allow also use some older platforms like ATS-M for experiments and testing. Do not allow ADL, as supporting VF migration through MMIO interrupts would require additional changes in order to achieve reliability. Reviewed-by: Michal Wajdeczko Cc: Michal Wajdeczko Signed-off-by: Tomasz Lis --- v2: Add MEMIRQ condition v3: Remove platform version check, as only 12+ are supported by Xe driver anyway (Michal) drivers/gpu/drm/xe/xe_sriov_vf.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c index 13d6c094ae8f..39c829daa97c 100644 --- a/drivers/gpu/drm/xe/xe_sriov_vf.c +++ b/drivers/gpu/drm/xe/xe_sriov_vf.c @@ -164,10 +164,9 @@ static void vf_migration_init_early(struct xe_device *xe) return xe_sriov_vf_migration_disable(xe, "experimental feature not available on production builds"); - if (GRAPHICS_VER(xe) < 20) - return xe_sriov_vf_migration_disable(xe, - "requires gfx version >= 20, but only %u found", - GRAPHICS_VER(xe)); + if (!xe_device_has_memirq(xe)) + return xe_sriov_vf_migration_disable(xe, "requires memory-based IRQ support"); + } /** -- 2.25.1