Skip to content
Commit 83a42d79 authored by Andrzej Kacprowski's avatar Andrzej Kacprowski Committed by Greg Kroah-Hartman
Browse files

accel/ivpu/37xx: Fix interrupt_clear_with_0 WA initialization



[ Upstream commit 35c49cfc ]

Using PCI Device ID/Revision to initialize the interrupt_clear_with_0
workaround is problematic - there are many pre-production
steppings with different behavior, even with the same PCI ID/Revision

Instead of checking for PCI Device ID/Revision, check the VPU
buttress interrupt status register behavior - if this register
is not zero after writing 1s it means there register is RW
instead of RW1C and we need to enable the interrupt_clear_with_0
workaround.

Fixes: 7f34e01f ("accel/ivpu: Clear specific interrupt status bits on C0")
Signed-off-by: default avatarAndrzej Kacprowski <Andrzej.Kacprowski@intel.com>
Signed-off-by: default avatarJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: default avatarJeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://lore.kernel.org/all/20231204122331.40560-1-jacek.lawrynowicz@linux.intel.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0afcc629
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment