Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753018AbbLDO7a (ORCPT ); Fri, 4 Dec 2015 09:59:30 -0500 Received: from eu-smtp-delivery-143.mimecast.com ([146.101.78.143]:26649 "EHLO eu-smtp-delivery-143.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627AbbLDO72 convert rfc822-to-8bit (ORCPT ); Fri, 4 Dec 2015 09:59:28 -0500 Subject: Re: [PATCH 6/9] dmaengine:pl330: set segment_boundary_mask = 0cffffffff To: Wang Hongcheng , Vinod Koul , Mika Westerberg , Joerg Roedel , Greg Kroah-Hartman , "Rafael J. Wysocki" References: <1449199466-6081-1-git-send-email-annie.wang@amd.com> <1449199466-6081-7-git-send-email-annie.wang@amd.com> Cc: Tony Li , Wan Zongshun , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, Huang Rui , Borislav Petkov , linux-serial@vger.kernel.org, dmaengine@vger.kernel.org, Ken Xue From: Robin Murphy Message-ID: <5661AA3F.6080101@arm.com> Date: Fri, 4 Dec 2015 14:59:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1449199466-6081-7-git-send-email-annie.wang@amd.com> X-OriginalArrivalTime: 04 Dec 2015 14:59:22.0771 (UTC) FILETIME=[5C40A630:01D12EA4] X-MC-Unique: 7bVRaRyqTuqdub_8OCqlag-1 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1602 Lines: 44 On 04/12/15 03:24, Wang Hongcheng wrote: > 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. The commit title doesn't match the code, but either way this patch should now be unnecessary: 002edb6f6f2a ("dma-mapping: tidy up dma_parms default handling") resolves the problem at its source, and is already in 4.4-rc1. (Incidentally, it was specifically the same PL330/SWIOTLB combination that led to that patch in the first place) Robin. > Signed-off-by: Wan Zongshun > Signed-off-by: Wang Hongcheng > --- > 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); > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/