i915_parse_cmds(9) parse a submitted batch buffer for privilege violations

SYNOPSIS

int i915_parse_cmds(struct intel_engine_cs * engine, struct drm_i915_gem_object * batch_obj, struct drm_i915_gem_object * shadow_batch_obj, u32 batch_start_offset, u32 batch_len, bool is_master);

ARGUMENTS

engine

-- undescribed --

batch_obj

the batch buffer in question

shadow_batch_obj

copy of the batch buffer in question

batch_start_offset

byte offset in the batch at which execution starts

batch_len

length of the commands in batch_obj

is_master

is the submitting process the drm master?

DESCRIPTION

Parses the specified batch buffer looking for privilege violations as described in the overview.

RETURN

non-zero if the parser finds violations or otherwise fails; -EACCES if the batch appears legal but should use hardware parsing

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT