summaryrefslogtreecommitdiffstats
path: root/drivers/accel/ivpu/ivpu_job.c
diff options
context:
space:
mode:
authorAndrzej Kacprowski <Andrzej.Kacprowski@intel.com>2024-09-30 21:53:10 +0200
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>2024-10-11 12:44:39 +0200
commit7459211aa6352c219169c6bc9d1b0caf24e1ffd2 (patch)
tree52d1f4be73adeaa06a4825cd29c9e76d224aa95d /drivers/accel/ivpu/ivpu_job.c
parentaccel/ivpu: Make DB_ID and JOB_ID allocations incremental (diff)
downloadlinux-7459211aa6352c219169c6bc9d1b0caf24e1ffd2.tar.xz
linux-7459211aa6352c219169c6bc9d1b0caf24e1ffd2.zip
accel/ivpu: Add test_mode bit to force turbo
Add new test_mode BIT(9) that forces firmware to enable turbo burst mode. Signed-off-by: Andrzej Kacprowski <Andrzej.Kacprowski@intel.com> Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240930195322.461209-20-jacek.lawrynowicz@linux.intel.com Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/accel/ivpu/ivpu_job.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_job.c b/drivers/accel/ivpu/ivpu_job.c
index 8798fb2046ab..dc5cf7ded943 100644
--- a/drivers/accel/ivpu/ivpu_job.c
+++ b/drivers/accel/ivpu/ivpu_job.c
@@ -202,6 +202,11 @@ ivpu_cmdq_init(struct ivpu_file_priv *file_priv, struct ivpu_cmdq *cmdq, u16 eng
jobq_header->engine_idx = engine;
jobq_header->head = 0;
jobq_header->tail = 0;
+ if (ivpu_test_mode & IVPU_TEST_MODE_TURBO) {
+ ivpu_dbg(vdev, JOB, "Turbo mode enabled");
+ jobq_header->flags = VPU_JOB_QUEUE_FLAGS_TURBO_MODE;
+ }
+
wmb(); /* Flush WC buffer for jobq->header */
if (vdev->fw->sched_mode == VPU_SCHEDULING_MODE_HW) {