Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4161455imu; Mon, 10 Dec 2018 14:16:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/Whj/LtvMq3cSFG5aRGoYh7Wex/wf9uPjjXXm2vOtZJzGYC1X5ofVtjW4o2oJxC+THbSUPG X-Received: by 2002:a63:314c:: with SMTP id x73mr12531653pgx.323.1544480187350; Mon, 10 Dec 2018 14:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544480187; cv=none; d=google.com; s=arc-20160816; b=AJL8ErIlg1ZYyBby0vqUOvFudvd9fxu9L5vYz7Qqy7ElQ+GPKhaZ9+bYThHty00UM0 0LN3AVX/O6iaaoUP6WN9Xh8dfoUFUepXRQuw0eet1b0In8TfwYS6f1UwuW3M+9YZENrm 8KQsivZC/J/WvuNlV7ckuee6Ozk42kiYLo+9lVECOYBXURlgo74mwIhoQ8qT4dstqbwT XFSU8AMeUnXuKwTWX2gUmCFRZqFrTf5g4Svskm65BjsIl/paWih3w6WyBmBu6OOYpp0V lMotUgvQYT/zua9HUujPNaSstMtVmOK1BPwvvFd9b/ePs2gIZF7I0xuUmgiM5C8hVbzM 2eTw== 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=RaYP7nRkvYDiN4CWdiPiyt4IL1pfCJ15T+ByRnIPDgI=; b=SHU+TAlmcSk2FJ/8rq1phSLwwOtTHResvsxDhZ7fWF+wiKpukQpCsrY0dmO8Brxv1D 6u5f9hfOv96+i1oLyQPjhW4s8JgRzir55huNz2aSIjAhqMaxm9AatDU3HJ2ZpVHcFSgR Q0GmZuYhSgtfxEV8qRyE/Bd5UZ4zhamw1E+/TQ8cLa62NTm46ocpFabLxnkG3BncKNOl FGY49YLbhQnzjKEhQb6mlJP1YFG32o3+7CKhavsEP0df/36rhfxVwc8OD7oELZDOmy6w lgMq2uFZiKN0za6SfHR4tF0gxI3tc5EvPlqACj/dY/YGdusel6lLwV8piJWLOERLUD8g xSvA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u25si10682856pgm.532.2018.12.10.14.16.12; Mon, 10 Dec 2018 14:16:27 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729055AbeLJVvO (ORCPT + 99 others); Mon, 10 Dec 2018 16:51:14 -0500 Received: from mga03.intel.com ([134.134.136.65]:51797 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbeLJVvO (ORCPT ); Mon, 10 Dec 2018 16:51:14 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2018 13:51:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,339,1539673200"; d="scan'208";a="124705909" Received: from agluck-desk.sc.intel.com (HELO agluck-desk) ([10.3.52.160]) by fmsmga002.fm.intel.com with ESMTP; 10 Dec 2018 13:51:13 -0800 Date: Mon, 10 Dec 2018 13:51:13 -0800 From: "Luck, Tony" To: Christoph Hellwig Cc: iommu@lists.linux-foundation.org, Linus Torvalds , Jesper Dangaard Brouer , Tariq Toukan , Ilias Apalodimas , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , Robin Murphy , Konrad Rzeszutek Wilk , Fenghua Yu , Marek Szyprowski , Keith Busch , Jonathan Derrick , linux-pci@vger.kernel.org, linux-ia64@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] avoid indirect calls for DMA direct mappings v2 Message-ID: <20181210215113.GA22180@agluck-desk> References: <20181207190720.18517-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181207190720.18517-1-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 07, 2018 at 11:07:05AM -0800, Christoph Hellwig wrote: > This works is based on the dma-mapping tree, so you probably want to > want this git tree for testing: > > git://git.infradead.org/users/hch/misc.git dma-direct-calls.2 Pulled this tree. Got HEAD 33b9fc015171 ("dma-mapping: bypass indirect calls for dma-direct") But the ia64 build fails with: arch/ia64/mm/init.c:75:21: warning: 'enum dma_data_direction' declared inside parameter list [enabled by default] arch/ia64/mm/init.c:75:21: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] arch/ia64/mm/init.c:75:40: error: parameter 4 ('dir') has incomplete type arch/ia64/mm/init.c:74:6: error: function declaration isn't a prototype [-Werror=strict-prototypes] arch/ia64/mm/init.c: In function 'arch_sync_dma_for_cpu': arch/ia64/mm/init.c:77:2: error: implicit declaration of function '__phys_to_pfn' [-Werror=implicit-function-declaration] -Tony