Skip to content

Commit 0d53596

Browse files
Miao Zhongwildea01
authored andcommitted
iommu/arm-smmu-v3: sync the OVACKFLG to PRIQ consumer register
When PRI queue occurs overflow, driver should update the OVACKFLG to the PRIQ consumer register, otherwise subsequent PRI requests will not be processed. Cc: Will Deacon <[email protected]> Cc: Robin Murphy <[email protected]> Signed-off-by: Miao Zhong <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent d1e2022 commit 0d53596

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/arm-smmu-v3.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,7 @@ static irqreturn_t arm_smmu_priq_thread(int irq, void *dev)
13011301

13021302
/* Sync our overflow flag, as we believe we're up to speed */
13031303
q->cons = Q_OVF(q, q->prod) | Q_WRP(q, q->cons) | Q_IDX(q, q->cons);
1304+
writel(q->cons, q->cons_reg);
13041305
return IRQ_HANDLED;
13051306
}
13061307

0 commit comments

Comments
 (0)