Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5091335imu; Sat, 1 Dec 2018 08:59:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/W9xzDAFmM0YpV9Kf6b+1dEvJKGk83ffW2BYcTcCkoj7EDn1cu+QtSfuKAPaLl+fs6uq5UK X-Received: by 2002:a62:33c1:: with SMTP id z184mr9764742pfz.104.1543683567134; Sat, 01 Dec 2018 08:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543683567; cv=none; d=google.com; s=arc-20160816; b=gi3CYiqdHJSpB6MYevLMLmCgOqzHfTcLy75A203hNRBMEAvTWYjnqTf921AcWi34lQ oGaFBgit4IUXPK9xUNzYvmYtcIKdvwH8v3Fg+j00O6AbKkYZ+YgcpYmSj5LgduT2sYRq wNQCw37WkS8VnOnkzWdPhaZNN9C7n7roMoy+yNW/EQny/y97r8quVO4iCh5uD6BT+zzS Pd0W5aznuAPjnZ8jGzQ2+7cOxP3OtsnGXDVlwd6zTk/xqFD89ru2UM4tJ7wqStGgivcS eZkqZJFkKOmDqz2w5evdpJRiYDwTpi4vgPiui1zcH0BUecnDFxlXlhCY8kUFhg4AZrn1 S+jQ== 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=2nYFTYnDLE3gTfrDbH29dbdGkTbX3XrsROlvCq7vV2w=; b=A3Ez8AwhwuFlx4Q9O7o31VxOxn3XhSgQUDua5LEDO3Wexte2mKds0zT4LPqoKm193q OBnx7bKlrp29/cVMqWLByat0zoD2Yx97Sbzqa/3G6olRgo1lrWXzOi+lcY+3NSe7pc1f DSJ2VFxBG76ierdyQaKPQgu+FLHutykQ9HcFvhKA2tuWLLspwhBBOaj1wFgXhB9OzIyn MtUDM8Xn5VC1HfWK15C1RrydWV6ljOlCQXgTWR7CX8rY4CpCPZMTRHMTdfiXkryRePKq X8hdwJdNlkgXYTFSDBqM6zAD49p0wtM7TTdsfa4EDbgE2AnE9z+zB97E4qBFGfR92toA hTpw== 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 e4si8044344pgk.127.2018.12.01.08.59.12; Sat, 01 Dec 2018 08:59:27 -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 S1727104AbeLBEKO (ORCPT + 99 others); Sat, 1 Dec 2018 23:10:14 -0500 Received: from verein.lst.de ([213.95.11.211]:56761 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbeLBEKO (ORCPT ); Sat, 1 Dec 2018 23:10:14 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id B62056732A; Sat, 1 Dec 2018 17:57:16 +0100 (CET) Date: Sat, 1 Dec 2018 17:57:16 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, Catalin Marinas , Will Deacon , Guo Ren , Laura Abbott , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/9] dma-direct: reject highmem pages from dma_alloc_from_contiguous Message-ID: <20181201165716.GB20912@lst.de> References: <20181105121931.13481-1-hch@lst.de> <20181105121931.13481-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, Nov 30, 2018 at 07:04:51PM +0000, Robin Murphy wrote: > On 05/11/2018 12:19, Christoph Hellwig wrote: >> dma_alloc_from_contiguous can return highmem pages depending on the >> setup, which a plain non-remapping DMA allocator can't handle. Detect >> this case and try the normal page allocator instead. > > ...except the actual implementation is "Detect this case and fail the > entire allocation if so". True, that actually changed from when I wrote the commit log due to some layer issues. I'll update the commit log.