Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3944932pxb; Mon, 8 Feb 2021 04:16:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8JccZ15vW/ztxZQFQWhj24z9ulCcsE2Qo7p4muvlbGFd+RJ2y/FYyehK/K0RL64sedxMA X-Received: by 2002:a05:6402:1711:: with SMTP id y17mr16641525edu.72.1612786613544; Mon, 08 Feb 2021 04:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612786613; cv=none; d=google.com; s=arc-20160816; b=NiPgxSQqYvVy3bOlhVundi3ztmeEQBIxS4/vcTGxHUGVZgrMI1WtnDZYoE3I6xak4T 513vzZpx16D4t6XwLHLcS0gVAvBcJ9eVZqf3JJN96KzTT3rKm8QuZPw2fDfj781i5/ej 6ex+bPoUyF+ywEYpubQdPLf0beKe12hs9W+/0BzJDOErBxmcqE8HCSnjfVO6ZbUpeOSF DyV2wwonjuIhteqSOeoqIX0HId9QDs4oBh+dDMGf25PTapvhYzs0YY2jGno8gIJ+ucOo +kmlfb26/jQ/udlcr1sAxdhgo2PWHZRLkdzkPSkCnm7XuRQkCYY0JEHTxnnHD8e2H5YU Af2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=P8sbwZJksTHY0g7J4gwBmmOhoWBgz9PyjuC/t9xFYc4=; b=eBTqLniuRXLS8naT+vM8/hWoHSNRKAZPF4rOzDev3cKovsb9QJrtFnIwzrrq2YqIyv K4BnDkQT99V8X9qAMMnv5WmhJwRUgG+tv6dISK5erX3ETVab2S4aIyvAApsnbNVJXyXq YOjLogPWOAfM8a7su2IM64uXu0ykpHDv6hPUBVngbDHCoZHQ7Zd5sRXF/nWMbmJrUy+C adYRd/wVK8oG50ZQKGZPc0Ta+2xNQvmBr3KIsIzRb4kW4d4B7BmF1mEz2jJ4FtiDZKZe RHmophc5OR5LruaBrrqbl4uW6+JGMx0leH+F0gFSHRCTZ0mS6K3u9p8U7NlFmFRBVWF/ bQJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=og8oHOy2; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si11382564edk.452.2021.02.08.04.16.29; Mon, 08 Feb 2021 04:16:53 -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=@linaro.org header.s=google header.b=og8oHOy2; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231838AbhBHMNk (ORCPT + 99 others); Mon, 8 Feb 2021 07:13:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233449AbhBHLwo (ORCPT ); Mon, 8 Feb 2021 06:52:44 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0D5C06178B for ; Mon, 8 Feb 2021 03:52:04 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id r21so475443wrr.9 for ; Mon, 08 Feb 2021 03:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P8sbwZJksTHY0g7J4gwBmmOhoWBgz9PyjuC/t9xFYc4=; b=og8oHOy20CdNUnjmh4a5BFlhL/JHUeymZ5PBKhTZik+VO6CHT9e4mzp6yRIxNsehQi lLgV4cA6iFbCSbj7MWBsHZb7U5E+7zrVNvU5G+vTy01ehcqCOlRCJLgTt4Rakjr3BQyw cClxPHXYeybfWlhEO5T7kBUyQz2FECUYiP6HniQrwSCOxHsgz/zwHMWtLwTyS5YvRZSG 3fYc5hhoMYi/dyx32MIWyX/0QSgUbqsR3m0NQPjhYDkk4q36DIR5OpO2vBy6LuPyzeTh UitCbPqf8+JO3n/9/nigR47F77IFqqSVupxZEqR24a3CejkjYVWST919IEjUvYod9dcW 2ScQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=P8sbwZJksTHY0g7J4gwBmmOhoWBgz9PyjuC/t9xFYc4=; b=HAdGCDOrtzAufNWWnpOwe4TnK1TP+0iGw5sxRbm9CzJnccN4FLmqGW/m04NTMWSR1R /+/mxK5aqQePPUocYO93FQbDFEw9EBMdWuAfftxW8CVHO1hDnF2aSvkccY9s2N9B83LJ zKS5+neDWDcaSdAJvt3oD+0iwfdfTYlbb7/zEHeNIN2b62RGurtgFm4F5AcUwlLKYKAW 57yAUBDBkjaVj+AWW4iLe93+9/JcxRI8vTqNYM5t+TTxITKuEQkTLjQrZMaa6ppawk2Q Zb9cIkkF81dAUncynRhrgVs+/TA3E9aVsI5aD69nj279BMn8ZTm9mmUOW/xgrAMgV36I Rh9Q== X-Gm-Message-State: AOAM531aPuvW2FG3sFW7hBKecut+JlmfjrZcX+Cp+LhgYlMnf86PqQHs eEd8CRtTCDaIOKX3EoVnTZME+7WJ126Q5g== X-Received: by 2002:a5d:50d2:: with SMTP id f18mr20356764wrt.338.1612785123105; Mon, 08 Feb 2021 03:52:03 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id f7sm27980549wre.78.2021.02.08.03.52.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2021 03:52:02 -0800 (PST) From: Georgi Djakov To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, pdaly@codeaurora.org, georgi.djakov@linaro.org Subject: [PATCH] mm: cma: Print region name on failure Date: Mon, 8 Feb 2021 13:52:00 +0200 Message-Id: <20210208115200.20286-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrick Daly Print the name of the cma region for convienience. This is useful information to have when cma_alloc() fails. Signed-off-by: Patrick Daly Signed-off-by: Georgi Djakov --- mm/cma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/cma.c b/mm/cma.c index 23d4a97c834a..9ca6eaa0e52e 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -500,8 +500,8 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned int align, } if (ret && !no_warn) { - pr_err("%s: alloc failed, req-size: %zu pages, ret: %d\n", - __func__, count, ret); + pr_err("%s: %s: alloc failed, req-size: %zu pages, ret: %d\n", + __func__, cma->name, cma->count, ret); cma_debug_show_areas(cma); }