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 8C452606A326 for ; Fri, 6 Nov 2026 21:56:38 +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=ldL0C/bO Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4928810EABB; Fri, 6 Nov 2026 21:56:33 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7DCC010EABB for ; Fri, 6 Nov 2026 21:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1794002188; x=1825538188; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5+DT0miY5EiHbTSYuxgc8SYlxHi/hOeCK1H0cz+qrkw=; b=ldL0C/bOzkk6iFgZGaghPqlNrw1sTIvkzMf30+pg/52Uw5ehYejsSViY N3+p4prYs2gHc7/ovhkAcoiksWZQN5ZydtaxnLnKj5iE/YhVt4CrVxuok oQuKjLxwD9UzWn2cRQc5U52Xrcpd6Td2K72n9VaOuTYnTB6CW6zGjAs0G hB6UaE+kqxyhYjl0qRPj7FmFIIvy8a/4iryR/hMhotWVFgQYctcWfxCOs V0RWuTzXw1I9RImcRAx7v9zehUaSH83KoF2BK1vWuTU8loaLECZc+zgev o2MV/qj9I0wGUv7zC07CwW9InXXa09biD1wY6tTULHRJL+Jv7Aa6WvfXb g==; X-CSE-ConnectionGUID: pXr8fkEGTLeZI35BjV4vcA== X-CSE-MsgGUID: vAAjMGURTvK+lvIpSNcZtw== X-IronPort-AV: E=McAfee;i="6800,10657,11958"; a="2711654" X-IronPort-AV: E=Sophos;i="6.27,199,1787036400"; d="scan'208";a="2711654" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2026 13:56:27 -0800 X-CSE-ConnectionGUID: BcMMHGR2TfequsOZLfISvQ== X-CSE-MsgGUID: iH1taxILRBKI5WQRpI4zAQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,199,1787036400"; d="scan'208";a="7202375" Received: from gkczarna.igk.intel.com ([10.211.131.163]) by orviesa008.jf.intel.com with ESMTP; 06 Nov 2026 13:56:26 -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 v3 0/2] drm/xe/vf: New approach for post-migration LRC fixups Date: Fri, 6 Nov 2026 22:56:58 +0100 Message-ID: <20261106215700.1218318-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. v3: Re-adding a check carelessly removed in v2, fixed handling GGTT start/end, fixed issue with signals. 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 | 62 +++++++++++++---------- drivers/gpu/drm/xe/xe_exec_queue.h | 2 +- drivers/gpu/drm/xe/xe_ggtt.c | 36 ++++++++++--- drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 18 +++---- 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 | 10 +++- 8 files changed, 90 insertions(+), 77 deletions(-) -- 2.43.0