Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5403642yba; Tue, 30 Apr 2019 14:17:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZyVLcy1Hx1/JErWmUpO6jiZH9kSJVbc20FOPV66tk99CrcxZc9LJxRcec5/YZWlVf0hoO X-Received: by 2002:a17:902:1681:: with SMTP id h1mr38619362plh.102.1556659044447; Tue, 30 Apr 2019 14:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556659044; cv=none; d=google.com; s=arc-20160816; b=yATWEYdJoBiXrJDUWdDyG411xDiwgNmeWGryw45HimLcqrVz0ICpP6I6OuG4kFBXgl S21sUlmrDz960UJ/RQRdlyKUkFa6eI4hEEvO1W+TFsq8nW0+GUlLofV/BpYiZB9tLePu plBCeMpRkHsY079Kb/BWucPepvRBzUQ1nWlzdwZYpr8LLxmxt+g39FU6IyhE4yuJD1d7 0nY+RzW0/IbucAfusIAr0HuUJ5MLepzc8t8Sx69rwlfV45WtHO6fNXyDa6kwj5zdLmGU +zeDxulsQVeBmm8tMl8ZrRAjLezSPAmeqHvqIyexVQD3QRZlQw75/7T9Jt/6rm5PGifx YHHA== 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=91Hbjx9z7AZ6WFEVvjmXLifmmp9+9Qrlz9u9q7Cm1Fo=; b=sK3QNHavxYEJT+pn0cJo2WxfPyR8i4v2J7uWngHDqzqHeZuAUPdZ7BJH60QF9j5UAi JmU+FTN1WsgVxj6iPVG9oV78VUyyi94AuMx0edMj8SPemwmd2lJou+otx7yw0Ff/PrHY e4cv7mLkvBaW82cDqdqSFLbxM67dWSfsQFfXpFHykDUqZgdhOriv2SRy4sNw1oMMxsQU SwpTYfUO2JudfgVsMy0dvVgnG8ooTVag/o74CoWnKrG7gK7tyNuG5yiI8oOAJXtJaZEg g3QpT4u59SXM1ZdTDoFhLvTwuI8xL2SbOtEHJna7QJxAgjSL6kB0WV9AyfE00Mdm4EZK vTiQ== 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 p14si36181933pgb.292.2019.04.30.14.17.07; Tue, 30 Apr 2019 14:17: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 S1727030AbfD3VQM (ORCPT + 99 others); Tue, 30 Apr 2019 17:16:12 -0400 Received: from verein.lst.de ([213.95.11.211]:49203 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfD3VQM (ORCPT ); Tue, 30 Apr 2019 17:16:12 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 2CE8867358; Tue, 30 Apr 2019 23:15:54 +0200 (CEST) Date: Tue, 30 Apr 2019 23:15:54 +0200 From: Christoph Hellwig To: Paul Burton Cc: Christoph Hellwig , Ralf Baechle , James Hogan , Ley Foon Tan , Michal Simek , Bartlomiej Zolnierkiewicz , "linux-mips@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-fbdev@vger.kernel.org" Subject: Re: [PATCH 5/7] MIPS: use the generic uncached segment support in dma-direct Message-ID: <20190430211553.GA31109@lst.de> References: <20190430110032.25301-1-hch@lst.de> <20190430110032.25301-6-hch@lst.de> <20190430201041.536amvinrcvd2wua@pburton-laptop> <20190430202947.GA30262@lst.de> <20190430211105.ielntedm46uqamca@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430211105.ielntedm46uqamca@pburton-laptop> 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 30, 2019 at 09:11:07PM +0000, Paul Burton wrote: > Right but dma_direct_alloc_pages() already checks for the PageHighMem > case & returns before ever calling arch_dma_prep_coherent(), no? True. And of course it can't be remapped into the uncached segment anyway. So yes, we should drop it. Eventually I want to add generic support for DMA_ATTR_NO_KERNEL_MAPPING, but that'll involved auditing all instances anyway.