[Intel-gfx] [PATCH v5 02/11] drm/i915/dsb: DSB context creation.

Animesh Manna animesh.manna at intel.com
Mon Sep 9 16:41:42 UTC 2019



On 9/9/2019 6:26 PM, Sharma, Shashank wrote:
>
> On 9/7/2019 4:37 PM, Animesh Manna wrote:
>> +void intel_dsb_put(struct intel_dsb *dsb)
>> +{
>> +    struct intel_crtc *crtc = container_of(dsb, typeof(*crtc), dsb);
>> +    struct drm_i915_private *i915 = to_i915(crtc->base.dev);
>> +
>> +    if (!dsb)
>> +        return;
>> +
>> +    if (dsb->cmd_buf) {
>> +        mutex_lock(&i915->drm.struct_mutex);
>> +        i915_gem_object_unpin_map(dsb->vma->obj);
>> +        i915_vma_unpin_and_release(&dsb->vma, 0);
>> +        dsb->cmd_buf = NULL;
>
> This can be done outside mutex_unlock();

Ok.

Regards,
Animesh


More information about the Intel-gfx mailing list