]> git.baikalelectronics.ru Git - kernel.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)
commitb60dfe8fd604398c7a0b7d85f6cf69f8b27523f7
tree0507437bc996484f39ef8290358ec60da67a49fd
parentaa2673382d9fa3b4d75d4e07611fd45c2c55791a
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