mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
ANDROID: KVM: arm64: iommu: No powered check in DABT handler
The IOMMU DABT handler currently checks if the device is considered powered by hyp before resolving the request. If the power tracking does not reflect reality, the IOMMU may trigger issues in the host but the incorrect state prevents it from diagnosing the issue. Drop the powered check from the generic IOMMU code. The host accessing the device's SFR means that it assumes it is powered, and individual drivers can choose to reject that DABT request. Bug: 224891559 Bug: 190463801 Signed-off-by: David Brazdil <dbrazdil@google.com> Change-Id: I1c132c4030a61a90be4675867c9658e3bc696118
This commit is contained in:
@@ -467,7 +467,8 @@ bool pkvm_iommu_host_dabt_handler(struct kvm_cpu_context *host_ctxt, u32 esr,
|
||||
if (pa < dev->pa || pa >= dev->pa + dev->size)
|
||||
continue;
|
||||
|
||||
if (!dev->powered || !dev->ops->host_dabt_handler ||
|
||||
/* No 'powered' check - the host assumes it is powered. */
|
||||
if (!dev->ops->host_dabt_handler ||
|
||||
!dev->ops->host_dabt_handler(dev, host_ctxt, esr, pa - dev->pa))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user