]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex
authorBen Skeggs <bskeggs@redhat.com>
Sat, 5 Nov 2016 04:33:14 +0000 (14:33 +1000)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 11:24:07 +0000 (11:24 +0000)
commit1dcaeab15a01bc9e33c37a21024dd7d39e93e1cb
tree7516cd9db58b682eb141a9e7b07cf9a7e117e81d
parentf209941e20a42ac16f3a320521c830b1c353e47e
drm/nouveau/fifo/gf100-: protect channel preempt with subdev mutex

BugLink: http://bugs.launchpad.net/bugs/1655041
commit b27add13f500469127afdf011dbcc9c649e16e54 upstream.

This avoids an issue that occurs when we're attempting to preempt multiple
channels simultaneously.  HW seems to ignore preempt requests while it's
still processing a previous one, which, well, makes sense.

Fixes random "fifo: SCHED_ERROR 0d []" + GPCCS page faults during parallel
piglit runs on (at least) GM107.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c
drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c