From mboxrd@z Thu Jan 1 00:00:00 1970 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 2A8CD4A24 for ; Sat, 7 Dec 2024 06:14:47 +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=1733552088; cv=none; b=cMWCdu4WRR3QheSQkP31SIjyx6GelvXDJfYAQoe5ZJfqv1IfN18E5djV/P6sJNALMMAyaG0HynRuorYYk55r/wNsUquqCz0mtMRgD/IQbOeXqf6qMOtxNs40OHbZFyp1upV/MPJTPE9qLZpKxhJqsw7cMBKCYLICa/cF2DA/XW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733552088; c=relaxed/simple; bh=FR4jyYVvGAc/QK1Xv+schhqBTtRlolGYuXRzbKnnX1c=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=bbnzdUKuf+OXgtHtlN4KinhfUyaF9wNsYrYEZKhVcf5hJTUjqcYh/Gu0tpaZ9UNCo0B1K/alLi/ARLvJ1yZHIeG8fF4PmYRWBYfh5cohHManOCS/mxVgfMOtwWyFJJNsYeinFhfigpA6fmYsCW3pnrl5Shuv2+uGmx1pxUhWzrY= 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=fo46We9z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="fo46We9z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B3AAC4CECD; Sat, 7 Dec 2024 06:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1733552087; bh=FR4jyYVvGAc/QK1Xv+schhqBTtRlolGYuXRzbKnnX1c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fo46We9zcOKYJ5ZyyFgLQkHdqkJZ2+uqkkvcCqqRLfaeDplZY6Qd1+CTu6hOCmIck HDp8TfGzq2ACTP47vjooMiJJSDUk9puaZZWW034/K7AFWAOqYcrVaLOBH2jYNkth35 adR74FV6p73bFYQYB/JZM9jMDrGxAiqfJV7HE9xU= Date: Fri, 6 Dec 2024 22:14:46 -0800 From: Andrew Morton To: Zhenhua Huang Cc: , , , , , , , , , , Subject: Re: [PATCH 0/2] Fix subsection vmemmap_populate logic Message-Id: <20241206221446.e5e8ea4ed85d0f2884216b82@linux-foundation.org> In-Reply-To: References: <20241121071256.487220-1-quic_zhenhuah@quicinc.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 Fri, 6 Dec 2024 17:13:39 +0800 Zhenhua Huang wrote: > > > On 2024/11/28 15:26, Zhenhua Huang wrote: > > > > > > On 2024/11/21 15:12, Zhenhua Huang wrote: > >> To perform memory hotplug operations, the memmap (aka struct page) > >> will be > >> updated. For arm64 with 4K page size, the typical granularity is 128M, > >> which corresponds to a 2M memmap buffer. > >> Commit 2045a3b8911b ("mm/sparse-vmemmap: generalise > >> vmemmap_populate_hugepages()") > >> optimizes this 2M buffer to be mapped with PMD huge pages. However, > >> commit ba72b4c8cf60 ("mm/sparsemem: support sub-section hotplug") > >> which supports 2M subsection hotplug granularity, causes other issues > >> (refer to the change log of patch #1). The logic is adjusted to populate > >> with huge pages only if the hotplug address/size is section-aligned. > > > > Could any expert please help review ? > > Gentle reminder for review.. > MM developers work on the linux-mm mailing list, which was not cc'ed. Please address Catalin's review comment (https://lkml.kernel.org/r/Z1Mwo5OajFZQYlOg@arm.com) then resend a v2 series with the appropriate cc's.