Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (3 months ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/drivers/gpu/drm/ttm/ttm_object.c

    r28606 r31859  
    180180                goto out_err0;
    181181
    182         ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL);
     182        ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL, false);
    183183        if (unlikely(ret != 0))
    184184                goto out_err1;
     
    319319int ttm_ref_object_add(struct ttm_object_file *tfile,
    320320                       struct ttm_base_object *base,
    321                        enum ttm_ref_type ref_type, bool *existed)
     321                       enum ttm_ref_type ref_type, bool *existed,
     322                       bool require_existed)
    322323{
    323324        struct drm_open_hash *ht = &tfile->ref_hash[ref_type];
     
    346347
    347348                rcu_read_unlock();
     349                if (require_existed)
     350                        return -EPERM;
     351
    348352                ret = ttm_mem_global_alloc(mem_glob, sizeof(*ref),
    349353                                           false, false);
     
    636640        base = &prime->base;
    637641        *handle = base->hash.key;
    638         ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL);
     642        ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL, false);
    639643
    640644        dma_buf_put(dma_buf);
Note: See TracChangeset for help on using the changeset viewer.