[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1449199466-6081-7-git-send-email-annie.wang@amd.com>
Date: Fri, 4 Dec 2015 11:24:23 +0800
From: Wang Hongcheng <annie.wang@....com>
To: Vinod Koul <vinod.koul@...el.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Joerg Roedel <joro@...tes.org>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>
CC: <linux-acpi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-serial@...r.kernel.org>, <dmaengine@...r.kernel.org>,
<iommu@...ts.linux-foundation.org>, Borislav Petkov <bp@...en8.de>,
Huang Rui <ray.huang@....com>,
Wan Zongshun <vincent.wan@....com>, Ken Xue <ken.xue@....com>,
Tony Li <tony.li@....com>, Wang Hongcheng <annie.wang@....com>,
Wan Zongshun <Vincent.Wan@....com>
Subject: [PATCH 6/9] dmaengine:pl330: set segment_boundary_mask = 0cffffffff
Because amd iommu and software iommu need this mask.For example,
if we use software iommu without this mask, we will
get 'Out of SW-IOMMU space' error, when calling swiotlb_map_page
function.
Signed-off-by: Wan Zongshun <Vincent.Wan@....com>
Signed-off-by: Wang Hongcheng <annie.wang@....com>
---
drivers/dma/pl330.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 9d7af0d..fb46fdf 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2966,6 +2966,10 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)
if (ret)
dev_err(&adev->dev, "unable to set the seg size\n");
+ dev_info(&adev->dev, "set the seg boundary\n");
+ ret = dma_set_seg_boundary(&adev->dev, 0xffffffff);
+ if (ret)
+ dev_err(&adev->dev, "unable to set the seg boundary\n");
dev_info(&adev->dev,
"Loaded driver for PL330 DMAC-%x\n", adev->periphid);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists