drm/radeon: don't init gpuvm if accel is disabled (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Jan 2015 19:36:26 +0000 (14:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Feb 2015 16:39:33 +0000 (11:39 -0500)
commit544143f9e01a60a93eb00ab4bfcb9bf4702a2a7d
treeeee96f3a01586bdbafbceca451d2300f87d7268a
parent72edd83cc9e5819ed1ee771519143d7594e059f0
drm/radeon: don't init gpuvm if accel is disabled (v3)

If acceleration is disabled, it does not make sense
to init gpuvm since nothing will use it.  Moreover,
if radeon_vm_init() gets called it uses accel to try
and clear the pde tables, etc. which results in a bug.

v2: handle vm_fini as well
v3: handle bo_open/close as well

Bug:
https://bugs.freedesktop.org/show_bug.cgi?id=88786

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_kms.c