nv50: when destroying a channel make sure it's not still current on PFIFO
authorBen Skeggs <skeggsb@gmail.com>
Wed, 25 Jun 2008 06:45:41 +0000 (16:45 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Wed, 25 Jun 2008 06:49:48 +0000 (16:49 +1000)
commit5d27fd94afaaf434c3a92af0075420b550055bfb
tree5864a824b130f5e7ef37d2c58f853980285de28d
parentd726eb2e5e192f22e41e399d9133edcd7202f0c5
nv50: when destroying a channel make sure it's not still current on PFIFO

We won't get a PFIFO context switch when the same channel ID is recreated if
the hw still thinks the channel is already active, which causes fun issues.

Should allow X to be stopped and started without tearing down the entire
card state in lastclose().
shared-core/nv50_fifo.c