Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2416965imu; Fri, 14 Dec 2018 10:37:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/XVwmYqJX60CYpCNVHbcDydQNZXglCoqjvrI5TxoH5l3wKn3eal3Z7guPSQ1erKU4xgpuwo X-Received: by 2002:a63:60cf:: with SMTP id u198mr3678990pgb.323.1544812677437; Fri, 14 Dec 2018 10:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544812677; cv=none; d=google.com; s=arc-20160816; b=jUTbGjaj2CQLgD2x5rmSN5LbZZr8GreFB5ltSqa6q9fE+bANDhPuJEy0SWx2WBWPw/ K2BCtUaWPId18B/5T3vHb7LcA/TCUKBJutgdHRIQmjVH8t3iHF7dStEf1iMpzKJ3gIBx 4qRxZDK1agvmypRu3Hfhz0o1w/qHsJ5V6nQ2zhOFJzLq6zGaKjTfqB8JYjPUvdEOA8Ot PA0+05XfWh56dGMwoo4u7nJrV+wNxKoGOBXCZdeuFtRTDZxVqu4BXT8UtcLEvvV9Zm4v Qh34q+cANtx0TXpbEuaJ5FvRdaIZY9YNYPnDKGQVhMtrxIyIYv8r06DLFnX1YNzrpXcl vyaQ== 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=FPVwZ7D5efuG6J8CA3WcfWriXyJtakxOONhQs8+2bZc=; b=Kxd9dWCJjMSCR7DSl0VnfazIxchK14Xl1JdLDfro6K5ihNVghLlVOQyJRK2LyqZbfE 4e87YWNu9YJwOtO1notNmFiHUslsF5y8O1h5Ck5uAJKnYGHq7JMmBazlA8FH22WEeAjC J3jAcxnBKPTpuo+MAmeUhUHnNAWE8MDE++i/cQBVPDQ6PFEjT1U9FU7cFMdKmxo9Vpr/ 7DuzdilXUHeqVAGql32lpmJuhMptbQz/vHlcSfzilmiP75IHYZg6m2B5/YCK4V9h/HS2 g6NyT8aY/3XWIGDMpzxr48tfy7T8TgutK0UmtrEY43YZE41mUCVAq+9AZ1PzX/z/i95k 4iHA== 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 u4si4400612pls.34.2018.12.14.10.37.28; Fri, 14 Dec 2018 10:37:57 -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 S1730585AbeLNSfM (ORCPT + 99 others); Fri, 14 Dec 2018 13:35:12 -0500 Received: from verein.lst.de ([213.95.11.211]:49165 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbeLNSfM (ORCPT ); Fri, 14 Dec 2018 13:35:12 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id EA32468DF1; Fri, 14 Dec 2018 19:35:09 +0100 (CET) Date: Fri, 14 Dec 2018 19:35:09 +0100 From: Christoph Hellwig To: Sam Ravnborg Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, Michal Simek , Ashutosh Dixit , linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-m68k@lists.linux-m68k.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dma-mapping: zero memory returned from dma_alloc_* Message-ID: <20181214183509.GA5247@lst.de> References: <20181214082515.14835-1-hch@lst.de> <20181214082515.14835-2-hch@lst.de> <20181214181056.GA17941@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181214181056.GA17941@ravnborg.org> 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 Fri, Dec 14, 2018 at 07:10:56PM +0100, Sam Ravnborg wrote: > Hi Christoph, > > I stumbled upon this one: > > #define __get_dma_pages(gfp_mask, order) \ > __get_free_pages((gfp_mask) | GFP_DMA, (order)) This isn't directly related to the dma mapping, but another place that hides GFP_DMA allocations. So no need for the treatment, but we really should kill this obsfucating wrapper..