From: Anshuman Khandual Subject: Re: [PATCH] cma: Take __GFP_NOWARN into account in cma_alloc() Date: Thu, 5 Oct 2017 08:25:25 +0530 Message-ID: <7bf6c3b7-48a8-940a-1614-c2b0fdcddcb7@linux.vnet.ibm.com> References: <20171004125447.15195-1-boris.brezillon@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20171004125447.15195-1-boris.brezillon@free-electrons.com> Sender: owner-linux-mm@kvack.org To: Boris Brezillon , linux-mm@kvack.org, Andrew Morton , Laura Abbott Cc: Jaewon Kim , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, Eric Anholt List-Id: dri-devel@lists.freedesktop.org On 10/04/2017 06:24 PM, Boris Brezillon wrote: > cma_alloc() unconditionally prints an INFO message when the CMA > allocation fails. Make this message conditional on the non-presence of > __GFP_NOWARN in gfp_mask. > > Signed-off-by: Boris Brezillon > --- > Hello, > > This patch aims at removing INFO messages that are displayed when the > VC4 driver tries to allocate buffer objects. From the driver perspective > an allocation failure is acceptable, and the driver can possibly do > something to make following allocation succeed (like flushing the VC4 > internal cache). > > Also, I don't understand why this message is only an INFO message, and > not a WARN (pr_warn()). Please let me know if you have good reasons to > keep it as an unconditional pr_info() Making it conditional (__GFP_NOWARN based what you already have) with pr_warn() message makes more sense. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org