Received: by 10.192.165.148 with SMTP id m20csp321204imm; Thu, 26 Apr 2018 22:37:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqIledjkbkf6TG31kQHeNMaRqPjaxJbNvS3RGzh8qNVyN/x970+EwcrgTCthhBh/IjmjBzH X-Received: by 2002:a17:902:1a6:: with SMTP id b35-v6mr1008047plb.80.1524807450102; Thu, 26 Apr 2018 22:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524807450; cv=none; d=google.com; s=arc-20160816; b=c7lwc6j9bB6K35bIC+mQw0QD1DKUgtSfPEoRBGzjY+TEE5/NKwVhN44SXmasb/NU/B X6fJx9e2nok+E1ltw1EM8Mkct17fDnPrDG0b3dkJHqTigOTNTSzKwaQI+GkOmXAHTXEK MYb0qZZ+mdSLMI/XWxCvPHl53Hm5j0DByo4t/iYlM+rAnvl9HSPHyKE9dZOUuk57BMzv M936SiU7CTkbem05QpczVddI+zFQBWdpAV3wN762rVAHtCXCwp1/b9edE3CmL9WDBkpo uDglhg+zRBl29pdbJzmgLSPORRs0TlC3kO2SFhhPXUwHtEsv4TijbZ4mU2GQvt0efBnR T9Ww== 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=brLS1+i3vop+xUCbZ0HMme/D7z7fxrx75nFdnOY8R5g=; b=M0FY392FBCDquGUvqAW9Z4qcySQZ6WrdrxMWrxeB9J+cANCPL+9MstOquLM30FJNtc I4o+jDpnH672iLSjJrDnxoRPTeK7UqaXdCDblLEN+gbCS5F87X/FV6mQUbC7JD1LNmwY i0xDwZHK5XqY+pkPwYeyoC1CWIezSWEAjmE3UjhcnvGeFxGyA1gWhySVni0o2iS3x0uH oyPx68XD2kzqrHfV3siRW135+s00csy7FgTXQTlFu8MQQMaCryo0iHGGuJVTM6lrGqah QXuufvTIrra6YX0XtM7Vnpf89fCpqMC67JCZ1Vip4GR3zTHeYScqPwGFGO4pRHubEw1K vweQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=c3+4QtnP; 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 v12-v6si552434plz.33.2018.04.26.22.37.15; Thu, 26 Apr 2018 22:37:30 -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=c3+4QtnP; 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 S1752348AbeD0FgH (ORCPT + 99 others); Fri, 27 Apr 2018 01:36:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37762 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbeD0FgF (ORCPT ); Fri, 27 Apr 2018 01:36:05 -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=brLS1+i3vop+xUCbZ0HMme/D7z7fxrx75nFdnOY8R5g=; b=c3+4QtnPQFONh4JL/j7JKJ4tb j0z+1jo+Q8ZJRxqRr5FoEYweIGTuxv05J0t2/6B6ifbABJGzB00//8cnoyg2f5HV4wvY++8R9GZMw 2DUx3wLZ+VuGaTxWgBBFJzqXc9r1in1jnT8MPGOTJdLfBKnxClX/2h6bIUSX82diiwO1GJsj6Mhuj ZMMchT6sHmRjyLudCSSOxthVKTA5Ymyktb1uVbJExiq4ypvWO9ruf6sUyJHRW5nzoIAD+gC233VMe /4OBEHbACUUMTDiSYdM43Fo2EkFWpmYqmfrBHBQjOxMPYfqYXO8tgTLPZMU42b4tvYXoca0pdumuk l0+x1IniQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBw32-0003ZO-Q7; Fri, 27 Apr 2018 05:35:56 +0000 Date: Thu, 26 Apr 2018 22:35:56 -0700 From: Christoph Hellwig To: "Luis R. Rodriguez" Cc: linux-mm@kvack.org, mhocko@kernel.org, cl@linux.com, 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: <20180427053556.GB11339@infradead.org> References: <20180426215406.GB27853@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426215406.GB27853@wotan.suse.de> 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 Thu, Apr 26, 2018 at 09:54:06PM +0000, Luis R. Rodriguez wrote: > In practice if you don't have a floppy device on x86, you don't need ZONE_DMA, I call BS on that, and you actually explain later why it it BS due to some drivers using it more explicitly. But even more importantly we have plenty driver using it through dma_alloc_* and a small DMA mask, and they are in use - we actually had a 4.16 regression due to them. > SCSI is *severely* affected: Not really. We have unchecked_isa_dma to support about 4 drivers, and less than a hand ful of drivers doing stupid things, which can be fixed easily, and just need a volunteer. > That's the end of the review of all current explicit callers on x86. > > # dma_alloc_coherent_gfp_flags() and dma_generic_alloc_coherent() > > dma_alloc_coherent_gfp_flags() and dma_generic_alloc_coherent() set > GFP_DMA if if (dma_mask <= DMA_BIT_MASK(24)) All that code is long gone and replaced with dma-direct. Which still uses GFP_DMA based on the dma mask, though - see above.