intel_execlists_ctx_id(9) get the Execlists Context ID

SYNOPSIS

u32 intel_execlists_ctx_id(struct intel_context * ctx, struct intel_engine_cs * engine);

ARGUMENTS

ctx

Context to get the ID for

engine

-- undescribed --

DESCRIPTION

Do not confuse with ctx->id! Unfortunately we have a name overload

HERE

the old context ID we pass to userspace as a handler so that they can refer to a context, and the new context ID we pass to the ELSP so that the GPU can inform us of the context status via interrupts.

The context ID is a portion of the context descriptor, so we can just extract the required part from the cached descriptor.

RETURN

20-bits globally unique context ID.

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