2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/v3d
Maíra Canal 35f4f8c9fc
drm/v3d: Don't increment enabled_ns twice
The commit 509433d814 ("drm/v3d: Expose the total GPU usage stats on sysfs")
introduced the calculation of global GPU stats. For the regards, it used
the already existing infrastructure provided by commit 09a93cc4f7 ("drm/v3d:
Implement show_fdinfo() callback for GPU usage stats"). While adding
global GPU stats calculation ability, the author forgot to delete the
existing one.

Currently, the value of `enabled_ns` is incremented twice by the end of
the job, when it should be added just once. Therefore, delete the
leftovers from commit 509433d814 ("drm/v3d: Expose the total GPU usage
stats on sysfs").

Fixes: 509433d814 ("drm/v3d: Expose the total GPU usage stats on sysfs")
Reported-by: Tvrtko Ursulin <tursulin@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240403203517.731876-2-mcanal@igalia.com
2024-04-15 15:00:19 -03:00
..
Kconfig drm/v3d: Add support for bcm2711 2022-06-12 22:10:50 -01:00
Makefile drm/v3d: Detach job submissions IOCTLs to a new specific file 2023-12-01 09:34:01 -03:00
v3d_bo.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_debugfs.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_drv.c drm/v3d: Add a CPU job submission 2023-12-01 09:34:19 -03:00
v3d_drv.h drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_fence.c drm/v3d: Add support for compute shader dispatch. 2019-04-18 09:54:10 -07:00
v3d_gem.c drm/v3d: Detach job submissions IOCTLs to a new specific file 2023-12-01 09:34:01 -03:00
v3d_irq.c drm/v3d: Don't increment enabled_ns twice 2024-04-15 15:00:19 -03:00
v3d_mmu.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_perfmon.c drm/v3d: add missing mutex_destroy 2022-11-10 11:49:40 -01:00
v3d_regs.h drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_sched.c drm/v3d: Create a CPU job extension for the copy performance query job 2023-12-01 09:47:36 -03:00
v3d_submit.c drm/v3d: Free the job and assign it to NULL if initialization fails 2024-01-11 11:23:13 -03:00
v3d_sysfs.c drm/v3d: Expose the total GPU usage stats on sysfs 2023-11-06 10:09:29 -03:00
v3d_trace_points.c
v3d_trace.h drm/v3d: Create tracepoints to track the CPU job 2023-12-01 09:37:48 -03:00