From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB980C04AB6 for ; Fri, 31 May 2019 16:55:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5E7926C9B for ; Fri, 31 May 2019 16:55:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bk2fdmi+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5E7926C9B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=49F29uUN2xrOGSxAyiBc5BgvMcszs/mJiYmvyblMhvk=; b=bk2fdmi+EvdE/Z naV8KhH46eGJaNnZtRCclIxveFrgCrtngQ9Rdz94sTpxdhAyveDyWsd5ezg+CSNdh9Uto8DHOKRtB TGEly8mN9zPEqgT6HSmqW4apt10fZagaT5ODHdc84jNP9mf3ZuRKufWkv1elZZBJQ+7fWGj5kC2Xj q4Fa75JdDKu8hS0JB2ntMFAG2yhWNGr2OjKKip3M7PhMktSRgzUs0rF2C6Y+LBUV9FHl+JSVHm7bY aeavEqqbu5jW1oEof0q1rs1pgfDq8RS1uDR4dbwVgJI1HqpneRF6NnNRLjdaHd/ovlONvvWd/TaId suJuW4MNNJEAhmVCb6nA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hWkoW-0005Wg-52; Fri, 31 May 2019 16:55:32 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hWkoU-0005W4-Et; Fri, 31 May 2019 16:55:30 +0000 Date: Fri, 31 May 2019 09:55:30 -0700 From: Christoph Hellwig To: Laurentiu Tudor Subject: Re: [PATCH v3 5/6] dpaa_eth: fix iova handling for contiguous frames Message-ID: <20190531165530.GA16487@infradead.org> References: <20190530141951.6704-1-laurentiu.tudor@nxp.com> <20190530141951.6704-6-laurentiu.tudor@nxp.com> <20190531163229.GA8708@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Madalin-cristian Bucur , "netdev@vger.kernel.org" , Roy Pledge , "linux-kernel@vger.kernel.org" , Leo Li , Christoph Hellwig , "jocke@infinera.com" , "iommu@lists.linux-foundation.org" , Camelia Alexandra Groza , "linuxppc-dev@lists.ozlabs.org" , "davem@davemloft.net" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 31, 2019 at 04:53:16PM +0000, Laurentiu Tudor wrote: > Unfortunately due to our hardware particularities we do not have alternatives. This is also the case for our next generation of ethernet drivers [1]. I'll let my colleagues that work on the ethernet drivers to comment more on this. Then you need to enhance the DMA API to support your use case instead of using an API only supported for two specific IOMMU implementations. Remember in Linux you can should improve core code and not hack around it in crappy ways making lots of assumptions in your drivers. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel