• Brad Volkin's avatar
    drm/i915: Abort command parsing for chained batches · 42c7156a
    Brad Volkin authored
    libva uses chained batch buffers in a way that the command parser
    can't generally handle. Fortunately, libva doesn't need to write
    registers from batch buffers in the way that mesa does, so this
    patch causes the driver to fall back to non-secure dispatch if
    the parser detects a chained batch buffer.
    
    Note: The 2nd hunk to munge the error code of the parser looks a bit
    superflous. At least until we have the batch copy code ready and can
    run the cmd parser in granting mode. But it isn't since we still need
    to let existing libva buffers pass (though not with elevated privs
    ofc!).
    
    Testcase: igt/gem_exec_parse/chained-batch
    Signed-off-by: default avatarBrad Volkin <bradley.d.volkin@intel.com>
    [danvet: Add note - this confused me in review and Brad clarified
    things (after a few mails ...).]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    42c7156a
i915_cmd_parser.c 31.3 KB