gpu: host1x: Always return syncpoint value when waiting
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 7 Feb 2022 13:19:31 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:47:52 +0000 (11:47 +0100)
commit0b92b5f4c50bce5f432485d80a1283d6b6f9b43b
tree498f35b7a474e389fe0297bb9d1ecbf0ac5e62f2
parent734d80b4365a0be12c0f7be04b92bbb987872b5c
gpu: host1x: Always return syncpoint value when waiting

commit 184b58fa816fb5ee1854daf0d430766422bf2a77 upstream.

The new TegraDRM UAPI uses syncpoint waiting with timeout set to
zero to indicate reading the syncpoint value. To support that we
need to return the syncpoint value always when waiting.

Fixes: 44e961381354 ("drm/tegra: Implement syncpoint wait UAPI")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/host1x/syncpt.c