Subversion Repositories Kolibri OS

Rev

Rev 4280 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4280 Rev 4371
Line 185... Line 185...
185
    obj->has_global_gtt_mapping = 1;
185
    obj->has_global_gtt_mapping = 1;
Line 186... Line 186...
186
 
186
 
187
    list_add_tail(&obj->global_list, &dev_priv->mm.bound_list);
187
    list_add_tail(&obj->global_list, &dev_priv->mm.bound_list);
Line -... Line 188...
-
 
188
    list_add_tail(&vma->mm_list, &ggtt->inactive_list);
-
 
189
 
-
 
190
    mutex_lock(&dev->object_name_lock);
-
 
191
    idr_preload(GFP_KERNEL);
-
 
192
 
-
 
193
    if (!obj->base.name) {
-
 
194
        ret = idr_alloc(&dev->object_name_idr, &obj->base, 1, 0, GFP_NOWAIT);
-
 
195
        if (ret < 0)
-
 
196
            goto err_gem;
-
 
197
 
-
 
198
        obj->base.name = ret;
-
 
199
 
-
 
200
        /* Allocate a reference for the name table.  */
-
 
201
        drm_gem_object_reference(&obj->base);
-
 
202
 
-
 
203
        printf("%s allocate fb name %d\n", __FUNCTION__, obj->base.name );
-
 
204
    }
-
 
205
 
-
 
206
    idr_preload_end();
188
    list_add_tail(&vma->mm_list, &ggtt->inactive_list);
207
    mutex_unlock(&dev->object_name_lock);
Line -... Line 208...
-
 
208
    drm_gem_object_unreference(&obj->base);
-
 
209
    return obj;
-
 
210
 
189
 
211
err_gem:
190
    return obj;
212
    idr_preload_end();
191
 
213
    mutex_unlock(&dev->object_name_lock);
192
err_vma:
214
err_vma:
193
    i915_gem_vma_destroy(vma);
215
    i915_gem_vma_destroy(vma);