]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/nouveau/tmr: handle races with hw when updating the next alarm time
authorBen Skeggs <bskeggs@redhat.com>
Thu, 11 May 2017 07:19:48 +0000 (17:19 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 11 May 2017 22:32:57 +0000 (08:32 +1000)
commit1b0f84380b10ee97f7d2dd191294de9017e94d1d
tree0507437bc996484f39ef8290358ec60da67a49fd
parent3733bd8b407211739e72d051e5f30ad82a52c4bc
drm/nouveau/tmr: handle races with hw when updating the next alarm time

If the time to the next alarm is short enough, we could race with HW and
end up with an ~4 second delay until it triggers.

Fix this by checking again after we update HW.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/nvkm/subdev/timer/base.c