Received: by 10.192.165.148 with SMTP id m20csp1616379imm; Sat, 28 Apr 2018 01:35:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoLifrJIwPZ5jAKOPJcx+WPp4wBHdMiO7X97VyewpR//YYO8gjPpIC/4s6ZLnvAH+r8HCL0 X-Received: by 2002:a17:902:bd8e:: with SMTP id q14-v6mr5339275pls.322.1524904518588; Sat, 28 Apr 2018 01:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524904518; cv=none; d=google.com; s=arc-20160816; b=Zy2S7yvTF9LqM3ZzAEOTiQdpng9ytegdsowg66KT3bYO17KTc0bisdUQ5scENh5dye 5QdvhlTmoOkXu5uGwLzur+w/sacygZURHun/h61rrs4lQJFw5iw26oZJfvKxQiPWesD9 Ep3zlZv+4F0bnJ/VwCwqfzL7FFMamALBBOmzzOg0O0E2a87Ra6TZDgMer7VPrVNU2FoX Q3G2abo+1zSYk7eXcXAPHYQLlPFi93uRaELx2ism+a3agy8Zq7tbKQe0JejZgtQxxdf8 SLsOEmJHuC6MQyM0peLHvCktvToxslbq035kjzAXVGglFLeT1tXJEmp/aSms543MDJkM 19Ag== 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:dkim-signature:arc-authentication-results; bh=n2SHCAMxKgDlwV2Mq9ktyrqKS+PZxBDyMCrVd4DbuUk=; b=kQZcFBIAjo0HlIyjOS9QQ6RQ+QptabFJlKRjHwpt60I44QVeM1GEHs34B8iXS5Ktqo QDAJ7ML/LD/gfvPj4T54LFHRIG94P3Zn7ThxUMXnY6gKbxGbr44WXuCm8emHHyWR+1tn bT9QGePoTvVh+ggmvrn0uawKAwUVSzskq8F9wbYKcgGuakj1Eu0hsO2UXk8vO16OE2dX JnqtLj2imkk9gSosdWW6VbX8VsxDCZYT0VryLSoCyh3+BHRFe/AvQw/JPWu4QnqaypJh 02qyW/SzGi+YdPvW6vMwP2iz+f8LKMYTQkOiK3PsD8KwqymkYRt0GFYYkrmG4/EodZf7 QvCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z/opix6P; 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 x4-v6si2752730pgc.411.2018.04.28.01.35.04; Sat, 28 Apr 2018 01:35:18 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z/opix6P; 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 S1759729AbeD1Idx (ORCPT + 99 others); Sat, 28 Apr 2018 04:33:53 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42980 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759692AbeD1Idu (ORCPT ); Sat, 28 Apr 2018 04:33:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=n2SHCAMxKgDlwV2Mq9ktyrqKS+PZxBDyMCrVd4DbuUk=; b=Z/opix6PqJgKSs2MqG2Omg6dL OZ6k4fJKmtUC1ZglyGPxtZdpruIOC5MUvQNtTptxCM9HV7DdLt8NPVxp3/zX7vpTL5BlPIQr2BcFi OWOJz2G4xMlJr2dqeWa62HdX+zOCjSUdTKs3gyDhZJv2MqV3qDJYe6k1J9kIDzgb+ryM8zde9FE15 wFqPhgfBTEkV4phu4fh5XUAYOvizOnQeU/mqvD/WSNa6OnFlCejXu61EWLjJLMdVnBSi3OrhQejtc QB7oOx1Nurr9R6LNPhYsOwqB1bgmjlUD8ahrM6KE6rDu4e3yhRIATFh0MSWsf5yU7iDU7qYlzHyHo VgIkJ8/bw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fCLIh-0002FD-DD; Sat, 28 Apr 2018 08:33:47 +0000 Date: Sat, 28 Apr 2018 01:33:47 -0700 From: Christoph Hellwig To: Christopher Lameter Cc: Matthew Wilcox , Michal Hocko , Christoph Hellwig , "Luis R. Rodriguez" , linux-mm@kvack.org, Jan Kara , matthew@wil.cx, x86@kernel.org, luto@amacapital.net, martin.petersen@oracle.com, jthumshirn@suse.de, broonie@kernel.org, linux-spi@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "lsf-pc@lists.linux-foundation.org" Subject: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love Message-ID: <20180428083347.GC31684@infradead.org> References: <20180426215406.GB27853@wotan.suse.de> <20180427053556.GB11339@infradead.org> <20180427071843.GB17484@dhcp22.suse.cz> <20180427161813.GD8161@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 11:36:23AM -0500, Christopher Lameter wrote: > On Fri, 27 Apr 2018, Matthew Wilcox wrote: > > > Some devices have incredibly bogus hardware like 28 bit addressing > > or 39 bit addressing. We don't have a good way to allocate memory by > > physical address other than than saying "GFP_DMA for anything less than > > 32, GFP_DMA32 (or GFP_KERNEL on 32-bit) for anything less than 64 bit". > > > > Even CMA doesn't have a "cma_alloc_phys()". Maybe that's the right place > > to put such an allocation API. > > The other way out of this would be to require a IOMMU? Which on many systems doesn't exist. And even if it exists might not be usable.