From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51481C19F2D for ; Thu, 11 Aug 2022 07:35:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234423AbiHKHfB (ORCPT ); Thu, 11 Aug 2022 03:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234253AbiHKHfA (ORCPT ); Thu, 11 Aug 2022 03:35:00 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFD178E0EA for ; Thu, 11 Aug 2022 00:34:58 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 1616868AA6; Thu, 11 Aug 2022 09:34:55 +0200 (CEST) Date: Thu, 11 Aug 2022 09:34:54 +0200 From: Christoph Hellwig To: Michal Hocko Cc: Baoquan He , Christoph Hellwig , Andrew Morton , John Donnelly , David Hildenbrand , linux-mm@kvack.org, LKML Subject: Re: [PATCH] dma/pool: do not complain if DMA pool is not allocated Message-ID: <20220811073454.GD13886@lst.de> References: 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 05, 2022 at 07:37:16PM +0200, Michal Hocko wrote: > GFP_DMA is a misnomer. It doesn't really say that the allocation should > be done for actual DMA. GFP_DMA really says allocate from ZONE_DMA. Yes. But in practice that either is to do DMA of some form, including the s390 variant not using the dma api, or completely stupid cargo cult code. > It > is my understanding that all actual DMA users should use a dedicated dma > allocation APIs which should do the right thing wrt. address constrains. Yes. And we were at a point where we got to that, but it seems somewhat recently a lot of people added completely stupid GFP_DMA kmallocs in the all over the crypto drivers. Sigh...