Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1082668ybt; Wed, 8 Jul 2020 20:48:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAX0fU/hO+u0oAJtNazIkvGfR4ykl5S1Weql6JY9AUvx72/49LhKodaJTDpOR20e0KI+ur X-Received: by 2002:a17:906:b45:: with SMTP id v5mr52739091ejg.464.1594266535916; Wed, 08 Jul 2020 20:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594266535; cv=none; d=google.com; s=arc-20160816; b=KcylANLeIQqO+7ytnFYk+MK0o76xdGsrPKTa4/Xi/hRvXiECydDWj+78LzY1BqdROC 5cda3+YvxAgm/VJlOtyfbGDn9mqafXqyMG7I6Oz1T8tEArliVFlDoQN7xZQdLCtMLwid nJd1l9Uh9ozQsW6JJMjDSZ0C9HpUtMgNuz/FIAoJZPb0Q2kAJLssKnZ5da8YOT4KkfFL u1trGpcR7HPm4hpXnTJtqbZKES6RsezIYziSL8eIDVnOa46FmgFkVM5OpVu5fy8naO53 u5fkUNTyMdVR5HfMkKKFvkxUlz/6UGFymAryNPfpcVlHrF/fWQhWv4LlYwbvO86cOtI6 FcXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=gfU9m5L/GldNoGFgeU6lRvVCjqV6BQws8odK/lHCG5k=; b=ZI/ZX5QE9UcEXsrv1TJ+b5k+vw1ZnXdjFGD3SRcYv7H6x1hmQntWOi48aZsA3EbpOB TU1Cb05KmX7dDxZcHupGf2tTgCxgvV1h4H85B0sULZqZU1W+nhrFwgYY37ZrmcK9rlT8 sr/Ze01Mm6M9gis1Y7kc7r6ss/tnwPEkopTKvawEXMctPPWJBDEok1GSk6PSBZpm6XDT OFnGHPYzbz8E/mv+V1Dz4OJK7GRoNoEt3xnG5QxGD+O/sSmOY0xe8YjLEoaItRxJFx9b hYpBPJLRcwSkyZpx/BKz/fIoD9mWj5AmvPh1QRW66jtMOlkEHoI2aG6umm+gImVhjRH6 EMbQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si1192794eds.574.2020.07.08.20.48.33; Wed, 08 Jul 2020 20:48:55 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbgGIDq1 (ORCPT + 99 others); Wed, 8 Jul 2020 23:46:27 -0400 Received: from foss.arm.com ([217.140.110.172]:57298 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbgGIDq1 (ORCPT ); Wed, 8 Jul 2020 23:46:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8108331B; Wed, 8 Jul 2020 20:46:26 -0700 (PDT) Received: from [192.168.0.129] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A84053F71E; Wed, 8 Jul 2020 20:46:24 -0700 (PDT) Subject: Re: [PATCH v2] vmalloc: Removing incorrect logs when vmalloc failed To: Tian Tao , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: linuxarm@huawei.com References: <1594257288-58269-1-git-send-email-tiantao6@hisilicon.com> From: Anshuman Khandual Message-ID: <9799596a-ac03-2300-dbfb-2244ea706ffd@arm.com> Date: Thu, 9 Jul 2020 09:15:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1594257288-58269-1-git-send-email-tiantao6@hisilicon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/09/2020 06:44 AM, Tian Tao wrote: > It is not possible to increase size with vmalloc= in arm64 Small nit. s/in arm64/on arm64/ In fact "vmalloc=" cmdline option is not available on many platforms. Hence it is not something arm64 specific here, it is a general problem. > architecture and it will mislead.however vmalloc return failure Small nit. s/.however/. However/ > is a rare occurrence in 'many architectures including arm64'. Please reword the commit message here to describe the problem which is a generic one, affecting multiple platforms that dont support "vmalloc=" cmdline option. > > Signed-off-by: Tian Tao > > v2: > Add appropriate hints and let users decide if they can increase > the size of the vmalloc by vmalloc= depending on their platform > --- > mm/vmalloc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c > index 89e83d3..c6ae7e6 100644 > --- a/mm/vmalloc.c > +++ b/mm/vmalloc.c > @@ -1238,8 +1238,8 @@ static struct vmap_area *alloc_vmap_area(unsigned long size, > } > > if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit()) > - pr_warn("vmap allocation for size %lu failed: use vmalloc= to increase size\n", > - size); > + pr_warn("vmap allocation for size %lu failed: use vmalloc= to increase size, > + if your ARCH supports it\n", size); This looks better.