drm/radeon: fix race between GPU reset and TTM delayed delete thread.
authorDave Airlie <airlied@redhat.com>
Thu, 10 Feb 2011 04:46:06 +0000 (14:46 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 14 Feb 2011 00:10:24 +0000 (10:10 +1000)
commit8fd1b84cc9d32e7e5c44e990a9c9e27504b232ed
treeffc92d031486bdee21d2d79121b6c4feae911b27
parent0f234f5fdca1e31c7a6333c3633edc653cf3e598
drm/radeon: fix race between GPU reset and TTM delayed delete thread.

My evergreen has been in a remote PC for week and reset has never once
saved me from certain doom, I finally relocated to the box with a
serial cable and noticed an oops when the GPU resets, and the TTM
delayed delete thread tries to remove something from the GTT.

This stops the delayed delete thread from executing across the GPU
reset handler, and woot I can GPU reset now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c