gpu: host1x: Reset max value when freeing a syncpoint
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 29 Mar 2021 13:38:33 +0000 (16:38 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 31 Mar 2021 15:42:13 +0000 (17:42 +0200)
commitaded42ada6eacfa11d349b158e993f66e4741aa7
tree10cb6ca6abb3b17f6f0926b29070f31124def0a9
parent2aed4f5ab04af922a7cf1b616701845c9ed2473f
gpu: host1x: Reset max value when freeing a syncpoint

With job recovery becoming optional, syncpoints may have a mismatch
between their value and max value when freed. As such, when freeing,
set the max value to the current value of the syncpoint so that it
is in a sane state for the next user.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/syncpt.c