OpenCloudOS-Kernel/drivers/gpu/drm/msm
Rob Clark cfebe3fd59 drm/msm: Expose client engine utilization via fdinfo
Similar to AMD commit
8744425411 ("drm/amdgpu: Add show_fdinfo() interface"), using the
infrastructure added in previous patches, we add basic client info
and GPU engine utilisation for msm.

Example output:

	# cat /proc/`pgrep glmark2`/fdinfo/6
	pos:	0
	flags:	02400002
	mnt_id:	21
	ino:	162
	drm-driver:	msm
	drm-client-id:	7
	drm-engine-gpu:	1734371319 ns
	drm-cycles-gpu:	1153645024
	drm-maxfreq-gpu:	800000000 Hz

See also: https://patchwork.freedesktop.org/patch/468505/

v2: Add dev-maxfreq-$engine and update drm-usage-stats.rst
v3: spelling and compiler warning

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Patchwork: https://patchwork.freedesktop.org/patch/488906/
Link: https://lore.kernel.org/r/20220609174213.2265938-2-robdclark@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-07-05 06:01:11 +03:00
..
adreno Merge tag 'drm-msm-fixes-2022-06-28' into msm-next-staging 2022-06-28 15:41:29 -07:00
disp Merge tag 'drm-msm-fixes-2022-06-28' into msm-next-staging 2022-06-28 15:41:29 -07:00
dp Merge tag 'drm-msm-fixes-2022-06-28' into msm-next-staging 2022-06-28 15:41:29 -07:00
dsi 5.19 fixes for msm-next 2022-05-20 16:35:52 +10:00
hdmi drm/msm/hdmi: fix error check return value of irq_of_parse_and_map() 2022-05-02 02:39:34 +03:00
Kconfig Merge tag 'drm-msm-next-2022-05-09' of https://gitlab.freedesktop.org/drm/msm into drm-next 2022-05-11 12:40:47 +10:00
Makefile drm/msm/dpu: add the writeback connector layer 2022-05-02 02:13:00 +03:00
NOTES
msm_atomic.c drm/msm: Avoid dirtyfb stalls on video mode displays (v2) 2022-02-25 07:59:58 -08:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_debugfs.c drm/msm: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE 2022-02-18 18:32:52 +03:00
msm_debugfs.h
msm_drv.c drm/msm: Expose client engine utilization via fdinfo 2022-07-05 06:01:11 +03:00
msm_drv.h Merge tag 'drm-msm-fixes-2022-06-28' into msm-next-staging 2022-06-28 15:41:29 -07:00
msm_fb.c drm/msm: Fix fb plane offset calculation 2022-05-18 10:55:47 -07:00
msm_fbdev.c drm/msm: Remove unnecessary struct_mutex 2021-11-28 09:50:33 -08:00
msm_fence.c drm/msm: Drop update_fences() 2022-06-18 09:13:32 -07:00
msm_fence.h drm/msm/gem: Add fenced vma unpin 2022-04-21 15:03:12 -07:00
msm_gem.c drm/msm: Make msm_gem_free_object() static 2022-07-05 06:01:07 +03:00
msm_gem.h drm/msm: Make msm_gem_free_object() static 2022-07-05 06:01:07 +03:00
msm_gem_prime.c drm/msm: Ensure mmap offset is initialized 2022-06-01 17:20:08 -07:00
msm_gem_shrinker.c treewide: Add missing includes masked by cgroup -> bpf dependency 2021-12-03 10:58:13 -08:00
msm_gem_submit.c Merge tag 'drm-msm-fixes-2022-06-28' into msm-next-staging 2022-06-28 15:41:29 -07:00
msm_gem_vma.c drm/msm/gem: Drop early returns in close/purge vma 2022-06-15 13:22:45 -07:00
msm_gpu.c drm/msm: Expose client engine utilization via fdinfo 2022-07-05 06:01:11 +03:00
msm_gpu.h drm/msm: Expose client engine utilization via fdinfo 2022-07-05 06:01:11 +03:00
msm_gpu_devfreq.c drm/msm: return the average load over the polling period 2022-04-21 15:05:23 -07:00
msm_gpu_trace.h drm/msm: Support evicting GEM objects to swap 2021-04-07 11:05:48 -07:00
msm_gpu_tracepoints.c
msm_gpummu.c drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_io_utils.c drm/msm: move utility functions from msm_drv.c 2022-02-18 18:32:52 +03:00
msm_iommu.c drm/msm: use for_each_sgtable_sg to iterate over scatterlist 2022-06-14 11:54:38 -07:00
msm_kms.h drm/msm: don't free the IRQ if it was not requested 2022-05-18 15:55:46 -07:00
msm_mdss.c drm/msm/dpu: Move min BW request and full BW disable back to mdss 2022-06-01 16:16:19 -07:00
msm_mmu.h drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_perf.c drm/msm: Remove struct_mutex usage 2021-11-28 09:50:33 -08:00
msm_rd.c drm/msm: Add support for pointer params 2022-04-21 15:01:08 -07:00
msm_ringbuffer.c drm/msm/gem: Separate object and vma unpin 2022-06-15 13:06:54 -07:00
msm_ringbuffer.h drm/msm/gpu: Drop duplicate fence counter 2022-04-21 15:03:11 -07:00
msm_submitqueue.c drm/msm: Add a way to override processes comm/cmdline 2022-04-21 15:01:09 -07:00