/* VPU 30xx HW component IDs are sequential, so define first and last IDs. */ #define VPU_TRACE_PROC_BIT_30XX_FIRST VPU_TRACE_PROC_BIT_LRT #define VPU_TRACE_PROC_BIT_30XX_LAST VPU_TRACE_PROC_BIT_SHV_15
/** *Enumfordvfs_modebootparam.
*/ enum vpu_governor {
VPU_GOV_DEFAULT = 0, /* Default Governor for the system */
VPU_GOV_MAX_PERFORMANCE = 1, /* Maximum performance governor */
VPU_GOV_ON_DEMAND = 2, /* On Demand frequency control governor */
VPU_GOV_POWER_SAVE = 3, /* Power save governor */
VPU_GOV_ON_DEMAND_PRIORITY_AWARE = 4/* On Demand priority based governor */
};
struct vpu_boot_params {
u32 magic;
u32 vpu_id;
u32 vpu_count;
u32 pad0[5]; /* Clock frequencies: 0x20 - 0xFF */
u32 frequency;
u32 pll[VPU_BOOT_PLL_COUNT][VPU_BOOT_PLL_OUT_COUNT];
u32 perf_clk_frequency;
u32 pad1[42]; /* Memory regions: 0x100 - 0x1FF */
u64 ipc_header_area_start;
u32 ipc_header_area_size;
u64 shared_region_base;
u32 shared_region_size;
u64 ipc_payload_area_start;
u32 ipc_payload_area_size;
u64 global_aliased_pio_base;
u32 global_aliased_pio_size;
u32 autoconfig; struct vpu_boot_l2_cache_config cache_defaults[VPU_BOOT_L2_CACHE_CFG_NUM];
u64 global_memory_allocator_base;
u32 global_memory_allocator_size; /** *ShaveNNFWsectionVPUbaseaddress *OnVPU2.7HWthisaddressmustbewithin2GBrangestartingfromL2C_PAGE_TABLEbase
*/
u64 shave_nn_fw_base;
u64 save_restore_ret_address; /* stores the address of FW's restore entry point */
u32 pad2[43]; /* IRQ re-direct numbers: 0x200 - 0x2FF */
s32 watchdog_irq_mss;
s32 watchdog_irq_nce; /* ARM -> VPU doorbell interrupt. ARM is notifying VPU of async command or compute job. */
u32 host_to_vpu_irq; /* VPU -> ARM job done interrupt. VPU is notifying ARM of compute job completion. */
u32 job_done_irq; /* VPU -> ARM IRQ line to use to request MMU update. */
u32 mmu_update_request_irq; /* ARM -> VPU IRQ line to use to notify of MMU update completion. */
u32 mmu_update_done_irq; /* ARM -> VPU IRQ line to use to request power level change. */
u32 set_power_level_irq; /* VPU -> ARM IRQ line to use to notify of power level change completion. */
u32 set_power_level_done_irq; /* VPU -> ARM IRQ line to use to notify of VPU idle state change */
u32 set_vpu_idle_update_irq; /* VPU -> ARM IRQ line to use to request counter reset. */
u32 metric_query_event_irq; /* ARM -> VPU IRQ line to use to notify of counter reset completion. */
u32 metric_query_event_done_irq; /* VPU -> ARM IRQ line to use to notify of preemption completion. */
u32 preemption_done_irq; /* Padding. */
u32 pad3[52]; /* Silicon information: 0x300 - 0x3FF */
u32 host_version_id;
u32 si_stepping;
u64 device_id;
u64 feature_exclusion;
u64 sku; /** PLL ratio for minimum clock frequency */
u32 min_freq_pll_ratio; /** PLL ratio for maximum clock frequency */
u32 max_freq_pll_ratio; /** *Initialloglevelthreshold(messageswithloglevelseveritylessthan *thethresholdwillnotbelogged);appliestoeveryenabledlogging *destinationandloggableHWcomponent.See'mvLog_t'enumforacceptable *values. *TODO:EISW-33556:Movelogleveldefinition(mvLog_t)tothisfile.
*/
u32 default_trace_level;
u32 boot_type;
u64 punit_telemetry_sram_base;
u64 punit_telemetry_sram_size;
u32 vpu_telemetry_enable;
u64 crit_tracing_buff_addr;
u32 crit_tracing_buff_size;
u64 verbose_tracing_buff_addr;
u32 verbose_tracing_buff_size;
u64 verbose_tracing_sw_component_mask; /* TO BE REMOVED */ /** *Maskofdestinationstowhichloggingmessagesaredelivered;bitwiseOR *ofvaluesdefinedinvpu_trace_destinationenum.
*/
u32 trace_destination_mask; /** *Maskofhardwarecomponentsforwhichloggingisenabled;bitwiseORof *bitsdefinedbytheVPU_TRACE_PROC_BIT_*macros.
*/
u64 trace_hw_component_mask; /** Mask of trace message formats supported by the driver */
u64 tracing_buff_message_format_mask;
u64 trace_reserved_1[2]; /** *PeriodatwhichtheVPUreadsthetempsensorvaluesintoMMIO,on *platformswherethatisnecessary(inms).0todisablereads.
*/
u32 temp_sensor_period_ms; /** PLL ratio for efficient clock frequency */
u32 pn_freq_pll_ratio; /** *DVFSMode: *0-Default,DVFSmodeselectedbythefirmware *1-MaxPerformance *2-OnDemand *3-PowerSave *4-OnDemandPriorityAware
*/
u32 dvfs_mode; /** *DependingonDVFSMode: *On-demand:Defaultif0. *Bit0-7-uint8_t:Highestresidencypercent *Bit8-15-uint8_t:Highresidencypercent *Bit16-23-uint8_t:Lowresidencypercent *Bit24-31-uint8_t:Lowestresidencypercent *Bit32-35-unsigned4b:PLLRatioincreaseamountonhighestresidency *Bit36-39-unsigned4b:PLLRatioincreaseamountonhighresidency *Bit40-43-unsigned4b:PLLRatiodecreaseamountonlowresidency *Bit44-47-unsigned4b:PLLRatiodecreaseamountonlowestfrequency *Bit48-55-uint8_t:Period(ms)forresidencydecisions *Bit56-63-uint8_t:Averagingwindows(asmultiplesofperiod.Max:30decimal) *PowerSave/MaxPerformance:Unused
*/
u64 dvfs_param; /** *D0i3delayedentry *Bit0:DisableCPUstatesaveonD0i2entryflow. *0:EveryD0i2entrysavesstate.SavestateIPCmessageignored. *1:IPCmessagerequiredtosavestateonD0i3entryflow.
*/
u32 d0i3_delayed_entry; /* Time spent by VPU in D0i3 state */
u64 d0i3_residency_time_us; /* Value of VPU perf counter at the time of entering D0i3 state . */
u64 d0i3_entry_vpu_ts; /* *Thesystemtimeofthehostoperatingsysteminmicroseconds. *E.gthenumberofmicrosecondssince1stofJanuary1970,orwhatever *datethehostoperatingsystemusestomaintainsystemtime. *ThisvaluewillbeusedtotracksystemtimeontheVPU. *TheKMDisrequiredtoupdatethisvalueoneveryVPUreset.
*/
u64 system_time_us;
u32 pad4[2]; /* *Thedeltabetweendevicemonotonictimeandthecurrentvalueofthe *HWtimestampregister,inticks.Writtenbythefirmwareduringboot. *CanbeusedbytheKMDtocalculatedevicetime.
*/
u64 device_time_delta_ticks;
u32 pad7[14]; /* Warm boot information: 0x400 - 0x43F */
u32 warm_boot_sections_count;
u32 warm_boot_start_address_reference;
u32 warm_boot_section_info_address_offset;
u32 pad5[13]; /* Power States transitions timestamps: 0x440 - 0x46F*/ struct { /* VPU_IDLE -> VPU_ACTIVE transition initiated timestamp */
u64 vpu_active_state_requested; /* VPU_IDLE -> VPU_ACTIVE transition completed timestamp */
u64 vpu_active_state_achieved; /* VPU_ACTIVE -> VPU_IDLE transition initiated timestamp */
u64 vpu_idle_state_requested; /* VPU_ACTIVE -> VPU_IDLE transition completed timestamp */
u64 vpu_idle_state_achieved; /* VPU_IDLE -> VPU_STANDBY transition initiated timestamp */
u64 vpu_standby_state_requested; /* VPU_IDLE -> VPU_STANDBY transition completed timestamp */
u64 vpu_standby_state_achieved;
} power_states_timestamps; /* VPU scheduling mode. Values defined by VPU_SCHEDULING_MODE_* macros. */
u32 vpu_scheduling_mode; /* Present call period in milliseconds. */
u32 vpu_focus_present_timer_ms; /* VPU ECC Signaling */
u32 vpu_uses_ecc_mca_signal; /* Values defined by POWER_PROFILE* macros */
u32 power_profile; /* Microsecond value for DCT active cycle */
u32 dct_active_us; /* Microsecond value for DCT inactive cycle */
u32 dct_inactive_us; /* Unused/reserved: 0x488 - 0xFFF */
u32 pad6[734];
};
/* Magic numbers set between host and vpu to detect corruption of tracing init */ #define VPU_TRACING_BUFFER_CANARY (0xCAFECAFE)
/* Tracing buffer message format definitions */ #define VPU_TRACING_FORMAT_STRING 0 #define VPU_TRACING_FORMAT_MIPI 2 /* *Headerofthetracingbuffer. *Thebelowdefinedheaderwillbestoredatthebeginningof *eachallocatedtracingbuffer,followedbyaseriesof256b *ofASCIItracemessageentries.
*/ struct vpu_tracing_buffer_header { /** *Magicnumbersetbyhosttodetectcorruption *@seeVPU_TRACING_BUFFER_CANARY
*/
u32 host_canary_start; /* offset from start of buffer for trace entries */
u32 read_index; /* keeps track of wrapping on the reader side */
u32 read_wrap_count;
u32 pad_to_cache_line_size_0[13]; /* End of first cache line */
/** *Magicnumbersetbyhosttodetectcorruption *@seeVPU_TRACING_BUFFER_CANARY
*/
u32 vpu_canary_start; /* offset from start of buffer from write start */
u32 write_index; /* counter for buffer wrapping */
u32 wrap_count; /* legacy field - do not use */
u32 reserved_0; /** *Sizeofthelogbufferincludethisheader(@header_size)andspace *reservedforallmessages.If@alignment`isgreaterthat0the@Size *mustbemultipleof@Alignment.
*/
u32 size; /* Header version */
u16 header_version; /* Header size */
u16 header_size; /* *Formatofthemessagesinthetracebuffer *0-nullterminatedstring *1-size+nullterminatedstring *2-MIPI-SysTencoding
*/
u32 format; /* *Messagealignment *0-messagesareplace1afteranother *n-everymessagestartsandmultipleonoffset
*/
u32 alignment; /* 64, 128, 256 */ /* Name of the logging entity, i.e "LRT", "LNN", "SHV0", etc */ char name[16];
u32 pad_to_cache_line_size_1[4]; /* End of second cache line */
};
#pragmapack(pop)
#endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.