Skip to content

Commit 0c287c2

Browse files
jlawrynoStanislaw Gruszka
authored andcommitted
accel/ivpu: Simplify MMU SYNC command
CMD_SYNC does not need any args as we poll for completion anyway. Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231028155936.1183342-8-stanislaw.gruszka@linux.intel.com
1 parent 3bcc520 commit 0c287c2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/accel/ivpu/ivpu_mmu.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,7 @@ static int ivpu_mmu_cmdq_sync(struct ivpu_device *vdev)
500500
u64 val;
501501
int ret;
502502

503-
val = FIELD_PREP(IVPU_MMU_CMD_OPCODE, CMD_SYNC) |
504-
FIELD_PREP(IVPU_MMU_CMD_SYNC_0_CS, 0x2) |
505-
FIELD_PREP(IVPU_MMU_CMD_SYNC_0_MSH, 0x3) |
506-
FIELD_PREP(IVPU_MMU_CMD_SYNC_0_MSI_ATTR, 0xf);
503+
val = FIELD_PREP(IVPU_MMU_CMD_OPCODE, CMD_SYNC);
507504

508505
ret = ivpu_mmu_cmdq_cmd_write(vdev, "SYNC", val, 0);
509506
if (ret)

0 commit comments

Comments
 (0)