mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
99fcc90270
This is an automatically generated commit. When doing `git bisect`, consider `git bisect --skip`. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
27 lines
931 B
Diff
27 lines
931 B
Diff
From 384e2ca3c049fe36f4e679fc76fcc8dfdc9297f9 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Wed, 27 Apr 2022 19:06:28 -0500
|
|
Subject: [PATCH 051/117] iommu/sun50i: Ensure bypass is disabled
|
|
|
|
The H6 variant of the hardware disables bypass by default. The D1
|
|
variant of the hardware enables bypass for all masters by default.
|
|
|
|
Since the driver expects bypass to be disabled, ensure that is the case.
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
drivers/iommu/sun50i-iommu.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/drivers/iommu/sun50i-iommu.c
|
|
+++ b/drivers/iommu/sun50i-iommu.c
|
|
@@ -445,6 +445,8 @@ static int sun50i_iommu_enable(struct su
|
|
|
|
spin_lock_irqsave(&iommu->iommu_lock, flags);
|
|
|
|
+ iommu_write(iommu, IOMMU_BYPASS_REG, 0);
|
|
+
|
|
iommu_write(iommu, IOMMU_TTB_REG, sun50i_domain->dt_dma);
|
|
iommu_write(iommu, IOMMU_TLB_PREFETCH_REG,
|
|
IOMMU_TLB_PREFETCH_MASTER_ENABLE(0) |
|