Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <dev@lankhorst.se>
To: intel-xe@lists.freedesktop.org
Subject: [FOR-CI-DO-NOT-REVIEW-v3 07/12] drm/xe: Privatize xe_ggtt_node
Date: Fri,  9 Jan 2026 14:37:40 +0100	[thread overview]
Message-ID: <20260109133746.739923-8-dev@lankhorst.se> (raw)
In-Reply-To: <20260109133746.739923-1-dev@lankhorst.se>

Nothing requires it any more, make the member private.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
---
 drivers/gpu/drm/xe/xe_ggtt.c       | 18 ++++++++++++++++++
 drivers/gpu/drm/xe/xe_ggtt_types.h | 19 +------------------
 2 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_ggtt.c b/drivers/gpu/drm/xe/xe_ggtt.c
index 3f30f22600ad9..72c0493d8e58f 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.c
+++ b/drivers/gpu/drm/xe/xe_ggtt.c
@@ -67,6 +67,24 @@
  * give us the correct placement for free.
  */
 
+/**
+ * struct xe_ggtt_node - A node in GGTT.
+ *
+ * This struct needs to be initialized (only-once) with xe_ggtt_node_init() before any node
+ * insertion, reservation, or 'ballooning'.
+ * It will, then, be finalized by either xe_ggtt_node_remove() or xe_ggtt_node_deballoon().
+ */
+struct xe_ggtt_node {
+	/** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
+	struct xe_ggtt *ggtt;
+	/** @base: A drm_mm_node */
+	struct drm_mm_node base;
+	/** @delayed_removal_work: The work struct for the delayed removal */
+	struct work_struct delayed_removal_work;
+	/** @invalidate_on_remove: If it needs invalidation upon removal */
+	bool invalidate_on_remove;
+};
+
 static u64 xelp_ggtt_pte_flags(struct xe_bo *bo, u16 pat_index)
 {
 	u64 pte = XE_PAGE_PRESENT;
diff --git a/drivers/gpu/drm/xe/xe_ggtt_types.h b/drivers/gpu/drm/xe/xe_ggtt_types.h
index 5fd723ce81087..d82b71a198bc2 100644
--- a/drivers/gpu/drm/xe/xe_ggtt_types.h
+++ b/drivers/gpu/drm/xe/xe_ggtt_types.h
@@ -11,6 +11,7 @@
 #include "xe_pt_types.h"
 
 struct xe_bo;
+struct xe_ggtt_node;
 struct xe_gt;
 
 /**
@@ -53,24 +54,6 @@ struct xe_ggtt {
 	struct workqueue_struct *wq;
 };
 
-/**
- * struct xe_ggtt_node - A node in GGTT.
- *
- * This struct needs to be initialized (only-once) with xe_ggtt_node_init() before any node
- * insertion, reservation, or 'ballooning'.
- * It will, then, be finalized by either xe_ggtt_node_remove() or xe_ggtt_node_deballoon().
- */
-struct xe_ggtt_node {
-	/** @ggtt: Back pointer to xe_ggtt where this region will be inserted at */
-	struct xe_ggtt *ggtt;
-	/** @base: A drm_mm_node */
-	struct drm_mm_node base;
-	/** @delayed_removal_work: The work struct for the delayed removal */
-	struct work_struct delayed_removal_work;
-	/** @invalidate_on_remove: If it needs invalidation upon removal */
-	bool invalidate_on_remove;
-};
-
 typedef void (*xe_ggtt_set_pte_fn)(struct xe_ggtt *ggtt, u64 addr, u64 pte);
 typedef void (*xe_ggtt_transform_cb)(struct xe_ggtt *ggtt,
 				     struct xe_ggtt_node *node,
-- 
2.51.0


  parent reply	other threads:[~2026-01-09 13:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-09 13:37 [FOR-CI-DO-NOT-REVIEW-v3 00/12] Testing entire GGTT privatization preparation series Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 01/12] drm/xe: Start using ggtt->start in preparation of balloon removal Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 02/12] drm/xe: Convert xe_fb_pin to use a callback for insertion into GGTT Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 03/12] drm/xe: Add xe_ggtt_node_addr() to avoid dereferencing xe_ggtt_node Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 04/12] drm/xe/display: Avoid " Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 05/12] drm/xe: Do not dereference ggtt_node in xe_bo.c Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 06/12] drm/xe: Improve xe_gt_sriov_pf_config GGTT handling Maarten Lankhorst
2026-01-09 13:37 ` Maarten Lankhorst [this message]
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 08/12] drm/xe: Make xe_ggtt_node offset relative to starting offset Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 09/12] drm/xe: Rewrite GGTT VF initialisation Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 10/12] drm/xe: Move struct xe_ggtt to xe_ggtt.c Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 11/12] drm/xe: Make xe_ggtt_node_insert return a node Maarten Lankhorst
2026-01-09 13:37 ` [FOR-CI-DO-NOT-REVIEW-v3 12/12] drm/xe: Remove xe_ggtt_node_allocated Maarten Lankhorst
2026-01-09 13:44 ` ✗ CI.checkpatch: warning for Testing entire GGTT privatization preparation series. (rev4) Patchwork
2026-01-09 13:45 ` ✓ CI.KUnit: success " Patchwork
2026-01-09 14:22 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-01-09 17:57 ` ✗ Xe.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260109133746.739923-8-dev@lankhorst.se \
    --to=dev@lankhorst.se \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox