diff options
author | Matt Roper <matthew.d.roper@intel.com> | 2023-04-10 22:02:29 +0200 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 00:31:40 +0100 |
commit | 0a12a612c870231172d30196e6245ea471fabaed (patch) | |
tree | 3baa0f4ba99527f6c31298fff44d7d101fe15a28 /drivers/gpu/drm/xe/xe_gt_debugfs.c | |
parent | drm/xe: Fix memory use after free (diff) | |
download | linux-0a12a612c870231172d30196e6245ea471fabaed.tar.xz linux-0a12a612c870231172d30196e6245ea471fabaed.zip |
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.c | 4 |
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(>->kernel_bb_pool.base, &p, - gt->kernel_bb_pool.gpu_addr); + drm_suballoc_dump_debug_info(>->kernel_bb_pool->base, &p, + gt->kernel_bb_pool->gpu_addr); return 0; } |