diff options
author | Matt Coster <matt.coster@imgtec.com> | 2024-03-05 13:28:33 +0300 |
---|---|---|
committer | Matt Coster <matt.coster@imgtec.com> | 2024-04-29 14:31:28 +0300 |
commit | e4236b14fe32a8d92686ec656c870a6bb1d6f50a (patch) | |
tree | abf08c0734af9b814d95ef6f38935cc44aab96ed /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 27906e5d78248b19bcdfdae72049338c828897bb (diff) | |
download | linux-e4236b14fe32a8d92686ec656c870a6bb1d6f50a.tar.xz |
drm/imagination: Ensure PVR_MIPS_PT_PAGE_COUNT is never zero
When the host page size was more than 4 times larger than the FW page
size, this macro evaluated to zero resulting in zero-sized arrays.
Use DIV_ROUND_UP() to ensure the correct behavior.
Reported-by: 20240228012313.5934-1-yaolu@kylinos.cn
Closes: https://lore.kernel.org/dri-devel/20240228012313.5934-1-yaolu@kylinos.cn
Link: https://lore.kernel.org/dri-devel/20240228012313.5934-1-yaolu@kylinos.cn
Fixes: 927f3e0253c1 ("drm/imagination: Implement MIPS firmware processor and MMU support")
Cc: stable@vger.kernel.org
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions