summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt_debugfs.c
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2023-04-10 23:02:29 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:31:40 +0300
commit0a12a612c870231172d30196e6245ea471fabaed (patch)
tree3baa0f4ba99527f6c31298fff44d7d101fe15a28 /drivers/gpu/drm/xe/xe_gt_debugfs.c
parent2988cf02ee303a96052a6c486b9bbb6e4fd5c030 (diff)
downloadlinux-0a12a612c870231172d30196e6245ea471fabaed.tar.xz
drm/xe: Let primary and media GT share a kernel_bb_pool
The media GT requires a valid gt->kernel_bb_pool during driver probe to allocate the WA and NOOP batchbuffers used to record default context images. Dynamically allocate the bb_pools so that the primary and media GT can use the same pool during driver init. The media GT still shouldn't be need the USM pool, so only hook up the kernel_bb_pool for now. Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://lore.kernel.org/r/20230410200229.2726648-1-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_gt_debugfs.c')
-rw-r--r--drivers/gpu/drm/xe/xe_gt_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_debugfs.c b/drivers/gpu/drm/xe/xe_gt_debugfs.c
index 9fab8017490f..c45486c2015a 100644
--- a/drivers/gpu/drm/xe/xe_gt_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_gt_debugfs.c
@@ -66,8 +66,8 @@ static int sa_info(struct seq_file *m, void *data)
struct xe_gt *gt = node_to_gt(m->private);
struct drm_printer p = drm_seq_file_printer(m);
- drm_suballoc_dump_debug_info(&gt->kernel_bb_pool.base, &p,
- gt->kernel_bb_pool.gpu_addr);
+ drm_suballoc_dump_debug_info(&gt->kernel_bb_pool->base, &p,
+ gt->kernel_bb_pool->gpu_addr);
return 0;
}