mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

This will display the sizes of kenrel BO's bound to an open file, which are otherwise not exposed to UM through a handle. The sizes recorded are as follows: - Per group: suspend buffer, protm-suspend buffer, syncobjcs - Per queue: ringbuffer, profiling slots, firmware interface - For all heaps in all heap pools across all VM's bound to an open file, record size of all heap chuks, and for each pool the gpu_context BO too. This does not record the size of FW regions, as these aren't bound to a specific open file and remain active through the whole life of the driver. Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Reviewed-by: Mihail Atanassov <mihail.atanassov@arm.com> Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250130172851.941597-4-adrian.larumbe@collabora.com
56 lines
2.0 KiB
C
56 lines
2.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 or MIT */
|
|
/* Copyright 2023 Collabora ltd. */
|
|
|
|
#ifndef __PANTHOR_SCHED_H__
|
|
#define __PANTHOR_SCHED_H__
|
|
|
|
struct drm_exec;
|
|
struct dma_fence;
|
|
struct drm_file;
|
|
struct drm_gem_object;
|
|
struct drm_sched_job;
|
|
struct drm_memory_stats;
|
|
struct drm_panthor_group_create;
|
|
struct drm_panthor_queue_create;
|
|
struct drm_panthor_group_get_state;
|
|
struct drm_panthor_queue_submit;
|
|
struct panthor_device;
|
|
struct panthor_file;
|
|
struct panthor_group_pool;
|
|
struct panthor_job;
|
|
|
|
int panthor_group_create(struct panthor_file *pfile,
|
|
const struct drm_panthor_group_create *group_args,
|
|
const struct drm_panthor_queue_create *queue_args);
|
|
int panthor_group_destroy(struct panthor_file *pfile, u32 group_handle);
|
|
int panthor_group_get_state(struct panthor_file *pfile,
|
|
struct drm_panthor_group_get_state *get_state);
|
|
|
|
struct drm_sched_job *
|
|
panthor_job_create(struct panthor_file *pfile,
|
|
u16 group_handle,
|
|
const struct drm_panthor_queue_submit *qsubmit);
|
|
struct drm_sched_job *panthor_job_get(struct drm_sched_job *job);
|
|
struct panthor_vm *panthor_job_vm(struct drm_sched_job *sched_job);
|
|
void panthor_job_put(struct drm_sched_job *job);
|
|
void panthor_job_update_resvs(struct drm_exec *exec, struct drm_sched_job *job);
|
|
|
|
int panthor_group_pool_create(struct panthor_file *pfile);
|
|
void panthor_group_pool_destroy(struct panthor_file *pfile);
|
|
void panthor_fdinfo_gather_group_mem_info(struct panthor_file *pfile,
|
|
struct drm_memory_stats *stats);
|
|
|
|
int panthor_sched_init(struct panthor_device *ptdev);
|
|
void panthor_sched_unplug(struct panthor_device *ptdev);
|
|
void panthor_sched_pre_reset(struct panthor_device *ptdev);
|
|
void panthor_sched_post_reset(struct panthor_device *ptdev, bool reset_failed);
|
|
void panthor_sched_suspend(struct panthor_device *ptdev);
|
|
void panthor_sched_resume(struct panthor_device *ptdev);
|
|
|
|
void panthor_sched_report_mmu_fault(struct panthor_device *ptdev);
|
|
void panthor_sched_report_fw_events(struct panthor_device *ptdev, u32 events);
|
|
|
|
void panthor_fdinfo_gather_group_samples(struct panthor_file *pfile);
|
|
|
|
#endif
|