Skip to content

Commit bd08974

Browse files
Miao Zhonggregkh
Miao Zhong
authored andcommitted
iommu/arm-smmu-v3: sync the OVACKFLG to PRIQ consumer register
[ Upstream commit 0d535967ac658966c6ade8f82b5799092f7d5441 ] 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]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6d1659b commit bd08974

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: drivers/iommu/arm-smmu-v3.c

+1
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,7 @@ static irqreturn_t arm_smmu_priq_thread(int irq, void *dev)
12331233

12341234
/* Sync our overflow flag, as we believe we're up to speed */
12351235
q->cons = Q_OVF(q, q->prod) | Q_WRP(q, q->cons) | Q_IDX(q, q->cons);
1236+
writel(q->cons, q->cons_reg);
12361237
return IRQ_HANDLED;
12371238
}
12381239

0 commit comments

Comments
 (0)