Re: [PATCH v5 02/11] drm/i915/dsb: DSB context creation.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux