summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMaíra Canal <mcanal@igalia.com>2026-09-15 16:42:21 -0300
committerMaíra Canal <mcanal@igalia.com>2026-09-30 19:41:09 -0300
commit88b7a9fb64afd206b3aad92a96425d2b562774d4 (patch)
tree1f275898580304e5de416339ebca1f2d0eb0ccb8 /tools/perf/scripts/python/stackcollapse.py
parenta92c785f810ea330e6ae4c79b5aa0eb031ee7d65 (diff)
downloadlinux-88b7a9fb64afd206b3aad92a96425d2b562774d4.tar.gz
linux-88b7a9fb64afd206b3aad92a96425d2b562774d4.zip
drm/vc4: Use drm_timeout_rel_to_jiffies()
vc4_wait_bo_ioctl() converts its timeout with usecs_to_jiffies(), which takes an unsigned int. The microsecond value derived from the u64 timeout_ns is narrowed to fit, so any timeout above UINT_MAX microseconds, around ~71 minutes, wraps into a much shorter one. Unlike the equivalent problem in the other drivers, this one is not limited to 32-bit. Use the shared helper, which takes the duration in ns and clamps the result to MAX_JIFFY_OFFSET. Fixes: 21bd85f82ec2 ("drm/vc4: Use DMA Resv to implement VC4 wait BO IOCTL") Acked-by: Christian König <christian.koenig@amd.com> Link: https://patch.msgid.link/20260915-drm-timeout-helpers-v3-6-f2ae987d861f@igalia.com Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions