Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1047635imj; Wed, 13 Feb 2019 23:55:15 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibkg0miaN6fuwoUs8TrUMS6i/Y/KryHaK532myc/acQwKvnFZ49muJBufPGYGzK4jT2VXdM X-Received: by 2002:a63:d347:: with SMTP id u7mr2466403pgi.383.1550130915792; Wed, 13 Feb 2019 23:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550130915; cv=none; d=google.com; s=arc-20160816; b=x/DTntAMlNg/aLz6yJ8JAGs76Qj5Y76DVHtyUc4sMbOLbOTI7jwSA3taGO4mLzUA57 LDGq8Ktiy18Cqv0HtUtlF2+QEnpU2kQJ2wyb6FG1ygA1KiZOKA9MbbzoH4z+CjiM/Bi5 tXfYz8iElPpgQikWxvW8TECX+4nW1cKlCnX35qc1FhriCSI253dEHjRmO9xrk7WuoysU H4RoYlzfJ7JqOAA14mvekC4WNUiI0dta4Z1o4ZN/QB2eV+Y3c6dctAtxl3FLLEjrA5Sc rS1McPR53g4lHhFav/n3S5DAOFFKzaFNdReiZDPAgEl3eZMOXvvK4UZZuTkkRW+NquiG EQ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ohftRo9vajPmjWfMcaePy0lxIy4dOderzt2H1AuYoRQ=; b=TKGGYsCLoImqbHmdx1VtFAwxcqeio83kbWQAL09n5IZCrKSlvS2ppGugXlZhJUEEiu 9/vL5YQNlVq1yA6RtHsQ8i7gbbCt265sGGe5b2Z0M2M6fP4aES4grHCvjVWZr+TqneUD 6jp0UhDcJdfmlRCcEa1LNjbUDB1i+UzgrLa1wSMnP2/UdOqLRaOXFkro2lWueVU1hwUM T0lpdbenf1nNmBGYBZIUlj/j3wR/3fj53l6ff/B9Yrx4k70O6Sto2b4iazLVjrYvLapX 1Z0FWJGN6llmNe+RBk7PAh917wASnX7q9UV0iEoZNrlSbUUf4WJzYMtPGRjXjP7guMjm O5Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MRdSBbmo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si1704985plr.211.2019.02.13.23.54.59; Wed, 13 Feb 2019 23:55:15 -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; dkim=pass header.i=@kernel.org header.s=default header.b=MRdSBbmo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394393AbfBMT2A (ORCPT + 99 others); Wed, 13 Feb 2019 14:28:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:36178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730161AbfBMT17 (ORCPT ); Wed, 13 Feb 2019 14:27:59 -0500 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74928222D0; Wed, 13 Feb 2019 19:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550086078; bh=d4USaxOaZ5zIs0Yd6AYwU7IxGiiMG63YyGPnEEw7QQk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MRdSBbmokqMe8z+9FVsMJsm648JqGS4TxplBfDvE4kg//D3ih8EgoUzNEvOm+uwxn OfG3inpBJ3aRJziIpru75JaWAPGejKP+rW0jT753boDgWR4cniOiayP/gg5vgcXp5C PoMWr+zmo30lm/AU8BhVR7120eozOfZ2/B37L/HE= Received: by mail-qt1-f171.google.com with SMTP id p48so4044960qtk.2; Wed, 13 Feb 2019 11:27:58 -0800 (PST) X-Gm-Message-State: AHQUAuYWvvSaPwJwO5+zbtiZopJxWOw+vFw9/w2RILkJ5UxaFlomM3JV DevgBpG74GMtgaUGuX3EkTs6Lrjc+6qu8doW7Q== X-Received: by 2002:a0c:9e05:: with SMTP id p5mr1699437qve.246.1550086077695; Wed, 13 Feb 2019 11:27:57 -0800 (PST) MIME-Version: 1.0 References: <20190211133554.30055-1-hch@lst.de> <20190211133554.30055-7-hch@lst.de> <20190213182435.GA19906@lst.de> In-Reply-To: <20190213182435.GA19906@lst.de> From: Rob Herring Date: Wed, 13 Feb 2019 13:27:45 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 06/12] dma-mapping: improve selection of dma_declare_coherent availability To: Christoph Hellwig Cc: 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 12:24 PM Christoph Hellwig wrote: > > 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? Either now or it can wait. I don't want to hold this up any. Rob