class EngineCommandStreamer

Defined at line 28 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

Protected Members

static const uint32_t kRenderEngineMmioBase
static const uint32_t kVideoEngineMmioBase
static const uint32_t kVideoEngineMmioBaseGen12

Public Methods

void EngineCommandStreamer (Owner * owner, EngineCommandStreamerId id, uint32_t mmio_base, std::unique_ptr<GpuMapping> hw_status_page, std::unique_ptr<Scheduler> scheduler)

Defined at line 23 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

const char * Name ()

Defined at line 33 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void ~EngineCommandStreamer ()

Defined at line 42 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

EngineCommandStreamerId id ()

Defined at line 44 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

bool InitContext (MsdIntelContext * context)

Initialize backing store for the given context on this engine command streamer.

Defined at line 45 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

uint32_t mmio_base ()

Defined at line 48 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

GpuProgress * progress ()

Defined at line 50 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

GlobalHardwareStatusPage * hardware_status_page ()

Defined at line 52 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

bool IsIdle ()

Defined at line 59 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

bool InitContextWorkarounds (MsdIntelContext * context)

Defined at line 71 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool InitContextCacheConfig (MsdIntelContext * context)

Defined at line 83 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void InitHardware ()

Defined at line 95 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void set_forcewake_domain (ForceWakeDomain domain)

Defined at line 93 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

std::optional<ForceWakeDomain> get_forcewake_domain ()

Defined at line 99 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

uint64_t GetActiveHeadPointer ()

Defined at line 357 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

uint32_t GetRingbufferHeadPointer ()

Returns the head pointer for the context that's active on this engine.

Defined at line 362 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void InitIndirectContext (MsdIntelContext * context, std::shared_ptr<IndirectContextBatch> batch)

Sets the given context's "indirect context" batch.

Defined at line 227 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool Reset ()

Defined at line 367 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool ExecBatch (std::unique_ptr<MappedBatch> mapped_batch)

Execute the batch immediately.

Defined at line 442 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void SubmitBatch (std::unique_ptr<MappedBatch> batch)

Submit the batch for eventual execution.

Defined at line 454 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void ContextSwitched ()

Called in response to a context switch interrupt.

Defined at line 470 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void ProcessCompletedCommandBuffers (uint32_t last_completed_sequence)

Called in response to a user interrupt.

Defined at line 539 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void ResetCurrentContext ()

Reset the engine state and kill the current context.

Defined at line 571 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

std::vector<MappedBatch *> GetInflightBatches ()

This does not return ownership of the mapped batches so it is not safe

to store the result and this method must be called from the device thread

Defined at line 592 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

Protected Methods

std::shared_ptr<ForceWakeDomain> ForceWakeRequest ()

Defined at line 119 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

bool WriteBatchToRingBuffer (MappedBatch * mapped_batch, uint32_t * sequence_number_out)

On success, returns a sequence number.

MsdIntelRegisterIo * register_io ()

Defined at line 133 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

Sequencer * sequencer ()

Defined at line 135 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

std::queue<InflightCommandSequence> & inflight_command_sequences ()

Defined at line 137 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.h

void InitRegisterState (RegisterStateHelper & helper, Ringbuffer * ringbuffer, uint64_t ppgtt_pml4_addr)

Defined at line 162 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool SubmitContext (MsdIntelContext * context, uint32_t tail)

Defined at line 250 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool UpdateContext (MsdIntelContext * context, uint32_t tail)

Defined at line 259 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void SubmitExeclists (MsdIntelContext * context)

Defined at line 278 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void InvalidateTlbs ()

Defined at line 141 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

void ScheduleContext ()

Defined at line 492 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool MoveBatchToInflight (std::unique_ptr<MappedBatch> mapped_batch)

Defined at line 521 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

bool StartBatchBuffer (MsdIntelContext * context, uint64_t gpu_addr, AddressSpaceType address_space_type)

Defined at line 425 of file ../../src/graphics/drivers/msd-intel-gen/src/engine_command_streamer.cc

Records

Friends

class TestMsdIntelDevice
class TestEngineCommandStreamer