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 909D0C30653 for ; Thu, 4 Jul 2024 04:16:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D95A10E552; Thu, 4 Jul 2024 04:16:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="FNTIN4DR"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6502410E32C for ; Thu, 4 Jul 2024 04:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720066573; x=1751602573; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=FW5SuTslwgmvPSE/EH+WRzHV2bKUvwtNcH5wwH3Q/lc=; b=FNTIN4DR8IURIIi41AfNjTdg0pH+SxVkc+Fy+M+e1aO9zw7mPQYSUpoG jpHNWTPMkb33a1Kg/TE8jhgcoiiVw6wHMjMIcI0rOmZ1J3tgZKV0DVqo0 LhfNCo+ArEE6SsxMUozkA5nAkG4U/LHk+Q5rkvQwG07sz3APQm/fb2sCJ eTNY8BhnXRJEQO7gOP7w8CqOk6hR+jZjNPh29yLpNHPQAZENLnQ+kaRWC iwaVRaxGeKd/5qQXu7MTmTuY+EYGYQpHej9bttIcQtUmRcmHoFoR+cNGk E2EpUgLYfyZ9r4P7cMXANJTauHXn8vKujSyLmkgFUOIFj1QyeLSB9YKay w==; X-CSE-ConnectionGUID: OvwHkUuoSnuNEKI20s5Sgg== X-CSE-MsgGUID: nZCYRx1xRva7Ymqj7a3gUg== X-IronPort-AV: E=McAfee;i="6700,10204,11122"; a="20228405" X-IronPort-AV: E=Sophos;i="6.09,183,1716274800"; d="scan'208";a="20228405" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2024 21:16:13 -0700 X-CSE-ConnectionGUID: /brm2mRpRWCCrCwMeGVqGQ== X-CSE-MsgGUID: cXAC2oPTSTKBQBBiAU3u3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,183,1716274800"; d="scan'208";a="47217270" Received: from lstrano-desk.jf.intel.com ([10.54.39.91]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2024 21:16:14 -0700 From: Matthew Brost To: intel-xe@lists.freedesktop.org Subject: [PATCH v8 0/7] Convert multiple bind ops to 1 job Date: Wed, 3 Jul 2024 21:16:45 -0700 Message-Id: <20240704041652.272920-1-matthew.brost@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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" Continuation of merging parts of [1]. Patch #2 in this series is quite large but unsure how to split the patch without breaking functionality. Tested with [2]. v2: - Rebase - Add error injection patch - Fix dma-fence reservation for binds v3: - Rebase - Error injection patch omitted in this rev v4: - Rebase - Fix tlb invalidation (Paulo) - Add missing last fence dep / test to inspection (Inspection) - Add error injection patch back in v5: - Address Matthew Auld's feedback v6: - Fix CI failure (Matthew Auld, CI) - Fix checkpatch issues - Return -ENOBUFS in Xe layer rather than DRM SA layer to avoid warns (Matthew Auld) v7: - Address Matthew Auld's feedback - Fix mesa failure in which VM bind jobs timed on integrated parts if number of PTE updates > 510 (Paulo) v8: - Rebase, resend for CI Matt [1] https://patchwork.freedesktop.org/series/125608/ [2] https://patchwork.freedesktop.org/series/129606/ Matthew Brost (7): drm/xe: s/xe_tile_migrate_engine/xe_tile_migrate_exec_queue drm/xe: Add xe_vm_pgtable_update_op to xe_vma_ops drm/xe: Add xe_exec_queue_last_fence_test_dep drm/xe: Convert multiple bind ops into single job drm/xe: Update VM trace events drm/xe: Update PT layer with better error handling drm/xe: Add VM bind IOCTL error injection drivers/gpu/drm/xe/xe_bo_types.h | 2 + drivers/gpu/drm/xe/xe_device_types.h | 12 + drivers/gpu/drm/xe/xe_exec_queue.c | 23 + drivers/gpu/drm/xe/xe_exec_queue.h | 2 + drivers/gpu/drm/xe/xe_migrate.c | 342 ++++--- drivers/gpu/drm/xe/xe_migrate.h | 34 +- drivers/gpu/drm/xe/xe_pt.c | 1284 +++++++++++++++++--------- drivers/gpu/drm/xe/xe_pt.h | 14 +- drivers/gpu/drm/xe/xe_pt_types.h | 48 + drivers/gpu/drm/xe/xe_sa.c | 7 + drivers/gpu/drm/xe/xe_trace_bo.h | 10 +- drivers/gpu/drm/xe/xe_vm.c | 649 +++++-------- drivers/gpu/drm/xe/xe_vm.h | 2 + drivers/gpu/drm/xe/xe_vm_types.h | 55 +- 14 files changed, 1414 insertions(+), 1070 deletions(-) -- 2.34.1