Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1502607rbb; Mon, 26 Feb 2024 11:15:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVV+5ClKyL42vlDQnajQ4r6OI3Nk/gxQQYfusJFAh14IOEzo3cxldk+MmEZLEdG1LfoXAPlqlARHo4ySchBnnMKXt0cacW9bHSXW+8mdA== X-Google-Smtp-Source: AGHT+IGD1K0007loRascuWITaF0sF+Ekxn77zdpy8RQxjalq6EaOMI7DenL3lURzV5+aHdk3tVW0 X-Received: by 2002:a05:6512:159e:b0:512:fda7:2789 with SMTP id bp30-20020a056512159e00b00512fda72789mr2971212lfb.51.1708974905836; Mon, 26 Feb 2024 11:15:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708974905; cv=pass; d=google.com; s=arc-20160816; b=iFMRuFOTF3Kj4w7vYVMxwVm2/R7Dawni1hZMdrZ0Z2ZJ01DsQbDgnIF3rDrQqGhiKL L6KEwimCA9St3KF5ignD9YHTHSEU5U1Q1NN0KYtVA03P0W6tlYDfkTeAQqA6LYi0x9gD paLaWf/3XorClx/9die4uvRH47Q7ey57LnY83virEnbB7WWV9MQWMp3Tx7qJEh4MGSrH yxWqaR+kZF0KnNFK6i/XIEurcue2xNGEfjou0H08aX8TkdvIW3CbdDA5Bo8/JffYQ2jY M8K9Ht87hjWSYR8RYwVcgVreHjTImo8U8f8/PHoY5zgnECnBeo/XR61JbNonHrz9XD8V 2Eag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=v6MwLJrrXYBXRSnLS0HUIQr41bgxzeyR3PfPxPn9lQ4=; fh=f/00FlpmXtowHbYo/CzymiCywI3RgnKydSvu2d7XNxI=; b=TT2qAPNVJI/Nsa8DnBtV2VXi/YyyGY72RtkKlqB59RB/iUH3BEb9js2n5qN837XJ/R gYEgOziPbfHeZLiwWFf48/FxjzyqfxxE3Fpb+QCif1k+24pw5llTEXxz93CrpKOzq+Q3 OYZhpV10imLW05+PRkVdPlw1GV8mTq5ifHlwZ9NFHYWsPsQ0MXd+gpoatb4aqYW6UzFM ctoc7/4+meR9Naf5Qmh4jyyU5qV1u7EkqKXB09ZhsfXfZRiw1ipCc5J2exzTiGh8daDk ir910E4wd1uuXakSMODmu44jPn0AG51XNWxplPXqTmx0sq2PvQkQF6tyLJRuOM9CyuSx cyGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="d/H/EtMI"; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-82214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82214-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n15-20020aa7d04f000000b00564927677a9si26913edo.346.2024.02.26.11.15.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 11:15:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="d/H/EtMI"; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-82214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82214-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8FC711F28F7E for ; Mon, 26 Feb 2024 19:15:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED1D1130AEA; Mon, 26 Feb 2024 19:10:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="d/H/EtMI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE5FC130AD5 for ; Mon, 26 Feb 2024 19:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708974638; cv=none; b=iSvK0x2OAA5s0JlAdeqIvKlTaa8d7DiJY7IE7rQmld1+NOgWu+7wKJeJMaA8HfK2U7Hfh3A6ZyGL8pxazkmFJDrrfgP4UqGrb73ABItCDcdGQKQyj4GKU9rqi6yP5ZMEUilmpVP/lWbSVL6I7qTdBnJ/qV6HTfWoJKBHueHk2+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708974638; c=relaxed/simple; bh=Q8kPJtYHk31pouePvzRSVpdUlZrGVNhgF7qIYjO68v4=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=fqhQ0zmnwjvfMTNPHGATgHUzthJc+ZzodvENJ4YrGtJGx6mGKHx5bZdcpaZFnklVTROy7O8iWQMdh7KTrgb+DhBdHKd8tyoNESZTci1S4xAY5+hzKMTqgpc/5O+0mecGCtcE9E1DFIsmZ6B3Rp9iGTQJ5fBcC4s2I6tPo2Qcy9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=d/H/EtMI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C885DC433F1; Mon, 26 Feb 2024 19:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1708974638; bh=Q8kPJtYHk31pouePvzRSVpdUlZrGVNhgF7qIYjO68v4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d/H/EtMIF5j8Idssk8RxnYd22THuWd4EEoIOthl/LQv2e+rMTbCQg8TRIKqVNbSyp P2bTi302j/4k3dle+SB6NnzxNHA4RDE/xC+3MxD/o8CtVaBxCuCr7VQyVkHjSBbfgF +1pL4pm8YWk74NTf6HuTGHTXrcrV+fUMGB42LeQU= Date: Mon, 26 Feb 2024 11:10:37 -0800 From: Andrew Morton To: Huang Shijie Cc: bhe@redhat.com, patches@amperecomputing.com, vgoyal@redhat.com, dyoung@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, k-hagio-ab@nec.com, lijiang@redhat.com Subject: Re: [PATCH RESEND] crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled Message-Id: <20240226111037.d76d299db1b26673b876e83a@linux-foundation.org> In-Reply-To: <20240226020433.3353-1-shijie@os.amperecomputing.com> References: <20240226020433.3353-1-shijie@os.amperecomputing.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 26 Feb 2024 10:04:33 +0800 Huang Shijie wrote: > In memory_model.h, if CONFIG_SPARSEMEM_VMEMMAP is configed, > kernel will use vmemmap to do the __pfn_to_page/page_to_pfn, > and kernel will not use the "classic sparse" to do the > __pfn_to_page/page_to_pfn. > > So export the vmemmap when CONFIG_SPARSEMEM_VMEMMAP is configed. > This makes the user applications (crash, etc) get faster > pfn_to_page/page_to_pfn operations too. This is significantly out of sync with development trees. Please take a look at linux-next and redo the patch if still needed?