accel/ivpu: Force snooping for MMU writes
authorWachowski, Karol <karol.wachowski@intel.com>
Fri, 26 Jan 2024 12:27:58 +0000 (13:27 +0100)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Tue, 6 Feb 2024 12:36:32 +0000 (13:36 +0100)
commitc9da9a1f17bf4fa96b115950fd389c917b583c1c
treecfd4307e499c7c2350d686a080ce9ceb4328922a
parent34e659f34a7559ecfd9c1f5b24d4c291f3f54711
accel/ivpu: Force snooping for MMU writes

Set AW_SNOOP_OVERRIDE bit in VPU_37/40XX_HOST_IF_TCU_PTW_OVERRIDES
to force snooping for MMU write accesses (setting event queue events).

MMU event queue buffer is the only buffer written by MMU and
mapped as write-back which break cache coherency. Force write
transactions to be snooped solving the problem.

Signed-off-by: Wachowski, Karol <karol.wachowski@intel.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240126122804.2169129-2-jacek.lawrynowicz@linux.intel.com
drivers/accel/ivpu/ivpu_hw_37xx.c
drivers/accel/ivpu/ivpu_hw_40xx.c
drivers/accel/ivpu/ivpu_mmu.c