Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 1 | /* |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 2 | * Copyright 2006 Tungsten Graphics Inc., Bismarck, ND., USA. |
| 3 | * All rights reserved. |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 4 | * |
| 5 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | * copy of this software and associated documentation files (the "Software"), |
| 7 | * to deal in the Software without restriction, including without limitation |
| 8 | * the rights to use, copy, modify, merge, publish, distribute, sub license, |
| 9 | * and/or sell copies of the Software, and to permit persons to whom the |
| 10 | * Software is furnished to do so, subject to the following conditions: |
| 11 | * |
| 12 | * The above copyright notice and this permission notice (including the |
| 13 | * next paragraph) shall be included in all copies or substantial portions |
| 14 | * of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 19 | * THE AUTHORS OR COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, |
| 20 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 21 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 22 | * DEALINGS IN THE SOFTWARE. |
| 23 | */ |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 24 | /* |
Jan Engelhardt | 96de0e2 | 2007-10-19 23:21:04 +0200 | [diff] [blame] | 25 | * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com> |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 26 | */ |
| 27 | |
David Howells | 760285e | 2012-10-02 18:01:07 +0100 | [diff] [blame^] | 28 | #include <drm/drmP.h> |
| 29 | #include <drm/via_drm.h> |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 30 | #include "via_drv.h" |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 31 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 32 | #define VIA_MM_ALIGN_SHIFT 4 |
Nicolas Kaiser | 58c1e85 | 2010-07-11 15:32:42 +0200 | [diff] [blame] | 33 | #define VIA_MM_ALIGN_MASK ((1 << VIA_MM_ALIGN_SHIFT) - 1) |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 34 | |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 35 | struct via_memblock { |
| 36 | struct drm_mm_node mm_node; |
| 37 | struct list_head owner_list; |
| 38 | }; |
| 39 | |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 40 | int via_agp_init(struct drm_device *dev, void *data, struct drm_file *file_priv) |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 41 | { |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 42 | drm_via_agp_t *agp = data; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 43 | drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 44 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 45 | mutex_lock(&dev->struct_mutex); |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 46 | drm_mm_init(&dev_priv->agp_mm, 0, agp->size >> VIA_MM_ALIGN_SHIFT); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 47 | |
Dave Airlie | d40c853 | 2006-08-19 17:40:50 +1000 | [diff] [blame] | 48 | dev_priv->agp_initialized = 1; |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 49 | dev_priv->agp_offset = agp->offset; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 50 | mutex_unlock(&dev->struct_mutex); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 51 | |
Márton Németh | 3e684ea | 2008-01-24 15:58:57 +1000 | [diff] [blame] | 52 | DRM_DEBUG("offset = %u, size = %u\n", agp->offset, agp->size); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 53 | return 0; |
| 54 | } |
| 55 | |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 56 | int via_fb_init(struct drm_device *dev, void *data, struct drm_file *file_priv) |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 57 | { |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 58 | drm_via_fb_t *fb = data; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 59 | drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 60 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 61 | mutex_lock(&dev->struct_mutex); |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 62 | drm_mm_init(&dev_priv->vram_mm, 0, fb->size >> VIA_MM_ALIGN_SHIFT); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 63 | |
Dave Airlie | d40c853 | 2006-08-19 17:40:50 +1000 | [diff] [blame] | 64 | dev_priv->vram_initialized = 1; |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 65 | dev_priv->vram_offset = fb->offset; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 66 | |
| 67 | mutex_unlock(&dev->struct_mutex); |
Márton Németh | 3e684ea | 2008-01-24 15:58:57 +1000 | [diff] [blame] | 68 | DRM_DEBUG("offset = %u, size = %u\n", fb->offset, fb->size); |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 69 | |
| 70 | return 0; |
| 71 | |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | int via_final_context(struct drm_device *dev, int context) |
Dave Airlie | b5e89ed | 2005-09-25 14:28:13 +1000 | [diff] [blame] | 75 | { |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 76 | drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; |
| 77 | |
Dave Airlie | b5e89ed | 2005-09-25 14:28:13 +1000 | [diff] [blame] | 78 | via_release_futex(dev_priv, context); |
| 79 | |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 80 | /* Linux specific until context tracking code gets ported to BSD */ |
| 81 | /* Last context, perform cleanup */ |
| 82 | if (dev->ctx_count == 1 && dev->dev_private) { |
Dave Airlie | b5e89ed | 2005-09-25 14:28:13 +1000 | [diff] [blame] | 83 | DRM_DEBUG("Last Context\n"); |
Jesse Barnes | 9bfbd5c | 2008-09-15 15:00:33 -0700 | [diff] [blame] | 84 | drm_irq_uninstall(dev); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 85 | via_cleanup_futex(dev_priv); |
| 86 | via_do_cleanup_map(dev); |
| 87 | } |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 88 | return 1; |
| 89 | } |
| 90 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 91 | void via_lastclose(struct drm_device *dev) |
| 92 | { |
| 93 | drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; |
| 94 | |
| 95 | if (!dev_priv) |
| 96 | return; |
| 97 | |
| 98 | mutex_lock(&dev->struct_mutex); |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 99 | if (dev_priv->vram_initialized) { |
| 100 | drm_mm_takedown(&dev_priv->vram_mm); |
| 101 | dev_priv->vram_initialized = 0; |
| 102 | } |
| 103 | if (dev_priv->agp_initialized) { |
| 104 | drm_mm_takedown(&dev_priv->agp_mm); |
| 105 | dev_priv->agp_initialized = 0; |
| 106 | } |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 107 | mutex_unlock(&dev->struct_mutex); |
Dave Airlie | bc5f452 | 2007-11-05 12:50:58 +1000 | [diff] [blame] | 108 | } |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 109 | |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 110 | int via_mem_alloc(struct drm_device *dev, void *data, |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 111 | struct drm_file *file) |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 112 | { |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 113 | drm_via_mem_t *mem = data; |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 114 | int retval = 0, user_key; |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 115 | struct via_memblock *item; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 116 | drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 117 | struct via_file_private *file_priv = file->driver_priv; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 118 | unsigned long tmpSize; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 119 | |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 120 | if (mem->type > VIA_MEM_AGP) { |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 121 | DRM_ERROR("Unknown memory type allocation\n"); |
Eric Anholt | 20caafa | 2007-08-25 19:22:43 +1000 | [diff] [blame] | 122 | return -EINVAL; |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 123 | } |
| 124 | mutex_lock(&dev->struct_mutex); |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 125 | if (0 == ((mem->type == VIA_MEM_VIDEO) ? dev_priv->vram_initialized : |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 126 | dev_priv->agp_initialized)) { |
| 127 | DRM_ERROR |
| 128 | ("Attempt to allocate from uninitialized memory manager.\n"); |
| 129 | mutex_unlock(&dev->struct_mutex); |
Eric Anholt | 20caafa | 2007-08-25 19:22:43 +1000 | [diff] [blame] | 130 | return -EINVAL; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 131 | } |
| 132 | |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 133 | item = kzalloc(sizeof(*item), GFP_KERNEL); |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 134 | if (!item) { |
Eric Anholt | 20caafa | 2007-08-25 19:22:43 +1000 | [diff] [blame] | 135 | retval = -ENOMEM; |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 136 | goto fail_alloc; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 137 | } |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 138 | |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 139 | tmpSize = (mem->size + VIA_MM_ALIGN_MASK) >> VIA_MM_ALIGN_SHIFT; |
| 140 | if (mem->type == VIA_MEM_AGP) |
| 141 | retval = drm_mm_insert_node(&dev_priv->agp_mm, |
| 142 | &item->mm_node, |
| 143 | tmpSize, 0); |
| 144 | else |
| 145 | retval = drm_mm_insert_node(&dev_priv->vram_mm, |
| 146 | &item->mm_node, |
| 147 | tmpSize, 0); |
| 148 | if (retval) |
| 149 | goto fail_alloc; |
| 150 | |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 151 | again: |
| 152 | if (idr_pre_get(&dev_priv->object_idr, GFP_KERNEL) == 0) { |
| 153 | retval = -ENOMEM; |
| 154 | goto fail_idr; |
| 155 | } |
| 156 | |
| 157 | retval = idr_get_new_above(&dev_priv->object_idr, item, 1, &user_key); |
| 158 | if (retval == -EAGAIN) |
| 159 | goto again; |
| 160 | if (retval) |
| 161 | goto fail_idr; |
| 162 | |
| 163 | list_add(&item->owner_list, &file_priv->obj_list); |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 164 | mutex_unlock(&dev->struct_mutex); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 165 | |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 166 | mem->offset = ((mem->type == VIA_MEM_VIDEO) ? |
| 167 | dev_priv->vram_offset : dev_priv->agp_offset) + |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 168 | ((item->mm_node.start) << VIA_MM_ALIGN_SHIFT); |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 169 | mem->index = user_key; |
| 170 | |
| 171 | return 0; |
| 172 | |
| 173 | fail_idr: |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 174 | drm_mm_remove_node(&item->mm_node); |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 175 | fail_alloc: |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 176 | kfree(item); |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 177 | mutex_unlock(&dev->struct_mutex); |
| 178 | |
| 179 | mem->offset = 0; |
| 180 | mem->size = 0; |
| 181 | mem->index = 0; |
| 182 | DRM_DEBUG("Video memory allocation failed\n"); |
| 183 | |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 184 | return retval; |
| 185 | } |
| 186 | |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 187 | int via_mem_free(struct drm_device *dev, void *data, struct drm_file *file_priv) |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 188 | { |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 189 | drm_via_private_t *dev_priv = dev->dev_private; |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 190 | drm_via_mem_t *mem = data; |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 191 | struct via_memblock *obj; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 192 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 193 | mutex_lock(&dev->struct_mutex); |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 194 | obj = idr_find(&dev_priv->object_idr, mem->index); |
| 195 | if (obj == NULL) { |
| 196 | mutex_unlock(&dev->struct_mutex); |
| 197 | return -EINVAL; |
| 198 | } |
| 199 | |
| 200 | idr_remove(&dev_priv->object_idr, mem->index); |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 201 | list_del(&obj->owner_list); |
| 202 | drm_mm_remove_node(&obj->mm_node); |
| 203 | kfree(obj); |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 204 | mutex_unlock(&dev->struct_mutex); |
Daniel Vetter | 77ee8f3 | 2011-10-25 17:55:31 +0200 | [diff] [blame] | 205 | |
Eric Anholt | c153f45 | 2007-09-03 12:06:45 +1000 | [diff] [blame] | 206 | DRM_DEBUG("free = 0x%lx\n", mem->index); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 207 | |
Daniel Vetter | b5215ef | 2012-01-08 22:42:27 +0100 | [diff] [blame] | 208 | return 0; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 209 | } |
| 210 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 211 | |
Nicolas Kaiser | 58c1e85 | 2010-07-11 15:32:42 +0200 | [diff] [blame] | 212 | void via_reclaim_buffers_locked(struct drm_device *dev, |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 213 | struct drm_file *file) |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 214 | { |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 215 | struct via_file_private *file_priv = file->driver_priv; |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 216 | struct via_memblock *entry, *next; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 217 | |
Daniel Vetter | 834859c | 2011-10-25 23:37:09 +0200 | [diff] [blame] | 218 | if (!(file->minor->master && file->master->lock.hw_lock)) |
| 219 | return; |
| 220 | |
| 221 | drm_idlelock_take(&file->master->lock); |
| 222 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 223 | mutex_lock(&dev->struct_mutex); |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 224 | if (list_empty(&file_priv->obj_list)) { |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 225 | mutex_unlock(&dev->struct_mutex); |
Daniel Vetter | 834859c | 2011-10-25 23:37:09 +0200 | [diff] [blame] | 226 | drm_idlelock_release(&file->master->lock); |
| 227 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 228 | return; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 229 | } |
| 230 | |
Daniel Vetter | 834859c | 2011-10-25 23:37:09 +0200 | [diff] [blame] | 231 | via_driver_dma_quiescent(dev); |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 232 | |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 233 | list_for_each_entry_safe(entry, next, &file_priv->obj_list, |
| 234 | owner_list) { |
Daniel Vetter | 977b4f6 | 2011-10-26 22:21:13 +0200 | [diff] [blame] | 235 | list_del(&entry->owner_list); |
| 236 | drm_mm_remove_node(&entry->mm_node); |
| 237 | kfree(entry); |
Daniel Vetter | c828e20 | 2011-10-25 16:32:45 +0200 | [diff] [blame] | 238 | } |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 239 | mutex_unlock(&dev->struct_mutex); |
Daniel Vetter | 834859c | 2011-10-25 23:37:09 +0200 | [diff] [blame] | 240 | |
| 241 | drm_idlelock_release(&file->master->lock); |
| 242 | |
Thomas Hellstrom | ce65a44 | 2006-08-07 22:03:22 +1000 | [diff] [blame] | 243 | return; |
Dave Airlie | 22f579c | 2005-06-28 22:48:56 +1000 | [diff] [blame] | 244 | } |