mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
3198a62eb8
Currently the VPU firmware prepares for D0i3 every time the VPU is entering D0i2 Idle state. This is not optimal as we might not enter D0i3 every time we enter D0i2 Idle and this preparation is quite costly. This optimization moves D0i3 preparation to a dedicated message sent from the host driver only when the driver is about to enter D0i3 - this reduces power consumption and latency for certain workloads, for example audio workloads that submit inference every 10 ms. The VPU needs non zero time to enter IDLE state after responding to D0i3 entry message. If the driver does not wait for the VPU to enter IDLE state it could cause warm boot failures. Signed-off-by: Andrzej Kacprowski <andrzej.kacprowski@linux.intel.com> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231028133415.1169975-12-stanislaw.gruszka@linux.intel.com
27 lines
1.1 KiB
C
27 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __IVPU_JSM_MSG_H__
|
|
#define __IVPU_JSM_MSG_H__
|
|
|
|
#include "vpu_jsm_api.h"
|
|
|
|
const char *ivpu_jsm_msg_type_to_str(enum vpu_ipc_msg_type type);
|
|
|
|
int ivpu_jsm_register_db(struct ivpu_device *vdev, u32 ctx_id, u32 db_id,
|
|
u64 jobq_base, u32 jobq_size);
|
|
int ivpu_jsm_unregister_db(struct ivpu_device *vdev, u32 db_id);
|
|
int ivpu_jsm_get_heartbeat(struct ivpu_device *vdev, u32 engine, u64 *heartbeat);
|
|
int ivpu_jsm_reset_engine(struct ivpu_device *vdev, u32 engine);
|
|
int ivpu_jsm_preempt_engine(struct ivpu_device *vdev, u32 engine, u32 preempt_id);
|
|
int ivpu_jsm_dyndbg_control(struct ivpu_device *vdev, char *command, size_t size);
|
|
int ivpu_jsm_trace_get_capability(struct ivpu_device *vdev, u32 *trace_destination_mask,
|
|
u64 *trace_hw_component_mask);
|
|
int ivpu_jsm_trace_set_config(struct ivpu_device *vdev, u32 trace_level, u32 trace_destination_mask,
|
|
u64 trace_hw_component_mask);
|
|
int ivpu_jsm_context_release(struct ivpu_device *vdev, u32 host_ssid);
|
|
int ivpu_jsm_pwr_d0i3_enter(struct ivpu_device *vdev);
|
|
#endif
|