Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4861272imm; Tue, 31 Jul 2018 01:06:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe987yhnLF1XaQA+kbHSk5JeUATFbo+uxHdEoor6VXTT6jO8jhzFTDfg4lOyqH/gScB4/x7 X-Received: by 2002:a17:902:8a94:: with SMTP id p20-v6mr19354037plo.258.1533024380274; Tue, 31 Jul 2018 01:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533024380; cv=none; d=google.com; s=arc-20160816; b=XYE+sj7fRIudil1sMMilYUu3f2rqDCOAfUrw6mTmO/ZNlho4VvV26GaQncOXspeywi 3II+Woqt2wGk1Q6Mzw+zgrMvPdOg3sszhPE5OMk/CmUQBn/BXD/VhD6tZBp4isCtpKzX d65vyM/MYSsLYY3O5Q4N/Lmoz965l++4GKGHoszec9r+YKVNDS+k4/deqvCJK++Ip7dq Pibxspf/WVGyNXjNo96M0Q3NPSoB9qM8k47+99w8007THi8Uf5hrA9s+84w3dcpo8KPt 5b6OaZTsHojgCzkSZgEoV25drcmu2QkYRs5eqIuopuLXJSWwkUUhbamOca4nW5TFF2UP Y2pg== 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:arc-authentication-results; bh=IWWG7+mPw2TRK0to3NAV7ALdlEI87dhKHiiWVd+mdgY=; b=JPet02ffXl8vEtX8jhUSoBORaj7JCDpeUxJSMOJGPiHsqk9s5nbVauZ50f/jhjNwLL 679fvQh3I1KvbjoA8qLzxPzIm6FebFcuvzB5Ybt4NlCPHw3hA5LZdF9LzEdP1T9ihUbP d23QwPQYlP7TcRv9uoqPDFNu1P9GzjCB1QyCHIGYaVCbwTIGKk5uNKRC3pZyXScN8Zce k8SoRmQ/zgRsfhAUqDgWqm330FWJgr1V0Kl/PxI0j1ecg6J6yEYbvdWizllOtJZj62gN 5SWEW3cGjFtPHBA3NSG0nuvFEJEnMCvaJhFCrZ72HbmuOATHj5M9jX3V6qqHsst8corn YuPQ== 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 p1-v6si13662863pfe.150.2018.07.31.01.06.06; Tue, 31 Jul 2018 01:06:20 -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 S1729670AbeGaJnm (ORCPT + 99 others); Tue, 31 Jul 2018 05:43:42 -0400 Received: from verein.lst.de ([213.95.11.211]:56131 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728227AbeGaJnl (ORCPT ); Tue, 31 Jul 2018 05:43:41 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id D6F9368D40; Tue, 31 Jul 2018 10:08:57 +0200 (CEST) Date: Tue, 31 Jul 2018 10:08:57 +0200 From: Christoph Hellwig To: Eugeniy Paltsev Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Vineet Gupta , Alexey Brodkin , hch@lst.de Subject: Re: [PATCH v2 4/4] ARC: don't check for HIGHMEM pages in arch_dma_alloc Message-ID: <20180731080857.GB23303@lst.de> References: <20180730162636.3556-1-Eugeniy.Paltsev@synopsys.com> <20180730162636.3556-5-Eugeniy.Paltsev@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730162636.3556-5-Eugeniy.Paltsev@synopsys.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 Mon, Jul 30, 2018 at 07:26:36PM +0300, Eugeniy Paltsev wrote: > __GFP_HIGHMEM flag is cleared by upper layer functions > (in include/linux/dma-mapping.h) so we'll never get a > __GFP_HIGHMEM flag in arch_dma_alloc gfp argument. > That's why alloc_pages will never return highmem page > here. > > Get rid of highmem pages handling and cleanup arch_dma_alloc > and arch_dma_free functions. > > Signed-off-by: Eugeniy Paltsev Looks good, Reviewed-by: Christoph Hellwig