Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10986750imu; Thu, 6 Dec 2018 09:41:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/Un/lMNKi1+7nY5mMavDn74Ne/AQWUcA8nqpV3HjFNJLcSt5KFUylL3w+FrZksYIa54hLQG X-Received: by 2002:a17:902:aa8c:: with SMTP id d12mr29535656plr.25.1544118113426; Thu, 06 Dec 2018 09:41:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544118113; cv=none; d=google.com; s=arc-20160816; b=ItLK3XJ6MTiZq8Ev+Bfy9Vy+1oqIep94St7Q7CD1egYyJZ1XZGbAdEVXHhc9lMFD7a gzVj72YXrKAtMTS0GM7DGYpKMp3/uxh+AmJ5aCtzsZqr/ACD658UwwRD77BEeWdME11e 1WQflEuMch+Gv6JqTfMlVxhL5FhdpXS2ZyoOdnAAJ6266wGVhH3mCmym3ERJKgLtjys9 rTtZqkMaRhJ72Cqx8intoMqwpPzOYpF18T8NA8vbc+CzpYWXOoxQEExrC/JPW+4wqaVN +QkZVkmlVQF0tKRDDraTWGD3iuv8lle3+CFFYHzJnLM9yyyG7u5WfbC5Fe4RJANiCWXk XIQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=WaDrescpp2b/3+tSNW/kz6W65BMzWL8BuJPcj9/Pwyg=; b=jNExlAAjMK3Cu3sVu3RhhxLftxfmiWpo0nEK9ypcbGXZKlTYdMeJ9QGOC1l/hWHunT m08bBRbID6krehdc8bQUgZDov/41Ymm1vsRz1nAMdMsLsi6+GycsdURTH7xgc/j6FTuU Y7iEp+BRhixla1riB33MzdoetbGI8piYU2iKIrTyt3vPoK3GdWNW5igRsPKJ7TRS0CQn FYbEaiAIvFoNZe/EF3hQ9C9NU3GVf47SkG5pJ/otUNzDIvMWsGoCh9MdC7Y7Fl9JKj/p 7E0vElweYUKf2GK+NLEMFnjZEuzbow3WGRfWta5twFdFHPEXxKhyXauhLOQLLE1eP5Fp +3vQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si704069pls.124.2018.12.06.09.41.32; Thu, 06 Dec 2018 09:41:53 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725944AbeLFRkr (ORCPT + 99 others); Thu, 6 Dec 2018 12:40:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbeLFRkq (ORCPT ); Thu, 6 Dec 2018 12:40:46 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2BF112D80D; Thu, 6 Dec 2018 17:40:46 +0000 (UTC) Received: from localhost (ovpn-200-34.brq.redhat.com [10.40.200.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE42051F09; Thu, 6 Dec 2018 17:40:28 +0000 (UTC) Date: Thu, 6 Dec 2018 18:40:27 +0100 From: Jesper Dangaard Brouer To: Christoph Hellwig Cc: iommu@lists.linux-foundation.org, Linus Torvalds , Tariq Toukan , Ilias Apalodimas , Toke =?UTF-8?B?SMO4aWxhbmQtSsO4?= =?UTF-8?B?cmdlbnNlbg==?= , Robin Murphy , linux-kernel@vger.kernel.org, brouer@redhat.com Subject: Re: [PATCH] dma-mapping: bypass indirect calls for dma-direct Message-ID: <20181206184027.291947c3@redhat.com> In-Reply-To: <20181206153720.10702-2-hch@lst.de> References: <20181206153720.10702-1-hch@lst.de> <20181206153720.10702-2-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 06 Dec 2018 17:40:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Dec 2018 07:37:20 -0800 Christoph Hellwig wrote: > Avoid expensive indirect calls in the fast path DMA mapping > operations by directly calling the dma_direct_* ops if we are using > the directly mapped DMA operations. > > Signed-off-by: Christoph Hellwig > --- > include/linux/dma-direct.h | 17 ----- > include/linux/dma-mapping.h | 138 +++++++++++++++++++++++++++++++----- > kernel/dma/direct.c | 13 ++-- > 3 files changed, 127 insertions(+), 41 deletions(-) Hi Christoph, Is this patch to be applied on top of the other (41) patches I just tested with my XDP forward workload? -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer