aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorMikko Perttunen <[email protected]>2023-03-01 15:51:06 +0200
committerThierry Reding <[email protected]>2023-04-04 14:24:24 +0200
commitc1aaee94380874fd40f7bb8417c597aba3f72c75 (patch)
tree0193b6841f85b30d86aee9ede799e2c9400916e3 /tools/perf/scripts/python/mem-phys-addr.py
parent1d83d1a2df0bfb6bd79400746c289e2c4edc5909 (diff)
gpu: host1x: Don't rely on dma_fence_wait_timeout return value
dma_fence_wait_timeout (along with a host of other jiffies-based timeouting functions) returns zero both in case of timeout and when the wait completes during the last jiffy before timeout. As such, we can't rely on it to distinguish between success and timeout. To prevent confusing callers by returning -EAGAIN before the timeout period has elapsed, check if the fence got signaled again after the wait. Signed-off-by: Mikko Perttunen <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions