freedreno/drm: Don't miscalculate timeout
authorGuido Günther <agx@sigxcpu.org>
Wed, 22 Jan 2020 10:43:11 +0000 (11:43 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 18:07:13 +0000 (18:07 +0000)
commitc5334d2943edc34052269cdb5c1052f6eb65335c
tree667133493c7a53e7550aa3b786aa244d1af1709c
parentb327501dbf946279c8dff55566af73821d0d576e
freedreno/drm: Don't miscalculate timeout

The current code overflows (s * 1000000000) for s >= 5 but that is
e.g. used in msm_bo_cpu_prep.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3514>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3514>
src/freedreno/drm/msm_priv.h