accel/ivpu: Clear specific interrupt status bits on C0
authorKarol Wachowski <karol.wachowski@linux.intel.com>
Mon, 3 Jul 2023 08:07:25 +0000 (10:07 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Wed, 5 Jul 2023 10:29:39 +0000 (12:29 +0200)
commit7f34e01f77f811ecb2ef83e60301b38cf89af466
tree74f08b49189f21b7085ead88489136e24cfc7412
parent020b527b556a35cf636015c1c3cbdfe7c7acd5f0
accel/ivpu: Clear specific interrupt status bits on C0

MTL C0 stepping fixed issue related to butrress interrupt status clearing,
to clear an interrupt status it is required to write 1 to specific
status bit field. This allows to execute read, modify and write routine.

Writing 0 will not clear the interrupt and will cause interrupt storm.

Fixes: 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")
Cc: stable@vger.kernel.org # 6.3.x
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230703080725.2065635-2-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_drv.h
drivers/accel/ivpu/ivpu_hw_mtl.c