• Thomas Hellstrom's avatar
    drm/vmwgfx: Stabilize the command buffer submission code · 09dc1387
    Thomas Hellstrom authored
    This commit addresses some stability problems with the command buffer
    submission code recently introduced:
    
    1) Make the vmw_cmdbuf_man_process() function handle reruns internally to
    avoid losing interrupts if the caller forgets to rerun on -EAGAIN.
    2) Handle default command buffer allocations using inline command buffers.
    This avoids rare allocation deadlocks.
    3) In case of command buffer errors we might lose fence submissions.
    Therefore send a new fence after each command buffer error. This will help
    avoid lengthy fence waits.
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: default avatarSinclair Yeh <syeh@vmware.com>
    09dc1387
vmwgfx_cmdbuf.c 36.2 KB