Re: [PATCH 5/6] drm/v3d: Use V3D_MAX_COUNTERS instead of V3D_PERFCNT_NUM

2024-05-09 Thread Iago Toral
El mié, 08-05-2024 a las 11:30 -0300, Maíra Canal escribió: > V3D_PERFCNT_NUM represents the maximum number of performance counters > for V3D 4.2, but not for V3D 7.1. This means that, if we use > V3D_PERFCNT_NUM, we might go out-of-bounds on V3D 7.1. > > Therefore, use the number of performance

[PATCH 5/6] drm/v3d: Use V3D_MAX_COUNTERS instead of V3D_PERFCNT_NUM

2024-05-08 Thread Maíra Canal
V3D_PERFCNT_NUM represents the maximum number of performance counters for V3D 4.2, but not for V3D 7.1. This means that, if we use V3D_PERFCNT_NUM, we might go out-of-bounds on V3D 7.1. Therefore, use the number of performance counters on V3D 7.1 as the maximum number of counters. This will allow