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 5AC8AEE14A5 for ; Wed, 6 Sep 2023 15:39:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1DD9A10E69B; Wed, 6 Sep 2023 15:39:43 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D0B010E69B for ; Wed, 6 Sep 2023 15:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694014781; x=1725550781; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2jYp3+ywewHLmV/QQr4zMVHPH2sHMccSJBOHO87uV6o=; b=LpidrDJRYw0pKercQbLTidTtVCLDA0wK6FMiZsJ3RNs7+W2HUYkO8CUO AN1led40GBeKdhvBEYi0OAxX2zTIRTLdD2FAtNeJfjAGJYQMGCpSXUDIb 6OnAKe6Bri5weAwVdxRXJfIXggrtlMSu6Rs4/kS3XlcYfcNKaPGoo6Xbm MjTAFW7xy1ZuriJE1jBEHFb7f+rVeNmeeoBXELTld+cx87fWrANnx06r+ JpoPnb0IsA8QizLBUwpooI8JJJReVdiKI7TAzcc9K7GckS1cmON3HJIJr Ocw9lUyRs3+tDwG8OVsos8kU4InLxBauAntsIsP7KH5We2211JdYjNjuz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="362131419" X-IronPort-AV: E=Sophos;i="6.02,232,1688454000"; d="scan'208";a="362131419" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 08:39:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="988287037" X-IronPort-AV: E=Sophos;i="6.02,232,1688454000"; d="scan'208";a="988287037" Received: from yinbingc-mobl.ccr.corp.intel.com (HELO fedora..) ([10.249.254.11]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 08:39:39 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: intel-xe@lists.freedesktop.org Date: Wed, 6 Sep 2023 17:39:10 +0200 Message-ID: <20230906153916.5665-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v5 0/6] drm/xe: Convert to drm_exec 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" Convert the driver to use drm_exec instead of ttm_eu_reserve_buffers(). v2: - Update also the xe display subsystem. v3: - Rebase to fix compilation failure with latest drm-xe-next. - Disallow duplicate locks also in the rebind worker, where it was previously needed in a draft version. v4: - Reinstate a lost dma_resv_reserve_fences(). - Improve on xe_bo_lock() documentation (Matthew Brost) - Improve on xe_vm_lock() documentation (Matthew Brost) - Kerneldoc xe_vm_prepare_vma() - Remove an unbalanced xe_bo_put() (igt and Matthew Brost) v5: - Rebases - Loop over drm_exec objects in reverse when unlocking Thomas Hellström (6): drm/xe/bo: Simplify xe_bo_lock() drm/xe/vm: Simplify and document xe_vm_lock() drm/xe/bo: Remove the lock_no_vm()/unlock_no_vm() interface drm/xe: Rework xe_exec and the VM rebind worker to use the drm_exec helper drm/xe: Convert pagefaulting code to use drm_exec drm/xe: Convert remaining instances of ttm_eu_reserve_buffers to drm_exec drivers/gpu/drm/i915/display/intel_display.c | 5 +- drivers/gpu/drm/i915/display/intel_fb.c | 4 +- drivers/gpu/drm/xe/Kconfig | 1 + drivers/gpu/drm/xe/tests/xe_bo.c | 35 +- drivers/gpu/drm/xe/tests/xe_dma_buf.c | 4 +- drivers/gpu/drm/xe/tests/xe_migrate.c | 7 +- drivers/gpu/drm/xe/xe_bo.c | 48 +- drivers/gpu/drm/xe/xe_bo.h | 28 +- drivers/gpu/drm/xe/xe_bo_evict.c | 19 +- drivers/gpu/drm/xe/xe_dma_buf.c | 5 +- drivers/gpu/drm/xe/xe_exec.c | 71 +-- drivers/gpu/drm/xe/xe_exec_queue.c | 5 +- drivers/gpu/drm/xe/xe_gt_pagefault.c | 117 ++--- drivers/gpu/drm/xe/xe_lrc.c | 12 +- drivers/gpu/drm/xe/xe_migrate.c | 10 +- drivers/gpu/drm/xe/xe_vm.c | 475 +++++++++---------- drivers/gpu/drm/xe/xe_vm.h | 30 +- drivers/gpu/drm/xe/xe_vm_madvise.c | 30 +- 18 files changed, 397 insertions(+), 509 deletions(-) -- 2.41.0