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 82A07C19F2D for ; Thu, 11 Aug 2022 07:43:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234045AbiHKHnx (ORCPT ); Thu, 11 Aug 2022 03:43:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbiHKHnu (ORCPT ); Thu, 11 Aug 2022 03:43:50 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC1F28E987 for ; Thu, 11 Aug 2022 00:43:49 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4D67568AA6; Thu, 11 Aug 2022 09:43:46 +0200 (CEST) Date: Thu, 11 Aug 2022 09:43:46 +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: <20220811074346.GA14956@lst.de> References: <20220325122559.14251-1-mhocko@kernel.org> <20220325164856.GA16800@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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 03, 2022 at 05:44:16PM +0200, Michal Hocko wrote: > Unfortunately generic kernels cannot really know there is any > crippled device without some code to some checking early boot (and I am > not even sure this would be sufficient). But we can know if we need the pool, which is only when AMD SEV is enabled. So we could add a check and skip allocating all the pools including the GFP_DMA32 and GFP_KERNEL ones. I can look into that.