From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41B00606A326 for ; Fri, 6 Nov 2026 15:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=K/FqfUTq Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED8BA112E82; Fri, 6 Nov 2026 15:55:48 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 02E43112E82 for ; Fri, 6 Nov 2026 15:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1793980543; x=1825516543; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=t6pUpUHpR80Od5aL29Z7CxIUbfpGda3Du17pD7fb7Qc=; b=K/FqfUTqE0WqAjBSzpIRnn3O5JfKIcwWY6jB3u/WkK8FBnxoef7uFVl3 boMqRZofyO2c4JbAVfGpl1AMZPdYNzZxq+ZjYOSDc88zjvKzzNNf+++iq MW5pWRSMwzmtwbrpySwGVgEuTk44WTXxDLSr4a9BhnCC9kELapK1i7IQs 8AMvLKBE2PJfLN3xVodNLpBEG5mwE5JLbXE+aMy0tAIJW5bWq/yagFedd NrUBRLMRSsvo7Em3kMaRBnHi9WR0U9U7r5Knqks0+u/zZX7aL6j7Nm5oo T9/KToQIZlhukbZcKcIhhNeeDPvzgG8H58wCpFukitmDlFcTMJsW9BuJK Q==; X-CSE-ConnectionGUID: miEadVmWTBSail+9KBIBhw== X-CSE-MsgGUID: 2DBGltxjQNygEmAxk5EFxg== X-IronPort-AV: E=McAfee;i="6800,10657,11958"; a="2895998" X-IronPort-AV: E=Sophos;i="6.27,197,1787036400"; d="scan'208";a="2895998" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2026 07:55:43 -0800 X-CSE-ConnectionGUID: pv+/TxQLQRe5sFf4OZ3JmQ== X-CSE-MsgGUID: EeHcyDEyT0uaF7AshMJgrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,197,1787036400"; d="scan'208";a="7650415" Received: from gkczarna.igk.intel.com ([10.211.131.163]) by fmviesa009.fm.intel.com with ESMTP; 06 Nov 2026 07:55:42 -0800 From: Tomasz Lis To: intel-xe@lists.freedesktop.org Cc: Matthew Brost , =?UTF-8?q?Micha=C5=82=20Winiarski?= , =?UTF-8?q?Piotr=20Pi=C3=B3rkowski?= , Satyanarayana K V P Subject: [PATCH v2 0/2] drm/xe/vf: New approach for post-migration LRC fixups Date: Fri, 6 Nov 2026 16:56:13 +0100 Message-ID: <20261106155615.977330-1-tomasz.lis@intel.com> X-Mailer: git-send-email 2.43.0 X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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%. v2: A rebase after 6 months, with adjustments to current source. 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 - 7 files changed, 60 insertions(+), 59 deletions(-) -- 2.43.0