Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp137833imu; Thu, 6 Dec 2018 17:24:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/UsU3sHFvYrJb4yFfbHRWiGwj2KuRv8MxUnpVpVTbTfmR82i1H6ctq4z1P5bpRZD8mxOfMR X-Received: by 2002:a63:86c2:: with SMTP id x185mr215228pgd.230.1544145851371; Thu, 06 Dec 2018 17:24:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544145851; cv=none; d=google.com; s=arc-20160816; b=rRqE7v7oZS5pLECwEcyfL339gniHcC++7oOi4CxJ0Hek8yo9WhypSWrGqPF8wuoGHR EG/jGEIqx20fpkCEL0VdDJwMDQPuWk8wg0TDkgTvUjOjK84A49vJeyXDp79FwdBtO4nl dv1bC4AXaQx2aeNe00dTmfee1a5Mrmnk/aE0I6eIvJf8YelwH/hEv5zbmbeXon3xaRKK h2zHynnqtGjGfNURuBplqEskEez5yzM5W4WdBFzByNicnLPgM/+oH0cI/HstUYAEUEao uYeZrd5VLGIOsCqzhLbbpf4gWFHTWFi3o7BaXSv+dAVCRBAx9+FJ/fxnlDvja1jLZEZq sDTg== 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; bh=BDzL0B/k9KoFeWOQ+LrK4How9Vluy176y/ggcpWs/LM=; b=wuEG24R7FdN2AvHyjosShFpQ9Mm2Kv3k31rfmpctVL3+4tkwdoomXzo9c7rtEosltV 4ynoRc1z37JCbOnytdwdLJUXuaundXo7oCiQ9VKs4mBeISNNmKNg/IbqKlRn9hbuVCzR UOQJLXSBhBKtg7rAI9SlL+gFXyCbKU//Y5I8U3W0WBDdfOsCN/8Xr3vHteNjOknZhUQu Vgg0YzjY8mf1pPxvmbiSetsbXodRiFCrvVuK6z0B1NebPot3+mnlJJN14I4aAKHefFGf J4l4avyvbtXf0CA+6XI4uFmE10Xr1mVtaWPOXQ7UsboUCUzceKYNRFxjVN9qVkvcsFzt eMxA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si1549306pld.331.2018.12.06.17.23.52; Thu, 06 Dec 2018 17:24:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726027AbeLGBVn (ORCPT + 99 others); Thu, 6 Dec 2018 20:21:43 -0500 Received: from verein.lst.de ([213.95.11.211]:60695 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbeLGBVn (ORCPT ); Thu, 6 Dec 2018 20:21:43 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 1B6EB68AA6; Fri, 7 Dec 2018 02:21:42 +0100 (CET) Date: Fri, 7 Dec 2018 02:21:42 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Christoph Hellwig , Linus Torvalds , iommu@lists.linux-foundation.org, brouer@redhat.com, tariqt@mellanox.com, ilias.apalodimas@linaro.org, toke@toke.dk, Linux List Kernel Mailing Subject: Re: [RFC] avoid indirect calls for DMA direct mappings Message-ID: <20181207012141.GA4256@lst.de> References: <20181206153720.10702-1-hch@lst.de> <20181206184330.GB30039@lst.de> <173bfba7-033d-93c4-6ef1-48c9e39c9efc@arm.com> <20181206200006.GA31548@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2018 at 08:24:38PM +0000, Robin Murphy wrote: > On 06/12/2018 20:00, Christoph Hellwig wrote: >> On Thu, Dec 06, 2018 at 06:54:17PM +0000, Robin Murphy wrote: >>> I'm pretty sure we used to assign dummy_dma_ops explicitly to devices at >>> the point we detected the ACPI properties are wrong - that shouldn't be too >>> much of a headache to go back to. >> >> Ok. I've cooked up a patch to use NULL as the go direct marker. >> This cleans up a few things nicely, but also means we now need to >> do the bypass scheme for all ops, not just the fast path. But we >> probably should just move the slow path ops out of line anyway, >> so I'm not worried about it. This has survived some very basic >> testing on x86, and really needs to be cleaned up and split into >> multiple patches.. > > I've also just finished hacking something up to keep the arm64 status quo - > I'll need to actually test it tomorrow, but the overall diff looks like the > below. Nice. I created a branch that picked up your bits and also the ideas from Linus, and the result looks reall nice. I'll still need a signoff for your bits, though. Jesper, can you give this a spin if it changes the number even further? git://git.infradead.org/users/hch/misc.git dma-direct-calls.2 http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-direct-calls.2