• Alex Goins's avatar
    i915: wait for fence in mmio_flip_work_func · fd8e058a
    Alex Goins authored
    If a buffer is backed by dmabuf, wait on its reservation object's exclusive
    fence before flipping.
    
    v2: First commit
    v3: Remove object_name_lock acquire
    v4: Move wait ahead of mark_page_flip_active
        Use crtc->primary->fb to get GEM object instead of pending_flip_obj
        use_mmio_flip() return true when exclusive fence is attached
        Wait only on exclusive fences, interruptible with no timeout
    v5: Move wait from do_mmio_flip to mmio_flip_work_func
        Style tweaks to more closely match rest of file
    v6: Change back to unintteruptible wait to match __i915_wait_request due to
        inability to properly handle interrupted wait.
        Warn on error code from waiting.
    v7: No change
    v8: Test for !reservation_object_signaled_rcu(test_all=FALSE) instead of
        obj->base.dma_buf->resv->fence_excl
    
    Link: https://patchwork.kernel.org/patch/7704181/Signed-off-by: default avatarAlex Goins <agoins@nvidia.com>
    Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
    fd8e058a
intel_display.c 442 KB