Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp863000ybi; Fri, 31 May 2019 09:57:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHZrd81xtbHhNonsuTe3IqRysJ6J/SttJUqYHTqd0epc30gWQxF32l0+kGq46/3r0XiGtn X-Received: by 2002:a63:4f16:: with SMTP id d22mr10596466pgb.148.1559321876198; Fri, 31 May 2019 09:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559321876; cv=none; d=google.com; s=arc-20160816; b=Qs7mtB0slbR9SxbG//PVI+dbkePor4G9J2qXaDzQOuy1oPIzXh40XnMrj5Iam7Tb1/ 3HdtHpINf9Mj4UFQUoMr87QmDnC01CtGKEmouHT5fyd7XU2CaX2lHnJgLQiF/ay1uekH 2AgaS6s+MYAOSwbIAG5cDiqXcwz0lp69HPSX2rxYwgiZ7FL0Q8SxrlNr0e1/v9jIOXmV HbUVbRJbotMv7gFpRWxPC90NM3iyauojJ2gdLPPRP+UbfWWb9a6Ep4zPOqIPQDRYmJJU KzMRagpdLYLTAP40idApTj+Z79vywkmKhD5Sp3BHo117OIq+5BMeRg0s2hm2xU0UEVFc 2TpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=De7Bses8KtQ4UCCGrlZlsMVjWfSmMqmTDqL2Xo4mbUI=; b=Z4IyoT30FRf9p9GdcjIR1GZnxXLyoYY0mGs1lX/bzcU5VHinPeaDt4Di2hG+IQTLHG rWMmIycBjlZ/Yhyrd3lHC704twnMKcbLp96sCb4Pv8gQff2wdcNSNdFc15N8PIpW0Pkc ySfQvGKQFZ+2ULiMwQxVqMIx2rD0/drPIcdu8HFA+ERpbxkSitiZTXWaKdjr0QKmsWlx 78GhdrA4cqoMzkclfVtEilfSuOCjG+uE/I9PuzFL0LAzWF80tWDkYnI7KHGiUE7uVx3p khQAZmOfMR7ioZbHzTP6i5SW/wXcUxcnrT4QZpLE4xU2NzBIJ86vIesrKC0Wro+lKCuX dSZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cS9UwfMY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si6996887pgx.477.2019.05.31.09.57.39; Fri, 31 May 2019 09:57:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cS9UwfMY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726980AbfEaQzb (ORCPT + 99 others); Fri, 31 May 2019 12:55:31 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52010 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfEaQzb (ORCPT ); Fri, 31 May 2019 12:55:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=De7Bses8KtQ4UCCGrlZlsMVjWfSmMqmTDqL2Xo4mbUI=; b=cS9UwfMYzYIoWV6P1j1LQXz3b MCMYRFGHasjGiyO2sMvplAxpyv1Cx0AOBN9+a+E9Hc33G4PV+vRZB9F2/UeOG1S5vzebYHfcaR3f5 GCk4OpCMaQxHCIqYJWn7+831dtpCsw/e0SGg9Ucy42YB+tn6FXPFQkZznTxGDqJ82/hBOftG6BslA UW0L5ed7oyvE4/w0R7bbrOO84IME9uy7Heim/UfUmwbJbsOFbYPbDsSSdCfpj323dTq8r5GEWSnOX lwE0YPZnrupOzdNzMhTgECxLZa532EvDTK9V8UCG/yJjnVfkaib8B9Y3v+9WvLpU53kSe0Mv0Ar9G I+MSsvqNQ==; 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 Cc: Christoph Hellwig , "netdev@vger.kernel.org" , Madalin-cristian Bucur , Roy Pledge , Camelia Alexandra Groza , Leo Li , "linux-kernel@vger.kernel.org" , "jocke@infinera.com" , "iommu@lists.linux-foundation.org" , "linuxppc-dev@lists.ozlabs.org" , "davem@davemloft.net" , "linux-arm-kernel@lists.infradead.org" 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.