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 18AF9CCD1BF for ; Tue, 28 Oct 2025 03:58:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD8AC10E1D1; Tue, 28 Oct 2025 03:58:49 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="bC6bxIy4"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0216010E1D1 for ; Tue, 28 Oct 2025 03:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761623928; x=1793159928; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=l4Ls2eQCLXaRfxDEgoZ4i7U/u16cSn0FBACFktD+vTU=; b=bC6bxIy4QiU08/09AN5syUvxeDaXU1ijEA7Dm0zNL5TldV2uphAFrGy/ ieE7+z2wSOtlDDqqapfuL4xvELvpIGt9o/1L0eVo7M6L9OJKhSgDjx9a6 kw2hF17CAJhRALWAGHQqL9OY/GKv1EXcs4QRrbuVdwhvGRiCPjH/iRu/q 6PFqSROOK1tQ7HEI2hp+aBmU+qiCHl6qoilV62Ih65h9E4lzra/Rp42ZI 01Q+zUm6gy04a87TEoAPqzLOKI3X36fokF4VSw5lma8b4162FJMap5b0W DsaZBLaD2IoHGJlFsYr1zSbdl7UBHfc0XYIfiAtFq5gpjS2QGfj9BXKLL Q==; X-CSE-ConnectionGUID: h5n7LMXpRAWGgxonuykiSA== X-CSE-MsgGUID: FILLzqS3TCiavrdKSlQcBg== X-IronPort-AV: E=McAfee;i="6800,10657,11531"; a="67550950" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="67550950" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2025 20:58:47 -0700 X-CSE-ConnectionGUID: 0JolEYBpSX63DVzd9OE7YQ== X-CSE-MsgGUID: O9WpX+RRTruumTqH+hhTvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,260,1754982000"; d="scan'208";a="184461060" Received: from lstrano-desk.jf.intel.com ([10.54.39.91]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2025 20:58:48 -0700 From: Matthew Brost To: intel-xe@lists.freedesktop.org Cc: stuart.summers@intel.com, francois.dugast@intel.com Subject: [PATCH v3 0/7] Pagefault refactor Date: Mon, 27 Oct 2025 20:58:36 -0700 Message-Id: <20251028035843.2488613-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" We likely need multiple page fault producers feeding into a common consumer backend. Additionally, our current page fault work queue design—being per-GT rather than per-device—makes little sense. Clean up pagefault handling with clear layers. Matt Matthew Brost (7): drm/xe: Stub out new pagefault layer drm/xe: Implement xe_pagefault_init drm/xe: Implement xe_pagefault_reset drm/xe: Implement xe_pagefault_handler drm/xe: Implement xe_pagefault_queue_work drm/xe: Add xe_guc_pagefault layer drm/xe: Remove unused GT page fault code drivers/gpu/drm/xe/Makefile | 3 +- drivers/gpu/drm/xe/xe_device.c | 5 + drivers/gpu/drm/xe/xe_device_types.h | 11 + drivers/gpu/drm/xe/xe_gt.c | 8 +- drivers/gpu/drm/xe/xe_gt_pagefault.c | 679 ------------------------ drivers/gpu/drm/xe/xe_gt_pagefault.h | 19 - drivers/gpu/drm/xe/xe_gt_types.h | 65 --- drivers/gpu/drm/xe/xe_guc_ct.c | 6 +- drivers/gpu/drm/xe/xe_guc_pagefault.c | 95 ++++ drivers/gpu/drm/xe/xe_guc_pagefault.h | 15 + drivers/gpu/drm/xe/xe_pagefault.c | 436 +++++++++++++++ drivers/gpu/drm/xe/xe_pagefault.h | 19 + drivers/gpu/drm/xe/xe_pagefault_types.h | 136 +++++ drivers/gpu/drm/xe/xe_svm.c | 3 +- drivers/gpu/drm/xe/xe_vm.c | 1 - 15 files changed, 723 insertions(+), 778 deletions(-) delete mode 100644 drivers/gpu/drm/xe/xe_gt_pagefault.c delete mode 100644 drivers/gpu/drm/xe/xe_gt_pagefault.h create mode 100644 drivers/gpu/drm/xe/xe_guc_pagefault.c create mode 100644 drivers/gpu/drm/xe/xe_guc_pagefault.h create mode 100644 drivers/gpu/drm/xe/xe_pagefault.c create mode 100644 drivers/gpu/drm/xe/xe_pagefault.h create mode 100644 drivers/gpu/drm/xe/xe_pagefault_types.h -- 2.34.1