drm/radeon/kms: properly set accel working flag and bailout when false
authorJerome Glisse <jglisse@redhat.com>
Mon, 20 Feb 2012 22:57:20 +0000 (17:57 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Feb 2012 10:30:02 +0000 (10:30 +0000)
If accel is not working many subsystem such as the ib pool might not be
initialized properly that can lead to segfault inside kernel when cs
ioctl is call with non working acceleration. To avoid this make sure
the accel working flag is false when an error in GPU startup happen and
return EBUSY from cs ioctl if accel is not working.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found