Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp676213imj; Wed, 13 Feb 2019 15:31:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IZK7HOygSMSL4vTIAks20BoPqUxeISkW8Q2HJULSzI6F/E2IUoZmW/ZDZbhOybqbVK7Yltk X-Received: by 2002:a65:438b:: with SMTP id m11mr705420pgp.65.1550100660155; Wed, 13 Feb 2019 15:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550100660; cv=none; d=google.com; s=arc-20160816; b=w40/U/IYDt2XCYmv3SCKaBbj1Yghkr5LJ4M6lFQdynYpBQjrnRfLWLelQ8q4UDL+4X sM7BPQAsgXL1cZAUXu6DE8QJyxEt5Q10dUBP8gUpHeTFp/1Ka51qGt9VR+4M3RAYjoJz 8o2N3nKWWu7FH0Tk1gVq+2pz0NVMfb56mFWji3lEBpwbGDTv95jd4whD+q0/IMf5GGIS 1r7FfWZ58agoUC7MdhCVxakCJ55EiOUIHXVKpUlhx+OFCllXhoo8HfZzCDzMP2htAE0S 7IJrUxASM+uifood8tsvmMFQDipxDskAUdWWGkBLNqiKEp7ajH8xXudGeqy6TGh4XEQz +pbg== 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=AfIcGFofdejhmgDUUi1hcObPQV0NQX/3j5drOUTft2U=; b=y3XGqoEQ2kdsqwEohit4C8Bh+Ksh+hK9+x9c1O0NBgjmaXj84bIRekARswWpafbe/T CiHKWp3oOa5NFzQ9CLAHFBinf+8rzXbWKRM87ojk2YsfA0hGeAluGwhK2UxzsgiptUSF 2RvJs+8h6B25lfXEI/SEF5bYhjospX47Wcdo1LvKqgtR3mWUr6RZ458LqH1OZ3oObGSK NmTqB0r9GkSDu0jjre5FdcGHSCuzLcaV3JoW9I6imEuKOJea+fpiqlf9TsMnb8X0s7KG kIMZJpHkTeX8JVUh/F7nUppkOVkzs6H0HyDPh8R8+N3YpU9Ce0ME7j6qSd2UJ2QYeGYx 2sqw== 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 35si627926pgn.278.2019.02.13.15.30.44; Wed, 13 Feb 2019 15:31:00 -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 S2390741AbfBMSYi (ORCPT + 99 others); Wed, 13 Feb 2019 13:24:38 -0500 Received: from verein.lst.de ([213.95.11.211]:44559 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbfBMSYh (ORCPT ); Wed, 13 Feb 2019 13:24:37 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 76AFD68C8E; Wed, 13 Feb 2019 19:24:35 +0100 (CET) Date: Wed, 13 Feb 2019 19:24:35 +0100 From: Christoph Hellwig To: Rob Herring Cc: Christoph Hellwig , Linux IOMMU , Greg Kroah-Hartman , Lee Jones , x86@kernel.org, arcml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-mips@vger.kernel.org, linuxppc-dev , linux-riscv@lists.infradead.org, SH-Linux , linux-xtensa@linux-xtensa.org, devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 06/12] dma-mapping: improve selection of dma_declare_coherent availability Message-ID: <20190213182435.GA19906@lst.de> References: <20190211133554.30055-1-hch@lst.de> <20190211133554.30055-7-hch@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 Tue, Feb 12, 2019 at 02:40:23PM -0600, Rob Herring wrote: > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > > index 3607fd2810e4..f8c66a9472a4 100644 > > --- a/drivers/of/Kconfig > > +++ b/drivers/of/Kconfig > > @@ -43,6 +43,7 @@ config OF_FLATTREE > > > > config OF_EARLY_FLATTREE > > bool > > + select DMA_DECLARE_COHERENT > > Is selecting DMA_DECLARE_COHERENT okay on UML? We run the unittests with UML. No, that will fail with undefined references to memunmap. I gues this needs to be select DMA_DECLARE_COHERENT if HAS_DMA > Maybe we should just get rid of OF_RESERVED_MEM. If we support booting > from DT, then it should always be enabled anyways. Fine with me. Do you want me to respin the series to just remove it?