Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751853AbbK1CJf (ORCPT ); Fri, 27 Nov 2015 21:09:35 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:43857 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbbK1CJc (ORCPT ); Fri, 27 Nov 2015 21:09:32 -0500 Subject: Re: [PATCH V5 RESEND 0/3] Add iommu support for hi6220 HiKey board To: Joerg Roedel References: <1447986309-47548-1-git-send-email-puck.chen@hisilicon.com> <20151127114920.GH24300@8bytes.org> CC: , , , , , , , , , , , , From: chenfeng Message-ID: <56590CC3.5050401@hisilicon.com> Date: Sat, 28 Nov 2015 10:09:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151127114920.GH24300@8bytes.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.142.192.172] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.56590CD0.0143,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: b931d60c3d7c1ef4ff056c15b2526704 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1068 Lines: 31 On 2015/11/27 19:49, Joerg Roedel wrote: > On Fri, Nov 20, 2015 at 10:25:06AM +0800, Chen Feng wrote: >> eg: >> struct iommu_domain *domain = iommu_domain_alloc(bus); >> iommu_attach_device(domain, dev); >> struct iova_domain *iovad = (struct iova_domain *)m_dev->archdata.iommu; >> struct iova * t_iova = alloc_iova(iovad, size, limit_pfn, align); >> iommu_map(domain, t_iova->pfn_lo << 12, phy_addr, size, port); > > Any reason the media subsystem should use the iommu-api directly, and > not the dma-api? You can make your iommu available by adapting the > common dma-iommu implementation from Robin Murphy to your iommu to make > it usable through the dma-api. > ok, I will change this to dma-api. Since v1 version, the dma-api was not ok for arm64. I will do this with dma-api function. > > Joerg > > > . > -- 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/