summaryrefslogtreecommitdiff
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorMaíra Canal <mcanal@igalia.com>2024-12-04 09:28:31 -0300
committerMaíra Canal <mcanal@igalia.com>2024-12-05 14:27:57 -0300
commitc98b10496b2f3c4f576af3482c71aadcfcbf765e (patch)
treea127a611fa931dab5c297835d5327a038ad55294 /mm/vmalloc.c
parent59ca0e1c97c5d752f85ca2922ff258ff5e62bc73 (diff)
drm/v3d: Enable Performance Counters before clearing themdrm-misc-fixes-2024-12-05
On the Raspberry Pi 5, performance counters are not being cleared when `v3d_perfmon_start()` is called, even though we write to the CLR register. As a result, their values accumulate until they overflow. The expected behavior is for performance counters to reset to zero at the start of a job. When the job finishes and the perfmon is stopped, the counters should accurately reflect the values for that specific job. To ensure this behavior, the performance counters are now enabled before being cleared. This allows the CLR register to function as intended, zeroing the counter values when the job begins. Fixes: 26a4dc29b74a ("drm/v3d: Expose performance counters to userspace") Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241204122831.17015-1-mcanal@igalia.com
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions