drm/radeon/kms: add sanity check to wptr.
authorDave Airlie <airlied@redhat.com>
Wed, 31 Mar 2010 03:38:56 +0000 (13:38 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 1 Apr 2010 02:50:19 +0000 (12:50 +1000)
commit9e5786bd14cb9ffe29ebe66d41cedf03311b0d30
tree18a1bec350a97117f4540e96323eb0efad3f9b36
parentfb668c2fed628179c7aa409a0de39a2b96bed18c
drm/radeon/kms: add sanity check to wptr.

If we resume in a bad way, we'll get 0xffffffff in wptr, and then
oops with no console. This just adds a sanity check so that we can
avoid the oops and hopefully get more details out of people's systems.

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