drm/etnaviv: fix bogus fence complete check in timeout handler
authorLucas Stach <l.stach@pengutronix.de>
Thu, 4 Oct 2018 09:37:00 +0000 (11:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:19:25 +0000 (09:19 +0100)
commit3ff21b59ffd294c04fd83994e71417247f0d2ee7
tree3fcda35a915700048856c78311651eb9498aa94b
parent506acd7ee64ce1c94d60c38c7721e1c0133fdae2
drm/etnaviv: fix bogus fence complete check in timeout handler

commit 6fce3a406108ee6c8a61e2a33e52e9198a626ea0 upstream.

The GPU hardware fences and the job out-fences are on different timelines
so it's wrong to compare them. Fix this by only looking at the out-fence.

Cc: <stable@vger.kernel.org>
Fixes: 2c83a726d6fb (drm/etnaviv: bring back progress check in job
                     timeout handler)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/etnaviv/etnaviv_sched.c