Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp631583pxb; Wed, 25 Aug 2021 11:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt7vLFDpPEIREtzdES5Zfj5o0hlLcA20UY3Sj+cizMPwzDwQ3ULZM1cws+zvb72/liVKhC X-Received: by 2002:a5d:8e11:: with SMTP id e17mr37278543iod.138.1629915000861; Wed, 25 Aug 2021 11:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629915000; cv=none; d=google.com; s=arc-20160816; b=lxJa7iGUtGmU7jFpPDAmIntKk7P44aHHHZb9YY5JoaWJJlLtPQtErW5bLand25XDlf IRTQaCnDgzSk1ME0gbl8Bh1MR8afmU5W7QT1oYuhLH1y3HPytA1fYlz5q0OUzRfdCqhu xjB1aPDpNMhLtPP34uYFqY/ADNfCop0XD++NZb+xf2lAcHBDsWpJnSRKgl+QTxuixjKR Xj4i1cdYfo+s2oE470qUmOMJh+ZvjedGdGRmSJy92Ash0czWRnuhfeKgk1ONTlSc8mQY 0YMJ1994CLhrSbygA/ZuI9JFgvprDNLqda9IHoL4N33uipKTkxgyLFc5vM39n6nGwpNF 05Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WdamL136JKDHSAEIBeoaD7wGC4BaT4f/MfmjpEHts2Q=; b=Vm5DfGNQLO+CMNOk9sT0L59MiHYRmJgFWBOPAwTNJFdE2DM8Bg7b1S1oJsKH6zbaPI jQbp3M4NIfl7hPDJVaCoueDACuS1NCL2wvVNv9U6r2xnOiPgdYowFqw3/ECrh0KXdCVp hut8fupvubDkfESP/N00KLKGLJF5e8EaDar8nct8CGGFXe9XKA5cGr38oQl00I5viF1b I5VU3GvRfVKAFBO8wfpagfJb2yNe9eOcTdK0FEWWEXhISIvX2v0Un1cFVm1UofyJfzgY je9ZgXNFPzb6wPhuwJFvGsM0byFvHe+a/ZKySwNoXaGiKvUczJ0c7td4VUPnJ6lDPwMr J2Fg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si446842ils.161.2021.08.25.11.09.49; Wed, 25 Aug 2021 11:10:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235182AbhHYSJY (ORCPT + 99 others); Wed, 25 Aug 2021 14:09:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234511AbhHYSJX (ORCPT ); Wed, 25 Aug 2021 14:09:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 14A8460EBD; Wed, 25 Aug 2021 18:08:35 +0000 (UTC) Date: Wed, 25 Aug 2021 19:08:33 +0100 From: Catalin Marinas To: Kefeng Wang Cc: will@kernel.org, ryabinin.a.a@gmail.com, andreyknvl@gmail.com, dvyukov@google.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, elver@google.com Subject: Re: [PATCH v3 2/3] arm64: Support page mapping percpu first chunk allocator Message-ID: <20210825180831.GJ3420@arm.com> References: <20210809093750.131091-1-wangkefeng.wang@huawei.com> <20210809093750.131091-3-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210809093750.131091-3-wangkefeng.wang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 09, 2021 at 05:37:49PM +0800, Kefeng Wang wrote: > Percpu embedded first chunk allocator is the firstly option, but it > could fails on ARM64, eg, > "percpu: max_distance=0x5fcfdc640000 too large for vmalloc space 0x781fefff0000" > "percpu: max_distance=0x600000540000 too large for vmalloc space 0x7dffb7ff0000" > "percpu: max_distance=0x5fff9adb0000 too large for vmalloc space 0x5dffb7ff0000" > > then we could meet "WARNING: CPU: 15 PID: 461 at vmalloc.c:3087 pcpu_get_vm_areas+0x488/0x838", > even the system could not boot successfully. > > Let's implement page mapping percpu first chunk allocator as a fallback > to the embedding allocator to increase the robustness of the system. > > Signed-off-by: Kefeng Wang Reviewed-by: Catalin Marinas