Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9559775imu; Wed, 5 Dec 2018 06:48:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ub7drqN3gqwb1Xj5XeI2fqMj6TRB3av24TKqamAqKpyIL54Hv9oPRuFC1Hjyxgp64o5gEQ X-Received: by 2002:a17:902:9f89:: with SMTP id g9mr24754105plq.214.1544021306883; Wed, 05 Dec 2018 06:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544021306; cv=none; d=google.com; s=arc-20160816; b=h7v2+2y2uOSl2SqgATdJTMbOfRmaFCMxgnCR8R97UvaMgjCEA1AIPe7q8kDkSvmtlY dtRFm6kpMrDDEHaz+GyCrvrmSXQpWea9VTHBmJU0e0gh0+H/o/2gwbNy0YBQpEksO62i CzDqNtyc0CV9wSE5tLj4yD+YugfXYd4neG6GmJLm8+lzl9q7Ljvibgh2mIUtUZZKEZY0 9/a4vS/13z2m+XNJKIikkw0dn6iFTTPs5nTfawfz4bHB2aY9HqQG5RfqTjFBqMBjMTLW gst9dLFbEumUc5oCqjnobSnY5O2iXagji/uZPOkIWKqUV5beyvWIxgGc6Tjx8lO63D/T 8Rgw== 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=8LwQppr2EObiRWseYlgfhGgWb0tEErH5/EMSM5OOOaw=; b=uGKFRPcW7Y/2KmfFfBcJebOGcZJNrhC21iW1JWkG4+Usnj8BGnJLXfHD3eOPJyxHZ3 jOcFyW40kMZhMrDo3qOW5bJHQ/1Wl6YATO2JHCiQSDrD415xZTByGWbvv2EbyDtSRuMw 3hxn97ZOyOOe5NfmGHM2Pb7XHtcnv8yY+fPd8nFIcwtX+b21tQZ6NmCICRVPhuVIa99e UcRS8bhU0NFNMkLVjeUv+lf18pYbhqxLGVoZZbv1FQLN5RndXJ7wMu4CGWVAI6l/WWGy 2S587Fw4PXWX70Q+0x9jwRPqyh2QoT+2X82IeI8OwnNKXRzFN1g62XSoVS8O5/vAb21J qskg== 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 e67si9784406pfa.15.2018.12.05.06.48.10; Wed, 05 Dec 2018 06:48:26 -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 S1727659AbeLEOpq (ORCPT + 99 others); Wed, 5 Dec 2018 09:45:46 -0500 Received: from foss.arm.com ([217.140.101.70]:55974 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbeLEOpq (ORCPT ); Wed, 5 Dec 2018 09:45:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A06B180D; Wed, 5 Dec 2018 06:45:45 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6F1C13F59C; Wed, 5 Dec 2018 06:45:45 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 2F5D71AE0BC3; Wed, 5 Dec 2018 14:46:06 +0000 (GMT) Date: Wed, 5 Dec 2018 14:46:06 +0000 From: Will Deacon To: Christoph Hellwig Cc: Robin Murphy , Nicolas Boichat , Joerg Roedel , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Michal Hocko , Mel Gorman , Levin Alexander , Huaisheng Ye , Mike Rapoport , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Yong Wu , Matthias Brugger , Tomasz Figa , yingjoe.chen@mediatek.com, Matthew Wilcox Subject: Re: [PATCH v4 3/3] iommu/io-pgtable-arm-v7s: Request DMA32 memory, and improve debugging Message-ID: <20181205144605.GA16171@arm.com> References: <20181205054828.183476-1-drinkcat@chromium.org> <20181205054828.183476-4-drinkcat@chromium.org> <20181205135406.GA29031@infradead.org> <1d211576-9153-cca1-5cd0-8c9881bd3fa4@arm.com> <20181205144308.GA28409@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181205144308.GA28409@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 06:43:08AM -0800, Christoph Hellwig wrote: > On Wed, Dec 05, 2018 at 02:40:06PM +0000, Robin Murphy wrote: > > 32-bit Arm doesn't have ZONE_DMA32, but has (or at least had at the time) a > > 2GB ZONE_DMA. Whether we actually need that or not depends on how this all > > interacts with LPAE and highmem, but I'm not sure of those details off-hand. > > Well, arm32 can't address more than 32-bits in the linear kernel > mapping, so GFP_KERNEL should be perfectly fine there if the limit > really is 32-bits and not 31 or smaller because someone stole a bit > or two somewhere. I'm not sure that's necessarily true on the physical side. Wasn't there a keystone SoC with /all/ the coherent memory above 4GB? Will