From: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
To: Jeffrey Hugo <quic_jhugo@quicinc.com>, dri-devel@lists.freedesktop.org
Cc: oded.gabbay@gmail.com, Andrzej Kacprowski <Andrzej.Kacprowski@intel.com>
Subject: Re: [PATCH 17/29] accel/ivpu: Add test_mode bit to force turbo
Date: Mon, 30 Sep 2024 13:01:32 +0200 [thread overview]
Message-ID: <d6152b59-2566-4f3c-8d4b-a72e7cccfafc@linux.intel.com> (raw)
In-Reply-To: <94b9a0e4-7cbb-31e0-7973-92242ee9a4d5@quicinc.com>
On 9/27/2024 11:25 PM, Jeffrey Hugo wrote:
> On 9/24/2024 2:17 AM, Jacek Lawrynowicz wrote:
>> From: Andrzej Kacprowski <Andrzej.Kacprowski@intel.com>
>>
>> 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>
>> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
>> ---
>> drivers/accel/ivpu/ivpu_drv.h | 1 +
>> drivers/accel/ivpu/ivpu_job.c | 5 +++++
>> 2 files changed, 6 insertions(+)
>>
>> diff --git a/drivers/accel/ivpu/ivpu_drv.h b/drivers/accel/ivpu/ivpu_drv.h
>> index 9acef14deab57..151ab9f2ddc9b 100644
>> --- a/drivers/accel/ivpu/ivpu_drv.h
>> +++ b/drivers/accel/ivpu/ivpu_drv.h
>> @@ -197,6 +197,7 @@ extern bool ivpu_force_snoop;
>> #define IVPU_TEST_MODE_PREEMPTION_DISABLE BIT(6)
>> #define IVPU_TEST_MODE_HWS_EXTRA_EVENTS BIT(7)
>> #define IVPU_TEST_MODE_DISABLE_TIMEOUTS BIT(8)
>> +#define IVPU_TEST_MODE_TURBO BIT(9)
>> extern int ivpu_test_mode;
>> struct ivpu_file_priv *ivpu_file_priv_get(struct ivpu_file_priv *file_priv);
>> diff --git a/drivers/accel/ivpu/ivpu_job.c b/drivers/accel/ivpu/ivpu_job.c
>> index 8798fb2046abc..dc5cf7ded9439 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;
>
> I don't see VPU_JOB_QUEUE_FLAGS_TURBO_MODE defined. What am I missing?
>
VPU_JOB_QUEUE_FLAGS_TURBO_MODE is defined in FW headers.
It was added to the FW years ago and now we've started using it in the Linux driver.
>> + }
>> +
>> wmb(); /* Flush WC buffer for jobq->header */
>> if (vdev->fw->sched_mode == VPU_SCHEDULING_MODE_HW) {
>
next prev parent reply other threads:[~2024-09-30 11:01 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-24 8:17 [PATCH 00/29] accel/ivpu: Fixes for 6.12-rc1 Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 01/29] accel/ivpu: Update VPU FW API headers Jacek Lawrynowicz
2024-09-27 20:24 ` Jeffrey Hugo
2024-09-30 10:03 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 02/29] accel/ivpu: Rename ivpu_log_level to fw_log_level Jacek Lawrynowicz
2024-09-27 20:25 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 03/29] accel/ivpu: Reset fw log on cold boot Jacek Lawrynowicz
2024-09-27 20:27 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 04/29] accel/ivpu: Refactor FW log Jacek Lawrynowicz
2024-09-27 20:30 ` Jeffrey Hugo
2024-09-30 19:25 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 05/29] accel/ivpu: Add coredump support Jacek Lawrynowicz
2024-09-27 20:36 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 06/29] accel/ivpu: Fix JSM state dump message warnings Jacek Lawrynowicz
2024-09-27 20:44 ` Jeffrey Hugo
2024-09-30 17:22 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 07/29] accel/ivpu: Set 500 ns delay between power island TRICKLE and ENABLE Jacek Lawrynowicz
2024-09-27 20:47 ` Jeffrey Hugo
2024-09-30 17:19 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 08/29] accel/ivpu: Turn on autosuspend on Simics Jacek Lawrynowicz
2024-09-27 20:49 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 09/29] accel/ivpu: Add FW version debugfs entry Jacek Lawrynowicz
2024-09-27 20:55 ` Jeffrey Hugo
2024-09-30 13:04 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 10/29] accel/ivpu: Stop using hardcoded DRIVER_DATE Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 11/29] accel/ivpu: Remove 1-tile power up Simics workaround Jacek Lawrynowicz
2024-09-27 21:07 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 12/29] accel/ivpu: Allow reading dvfs_mode debugfs file Jacek Lawrynowicz
2024-09-27 21:09 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 13/29] accel/ivpu: Add one jiffy to bo_wait_ioctl timeout value Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 14/29] accel/ivpu: Add auto selection logic for job scheduler Jacek Lawrynowicz
2024-09-27 21:21 ` Jeffrey Hugo
2024-09-30 19:37 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 15/29] accel/ivpu: Print JSM message result in case of error Jacek Lawrynowicz
2024-09-27 21:21 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 16/29] accel/ivpu: Make DB_ID and JOB_ID allocations incremental Jacek Lawrynowicz
2024-09-27 21:23 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 17/29] accel/ivpu: Add test_mode bit to force turbo Jacek Lawrynowicz
2024-09-27 21:25 ` Jeffrey Hugo
2024-09-30 11:01 ` Jacek Lawrynowicz [this message]
2024-09-30 13:00 ` Jacek Lawrynowicz
2024-09-30 16:04 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 18/29] accel/ivpu: Remove skip of clock own resource ack on Simics Jacek Lawrynowicz
2024-09-27 21:26 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 19/29] accel/ivpu: Fix reset_engine debugfs file logic Jacek Lawrynowicz
2024-09-27 21:27 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 20/29] accel/ivpu: Prevent recovery invocation during probe and resume Jacek Lawrynowicz
2024-09-27 21:28 ` Jeffrey Hugo
2024-09-30 19:45 ` Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 21/29] accel/ivpu: Refactor failure diagnostics during boot Jacek Lawrynowicz
2024-09-27 21:29 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 22/29] accel/ivpu: Remove invalid warnings Jacek Lawrynowicz
2024-09-27 21:30 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 23/29] accel/ivpu: Do not fail on cmdq if failed to allocate preemption buffers Jacek Lawrynowicz
2024-09-27 21:31 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 24/29] accel/ivpu: Use whole user and shave ranges for " Jacek Lawrynowicz
2024-09-27 21:32 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 25/29] accel/ivpu: Increase MS info buffer size Jacek Lawrynowicz
2024-09-27 21:32 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 26/29] accel/ivpu: Fix ivpu_jsm_dyndbg_control() Jacek Lawrynowicz
2024-09-27 21:33 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 27/29] accel/ivpu: Remove HWS_EXTRA_EVENTS from test modes Jacek Lawrynowicz
2024-09-27 21:34 ` Jeffrey Hugo
2024-09-24 8:17 ` [PATCH 28/29] accel/ivpu: Add tracing for IPC/PM/JOB Jacek Lawrynowicz
2024-09-24 8:17 ` [PATCH 29/29] accel/ivpu: Fix typos in ivpu_pm.c Jacek Lawrynowicz
2024-09-27 21:36 ` Jeffrey Hugo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d6152b59-2566-4f3c-8d4b-a72e7cccfafc@linux.intel.com \
--to=jacek.lawrynowicz@linux.intel.com \
--cc=Andrzej.Kacprowski@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=oded.gabbay@gmail.com \
--cc=quic_jhugo@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox