summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_ggtt.h
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2023-01-31 23:36:39 +0100
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:27:48 -0500
commit77775e24e684c761d44ba2f804581c0c42e0ad38 (patch)
treef99e45d1a1db81252bc395ed454221216115bff6 /drivers/gpu/drm/xe/xe_ggtt.h
parent50a48cca608102a53a0961bd95aefb53a8ced3ab (diff)
downloadlinux-stable-77775e24e684c761d44ba2f804581c0c42e0ad38.tar.gz
linux-stable-77775e24e684c761d44ba2f804581c0c42e0ad38.tar.bz2
linux-stable-77775e24e684c761d44ba2f804581c0c42e0ad38.zip
drm/xe: Add debugfs for dumping GGTT mappings
Adding a debugfs dump of GGTT was useful for some debugging I did, and easy to add. Might be useful for others too. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_ggtt.h')
-rw-r--r--drivers/gpu/drm/xe/xe_ggtt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index ab9cfdab5cca..3469aa2b1a02 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -8,6 +8,8 @@
#include "xe_ggtt_types.h"
+struct drm_printer;
+
u64 xe_ggtt_pte_encode(struct xe_bo *bo, u64 bo_offset);
void xe_ggtt_set_pte(struct xe_ggtt *ggtt, u64 addr, u64 pte);
void xe_ggtt_invalidate(struct xe_gt *gt);
@@ -26,4 +28,6 @@ int xe_ggtt_insert_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
int xe_ggtt_insert_bo_at(struct xe_ggtt *ggtt, struct xe_bo *bo, u64 ofs);
void xe_ggtt_remove_bo(struct xe_ggtt *ggtt, struct xe_bo *bo);
+int xe_ggtt_dump(struct xe_ggtt *ggtt, struct drm_printer *p);
+
#endif