Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp621424pxf; Thu, 11 Mar 2021 10:44:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKIzCuT5bXgXwslgP/BTqcxpAoVuLFHloJfAms+xiBvtComFh7dUVR2XlYrWhmhuZsEH9M X-Received: by 2002:a50:fe08:: with SMTP id f8mr9842058edt.217.1615488280008; Thu, 11 Mar 2021 10:44:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615488280; cv=none; d=google.com; s=arc-20160816; b=IURGkfK27pQ/C3hnlqqEaw2DfI04lHskWgZGaMxpIaQPHBzhdG74l++3DnOrjIzy/f UAKrjrYzILlBkRlIj48tVOc1BWyZkOmTACIEUrbhjiDntPginRtQFbNFjlFFDJEjTWlC 8FZs68adQI2zhCElQ0WR1sHGx+SSuw52YMOvm4lzT6HuJ3hs1AaBNDM9psaQXSObmtsw ya2Rf6XaqWAW+7drLy0lZ/FbC7BoYqGWAhWFKpeA3gLY7jFUu5BO6KwO+ipuv7PzZOJO irsxwu0T0rOSaYNbcWXsoJypUo4RWW5Mf0AlX0GDgadBWtSYzF+orLDwNCH48P8AJsD6 ZW2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=nYY6d9PSDzvIH02G62MWvpqx6n+qNTtjRVrsYtpc2sg=; b=Q75NBuq4VvIbUewLD7PUTbtn+Q+5gF3K6/VE0muYsPpzQsUTdG1fdQb+Jn9mF6E8ls 7GkdbzyHGCXpI5chBPnu33njJ372YW0Ho96C3X7x9nOsNeMjcjWMtdt/Cy4aXjcRw8J7 C2tfRAZercFO9IhqI8iRk2Eg/KVt3W9A4fbdJLrRZUGYu14SWphKPJQrGQAyHtN4Evlo 4vDeOxsb9y8RhLHxF+F32GADf2HsuZlAzLWjpPXoot16YExUhvN5o6WSf8255CVOdEbo Eujdwl6pmMnk+9cS6Zh/cQcmmYPgEXTz/Zc5u5Kk/1A1ZBBg+PbGTrjM1nXNsNT8EUpJ 9OqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GV8o93zD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si2265983edx.81.2021.03.11.10.44.16; Thu, 11 Mar 2021 10:44:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GV8o93zD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbhCKSlI (ORCPT + 99 others); Thu, 11 Mar 2021 13:41:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhCKSjI (ORCPT ); Thu, 11 Mar 2021 13:39:08 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B162AC061574 for ; Thu, 11 Mar 2021 10:39:07 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id a24so10634197plm.11 for ; Thu, 11 Mar 2021 10:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nYY6d9PSDzvIH02G62MWvpqx6n+qNTtjRVrsYtpc2sg=; b=GV8o93zD4C7bupA+RFkzig+B9IpHlk5Pu43LlC8v/UDHZoEVe9o5U2GZ/5tiiS3YwW bnmGcAWeFpJjFmizrc2t7MDgj9jDR/wXHkaokEF/rNrv3epnONlave3C2kTDvooRS279 GEhDjDHHF7yqcV2j5iPZp3U+gcxSxB96gt56iPSo/F04TuIdeCO3Blt1CVB1bINuyZ97 rfbfz+6AlxvLhojp8rLHYj/iJWB0Jj+H9vxEEK6Vm0dvOGv4KBffTAhd5y4Hs5CRhojI w7IXWvWkh9iJiGrDbZqefQdic+rQf4Ei0ee7+U+PHbn2Uz7ivxt4nLhQVxQJnxJHqLqb IRpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=nYY6d9PSDzvIH02G62MWvpqx6n+qNTtjRVrsYtpc2sg=; b=ODGNmBQcnDqnctAvstk/4Vt9tM807OPpGwcuN6Uc3qf0fiyjhllOTBRt5oY9SC7EmI oJyGxOZ77ZW2NDv9CwC2XE5nwOkFc2N1/E6KLBrOzhdaVw3o3FQpLvfCBiCdPXNgANiZ iPET9nShzgbzv0bJtC6aiy7L0KYm+tMYEgVAItVNWsNOnFm5JoQYTFUuuTLvL0+uYH+W PbFNxkKLVyTbLdHpmKRAIvrq/bOPtaHHaGKfzyNmMDpzz63r5vKCdYdQFyN3426oilcR yxRkLqtYZhow0XHkeOKqmFf6mbSrAnq6V78dD35ywRrzQHgv0AHH+TRWMyWU0Vu4zlYo ilYg== X-Gm-Message-State: AOAM532qVWU5X4pu9QFd4t9uXI9eLpyCqw/5lbvKRFXO0iYMXBfPnkVz +qQ3sbmtunVM66NrALq+imf3GCHww30= X-Received: by 2002:a17:90a:e2ca:: with SMTP id fr10mr10103075pjb.154.1615487947295; Thu, 11 Mar 2021 10:39:07 -0800 (PST) Received: from google.com ([2620:15c:211:201:64cb:74c7:f2c:e5e0]) by smtp.gmail.com with ESMTPSA id z27sm1890095pff.111.2021.03.11.10.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 10:39:06 -0800 (PST) Sender: Minchan Kim Date: Thu, 11 Mar 2021 10:39:04 -0800 From: Minchan Kim To: Baolin Wang Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: cma: Use pr_err_ratelimited for CMA warning Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 05:16:06PM +0800, Baolin Wang wrote: > If we did not reserve extra CMA memory, the log buffer can be > easily filled up by CMA failure warning when the devices calling > dmam_alloc_coherent() to alloc DMA memory. Thus we can use > pr_err_ratelimited() instead to reduce the duplicate CMA warning. > > Signed-off-by: Baolin Wang Acked-by: Minchan Kim