drm/radeon: disable tests/benchmarks if accel is disabled
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Sep 2013 14:38:26 +0000 (10:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:12 +0000 (07:13 -0700)
commit05e1be66ed3e42ea63a30771531af4d9146efe3c
tree95feefa2dcc1247baaef63e1c530689c953149ea
parentf329055796c2c2d4d0a6fe4691755213cfef6187
drm/radeon: disable tests/benchmarks if accel is disabled

commit 4a1132a023eb48cf10522d84c5908d43b612c041 upstream.

The tests are only usable if the acceleration engines have
been successfully initialized.

Based on an initial patch from: Alex Ivanov <gnidorah@p0n4ik.tk>

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_device.c