Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4067122yba; Tue, 9 Apr 2019 10:24:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyU7dBc731RPjkEin6r28rILni5GUwqGdgAkMtozx/yv+DK6yh4RYv+aqXDtXFPsfZudxJt X-Received: by 2002:a17:902:2862:: with SMTP id e89mr19782519plb.203.1554830664592; Tue, 09 Apr 2019 10:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554830664; cv=none; d=google.com; s=arc-20160816; b=xPyLbzCNNqP1ENn2Fmak9Ya6BtIH2GSOw0TOTPDPBVxrYxEwQ7e8QmOqJiq3j/lZGg YfZs6RUy7PFepsfCYWxtVcA/8Izp0vuBpjvB94fDRqpBPS1zozLdN4/+CGAiVY+WdrGe 7EU8MOTGYZzy8bUFeSw274aYbZ/BHNqTcMfBHPFKk8Ep96ZseEAFBnzMYgccd5CUj9AJ skhbvv/5yDAtzq64CqviTBUi0D8I3MRV4U5mwlvB8ELe6m8l0YrUId4kxLZ9b5NysvLt rsiuk2q3xqFuzyhOQ6muLPLLa3E3Erp43ziTDYuoS2uGM+J6PX4b66XsiS5moLqY/Soa YHlQ== 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=N7hKW4ZZvieeHGmypCaLHkQ46fiE0Vk9ahtGBB0a5Ik=; b=YcIGME7b4B6bHAkyRMwZ/m7YT+RySmfKnk3TPGUvx3qjBr2jrSDIqC2HilrjsfjoA9 d5IckYq1joCd4ARXS2kcT0oR/wNtUb9mlp4gqbYhd3/jAR9VY2D7cjtkg6hsVVye2j7t s0Irk7ceg/LEKeGXoO5+QD98/O8JCQb/1sF93Uk+aeRyLxOA/kElkm7zOnFMj6V4liFq EgPIxrP6j7gVfRrADIScDTCbM4deWesb0AwYu+1QvaT2K/gESz5PbMLZdKqhGbwScD75 Fs0lWthfhr9jqTTwlUqOmBzCjPgCsS0JqN08sz0LXEpxn6xeV89pfkG/PkmWAQ0ysjS7 Sqjg== 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 j64si6140370pgd.537.2019.04.09.10.24.08; Tue, 09 Apr 2019 10:24:24 -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; 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 S1726509AbfDIRXW (ORCPT + 99 others); Tue, 9 Apr 2019 13:23:22 -0400 Received: from verein.lst.de ([213.95.11.211]:51817 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfDIRXW (ORCPT ); Tue, 9 Apr 2019 13:23:22 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id A9F2B68B02; Tue, 9 Apr 2019 19:23:09 +0200 (CEST) Date: Tue, 9 Apr 2019 19:23:09 +0200 From: Christoph Hellwig To: Robin Murphy Cc: Christoph Hellwig , Joerg Roedel , Catalin Marinas , Will Deacon , Tom Lendacky , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/21] dma-iommu: move the arm64 wrappers to common code Message-ID: <20190409172309.GD14679@lst.de> References: <20190327080448.5500-1-hch@lst.de> <20190327080448.5500-8-hch@lst.de> <67573dd3-72c7-692d-bc1a-7edb49ff9551@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67573dd3-72c7-692d-bc1a-7edb49ff9551@arm.com> 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 Tue, Apr 09, 2019 at 04:07:02PM +0100, Robin Murphy wrote: >> -static inline int iommu_dma_init(void) >> +static inline void iommu_setup_dma_ops(struct device *dev, u64 dma_base, >> + u64 size, const struct iommu_ops *ops) >> { >> - return 0; >> } > > I don't think it makes sense to have a stub for that - AFAICS it should > only ever be called form arch code with an inherent "select IOMMU_DMA" > (much like the stuff which isn't stubbed currently). > > Otherwise, I'm about 97% sure the rest of the move looks OK - thanks for > splitting things up. arm64 only selects IOMMU_DMA if IOMMU_SUPPORT is selected, which can be disabled. So to keep some (unusual) arm64 configs compiling we'll need the stub..