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 16D09FF8873 for ; Wed, 29 Apr 2026 20:33:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D452C10E041; Wed, 29 Apr 2026 20:33:19 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="JnFW0Tgm"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D70310E041 for ; Wed, 29 Apr 2026 20:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777494798; x=1809030798; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DybzGwZEKJHGPO0ydifpnc5UDkmpm4R0a6F1fQdJbI0=; b=JnFW0TgmYarIhyQrhrYc/zA9Bw4QbVTZVhrj/KMaqbJHVPgYoWjYxBQm SNUm54gHYvLnFIpExN3Mke8Xdm7nO79a0ElMM4aRzwhSxZ9Wb82uYNWl3 qBBUjzLjH/BjW6+lkeD37Pz2DTNR2EI1zV7KlH4Kg6FeNUyz0qJ5ye2DY sNTIyXYWH2VvwsjQjGRye45ISM6FYnH+fe0QP+SfhLyJgKCs5Qg0HpvjY bzYmTBKk8hIX3273od0Qv2wuBz5MJ4X5egDsaZfE5qKl0Dz1yx3pDO9y2 haaUDsbI/SOm8epFIzdsS2rDftSqj6kzEnMrSd/9Q/K0rE4HTJsbx5nfd Q==; X-CSE-ConnectionGUID: 44suGQQJTqK8i8fC07kadg== X-CSE-MsgGUID: +kPbxI4JQUCROET7bYlBuA== X-IronPort-AV: E=McAfee;i="6800,10657,11771"; a="78489229" X-IronPort-AV: E=Sophos;i="6.23,206,1770624000"; d="scan'208";a="78489229" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2026 13:33:17 -0700 X-CSE-ConnectionGUID: oETYVr9lRZCJX2r3B7aPQw== X-CSE-MsgGUID: //Uatu5hTVqjkrglXyx+xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,206,1770624000"; d="scan'208";a="272497684" Received: from gkczarna.igk.intel.com ([10.211.131.163]) by orviesa001.jf.intel.com with ESMTP; 29 Apr 2026 13:33:17 -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 Subject: [PATCH v1 0/2] drm/xe/vf: New approach for post-migration LRC fixups Date: Wed, 29 Apr 2026 22:39:35 +0200 Message-Id: <20260429203937.2070047-1-tomasz.lis@intel.com> X-Mailer: git-send-email 2.25.1 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" The current approach to LRC recovery requires caution from developers when modifying any LRC-related code. More flexible solution may allow to avoid future troubles. The current code also includes LRC creation repeat which looks a bit suspicious - it was developed without detailed knowledge of which part of LRC creation requires a repeat. Now after extensive debug we know that the repeat is only required for BO mapping, and actually all BOs should be protected, not only the ones storing LRCs. This fixes a very rare bug where BO would be incorrectly created during migration resulting in CAT error generated by GPU. Chances of triggering this error were well below 0.1%. Signed-off-by: Tomasz Lis Tomasz Lis (2): drm/xe/vf: Late fixups of LRCs after VF migration drm/xe: After VF migration, repeat BO mapping in progress drivers/gpu/drm/xe/xe_exec_queue.c | 55 +++++++++++++---------- drivers/gpu/drm/xe/xe_exec_queue.h | 2 +- drivers/gpu/drm/xe/xe_ggtt.c | 17 +++++++ drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 6 +-- drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 2 + drivers/gpu/drm/xe/xe_guc_submit.c | 35 +++------------ drivers/gpu/drm/xe/xe_guc_submit.h | 2 - drivers/gpu/drm/xe/xe_memirq.c | 8 +++- 8 files changed, 67 insertions(+), 60 deletions(-) -- 2.25.1