diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 13:30:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 13:30:17 -0500 |
commit | c5113e3d66d7c7140fe854c7638a27eb3a23fd7d (patch) | |
tree | 9247edfcfa87132e15a277d6f2359b303c24da29 /drivers/gpu/drm/radeon/r600.c | |
parent | 9b2831704e9250269032e3b8c2ffdfca09fd2851 (diff) | |
parent | d785d78bbdb53580b12c40e820af5a3281ce2fc8 (diff) |
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
drm/radeon/kms: fix r100->r500 CS checker for compressed textures. (v2)
drm/radeon/kms: allow for texture tiling
drm/radeon/kms: init pm on all chipsets
drm/radeon/kms: HDMI support for R600 KMS
drm/radeon/kms: make sure mc is initialized before mapping blit bo
drm/radeon/kms: Return to userspace on ERESTARTSYS
drm/radeon/gem: don't leak a gem object if reserve fails on get tiling (v2)
drm/radeon/kms: don't report allocate failure on ERESTARTSYS
drm/radeon/kms: Check if bo we got from ttm are radeon object or not
drm/radeon/kms: If no placement is supplied fallback to system
drm/ttm: Fix memory type manager debug information printing
drm/ttm: Fix printk format & compute bo->mem.size at bo initialization
drm/ttm: Fix potential ttm_mem_evict_first races.
drm/ttm: Delayed delete fixes.
drm/ttm: fix two bugs in new placement routines.
drm/ttm: fix incorrect logic in ttm_bo_io path
drm/nouveau: remove use of -ERESTART
nouveau: Fix endianness with new context program loader
drm/nouveau: fix build with CONFIG_AGP=n
drm/nouveau: fix ch7006 build
Diffstat (limited to 'drivers/gpu/drm/radeon/r600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 36656bd110bf..a0ac3c134b1b 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -1863,6 +1863,14 @@ int r600_startup(struct radeon_device *rdev) | |||
1863 | } | 1863 | } |
1864 | r600_gpu_init(rdev); | 1864 | r600_gpu_init(rdev); |
1865 | 1865 | ||
1866 | if (!rdev->r600_blit.shader_obj) { | ||
1867 | r = r600_blit_init(rdev); | ||
1868 | if (r) { | ||
1869 | DRM_ERROR("radeon: failed blitter (%d).\n", r); | ||
1870 | return r; | ||
1871 | } | ||
1872 | } | ||
1873 | |||
1866 | r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false); | 1874 | r = radeon_bo_reserve(rdev->r600_blit.shader_obj, false); |
1867 | if (unlikely(r != 0)) | 1875 | if (unlikely(r != 0)) |
1868 | return r; | 1876 | return r; |
@@ -2038,12 +2046,6 @@ int r600_init(struct radeon_device *rdev) | |||
2038 | if (r) | 2046 | if (r) |
2039 | return r; | 2047 | return r; |
2040 | 2048 | ||
2041 | r = r600_blit_init(rdev); | ||
2042 | if (r) { | ||
2043 | DRM_ERROR("radeon: failed blitter (%d).\n", r); | ||
2044 | return r; | ||
2045 | } | ||
2046 | |||
2047 | rdev->accel_working = true; | 2049 | rdev->accel_working = true; |
2048 | r = r600_startup(rdev); | 2050 | r = r600_startup(rdev); |
2049 | if (r) { | 2051 | if (r) { |
@@ -2065,6 +2067,10 @@ int r600_init(struct radeon_device *rdev) | |||
2065 | rdev->accel_working = false; | 2067 | rdev->accel_working = false; |
2066 | } | 2068 | } |
2067 | } | 2069 | } |
2070 | |||
2071 | r = r600_audio_init(rdev); | ||
2072 | if (r) | ||
2073 | return r; /* TODO error handling */ | ||
2068 | return 0; | 2074 | return 0; |
2069 | } | 2075 | } |
2070 | 2076 | ||
@@ -2073,6 +2079,7 @@ void r600_fini(struct radeon_device *rdev) | |||
2073 | /* Suspend operations */ | 2079 | /* Suspend operations */ |
2074 | r600_suspend(rdev); | 2080 | r600_suspend(rdev); |
2075 | 2081 | ||
2082 | r600_audio_fini(rdev); | ||
2076 | r600_blit_fini(rdev); | 2083 | r600_blit_fini(rdev); |
2077 | r600_irq_fini(rdev); | 2084 | r600_irq_fini(rdev); |
2078 | radeon_irq_kms_fini(rdev); | 2085 | radeon_irq_kms_fini(rdev); |