]> git.karo-electronics.de Git - linux-beck.git/commit
drm/nouveau/fifo/gk104: kick channels when deactivating them
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 16 Apr 2015 02:33:32 +0000 (11:33 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 27 Jul 2015 08:56:08 +0000 (18:56 +1000)
commit1addc12648521d15ef33c1a88d0354850190dfa7
tree00e053db68f5d758baa148b09ae860820eb6853f
parent9c56be4cf3d6db5a20c3b6483bd4cdc21c15cf4f
drm/nouveau/fifo/gk104: kick channels when deactivating them

Kicking channels is part of their deactivation process. Maxwell chips
are particularly sensitive to this, and can start fetching the previous
pushbuffer of a recycled channel if this is not done.

While we are at it, improve the channel preemption code to only wait for
bit 20 of 0x002634 to turn to 0, as it is the bit indicating a
preempt is pending.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c