etnaviv: 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>
Wed, 22 Jan 2020 13:22:47 +0000 (13:22 +0000)
commitd817f2c69615cf37b78f484a25b7831ebe9dbe6f
tree89c8639a79fa0870755ae9a70dd44f900091c929
parent047162d99ced85115b8e9010f196b8d1ee405be2
etnaviv: drm: Don't miscalculate timeout

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

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3509>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3509>
src/etnaviv/drm/etnaviv_priv.h