aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-02-11 03:56:44 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-02-12 15:41:58 -0500
commit20874179a22310c2224f43fc5676b7d87ad47e70 (patch)
tree86a4b3a7188c00dd7975f02431da62f53e974d12 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentc594989cc0db05a07a852e1da6f5387d8265a64a (diff)
drm/amdgpu: nuke the kernel context
Not used any more. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 6bdb891b9ddc..93cd1a46ccc4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1551,11 +1551,6 @@ int amdgpu_device_init(struct amdgpu_device *adev,
1551 return r; 1551 return r;
1552 } 1552 }
1553 1553
1554 r = amdgpu_ctx_init(adev, AMD_SCHED_PRIORITY_KERNEL, &adev->kernel_ctx);
1555 if (r) {
1556 dev_err(adev->dev, "failed to create kernel context (%d).\n", r);
1557 return r;
1558 }
1559 r = amdgpu_ib_ring_tests(adev); 1554 r = amdgpu_ib_ring_tests(adev);
1560 if (r) 1555 if (r)
1561 DRM_ERROR("ib ring test failed (%d).\n", r); 1556 DRM_ERROR("ib ring test failed (%d).\n", r);
@@ -1619,7 +1614,6 @@ void amdgpu_device_fini(struct amdgpu_device *adev)
1619 adev->shutdown = true; 1614 adev->shutdown = true;
1620 /* evict vram memory */ 1615 /* evict vram memory */
1621 amdgpu_bo_evict_vram(adev); 1616 amdgpu_bo_evict_vram(adev);
1622 amdgpu_ctx_fini(&adev->kernel_ctx);
1623 amdgpu_ib_pool_fini(adev); 1617 amdgpu_ib_pool_fini(adev);
1624 amdgpu_fence_driver_fini(adev); 1618 amdgpu_fence_driver_fini(adev);
1625 amdgpu_fbdev_fini(adev); 1619 amdgpu_fbdev_fini(adev);