Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1285220lqm; Thu, 2 May 2024 10:02:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwBZAXiM9Ksh8tFpvAwQhDqdf9fN/5se8niIbHxXCSqwQYbTHnLdb9zo8atmT3NDHfxwYB/Dwg/5NhFOxd/1qkZKNanpbO2n1/vjDMBw== X-Google-Smtp-Source: AGHT+IERnqotzJE1lMBjVqSka7VvEIF04bcfLnLXkTVw/gMB5orllH5JsSIAMG6NpUU5FB8WLBLo X-Received: by 2002:a05:6a00:3a01:b0:6ed:9493:bc6d with SMTP id fj1-20020a056a003a0100b006ed9493bc6dmr183622pfb.12.1714669335741; Thu, 02 May 2024 10:02:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714669335; cv=pass; d=google.com; s=arc-20160816; b=0Jb4Xdm132m5uxIsZkByY150P5A/ZdFDDhNoX4EPV++oMPNRgOQ/N1tSkdipiVh6RB bVeb71v/0U4Seo8VarAgThFzCYd+oaTrmkieETD+gT25nU5PPSC9hB7pbex1fQw+Vf7M bSKUuYuHlPeL4bqsU6I4tGjExePrGtpNYliZcewQ3A3vW2m9yO0nargbk1JOYgsm8NEB S+e4Dpwyc+cSaYDzx61MdtxVVbf0YnQH8GUHggBrvtbwLjHSiVXdMHIjNpOY6kCYMFTd CEcaqXdxA41hhYR0Z2w0cduYZqMqNeD3wXziWljhaw+Oi3gZNsRspeZKbI0kiPn6ATOT V7QQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=IrbZFE5o5PMbnzhgpEPHbh7quo4OsFw3oMGrAAHN3fI=; fh=mpDgEwK7j/oZw++pe0PiK2kg7WfOjYEh4gLFA7FjVUA=; b=DjZSS4BbbAtrodjRD26rs0iirrIQiQgo6x2ulFz7Dw5tj+VcX7amDCI0lp8Og8P4Ok /CcKC2cHd6q30YSA81unEesTMks+kJaAoHpEa1DpwFK15SzvXgQZ0v/zpv5FlfsakjvB F2r2VSGOyugPoGJJTFl9apoXMf9k7b+IhZpLadmCqWAz+H7bOAdrG6QN8IjmbnUwDGSW /07FGp6HJi662qhgAJ5qO4FZwEhz/6UnL/gnqaKNhxmhWn+9PDeI28HWtHlpmEbgDKss ykFDH8ZZNGtFint+UiQvz/yrstMT1ttcOixWuwT0BzJgjBuX4wv2bhbZaoeILX06BtR7 rpHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uCpQJWYC; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-166744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f19-20020a056a001ad300b006f2b141ef86si1372836pfv.136.2024.05.02.10.02.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 10:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uCpQJWYC; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-166744-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DA4F5B20C70 for ; Thu, 2 May 2024 16:45:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAEEC16D31C; Thu, 2 May 2024 16:45:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uCpQJWYC" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 CF980664DB for ; Thu, 2 May 2024 16:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714668344; cv=none; b=meuxFn24T635de66nujumhKB5ZSoOxEtsqKGSS6usdL1c/M8NCUWoqiE8u2OFBd2z98MDM0Xx2FsEgsDfcDLoVpmjqjAMDcZMO/66U5UBmkc+bmIYXF8qoudnsVTeKwqAVtjXfyv9Umx1YxevCGSr9I6aN9M0AX1926o/PSgfxo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714668344; c=relaxed/simple; bh=RQfRNvxpFwoyx3yE+JDdi4r+Fa2rw7zgjS/2IOwzmlk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OQ3gZMZns4ZC7BlNta2N4qbjbTbcRnts0bbZCUq0FN+V7thQ34HgzQ2Fs353P6r4f6uNLXHZCzNv3xQoCPwVMPtPpKvTdD/QsZxvbYLoU6QdYdZINhbGMnjyRbjWiqBW3u4+gnij46YzD3BwqUdo/0oe4OP0FRpjawkBdpxS+8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=uCpQJWYC; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 2 May 2024 09:45:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714668338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IrbZFE5o5PMbnzhgpEPHbh7quo4OsFw3oMGrAAHN3fI=; b=uCpQJWYCUE9wb0HAiul07mm9TH86igqjZ66uQf2c3cHUvzQbAj8dXu3SNbZCESEpQG8Kmz PtwqMaWm14eFvCI7p9S1B0IWDltOTxLHJEmeHYD/UWzwAnPuPoAbUzgVaDlUkkmif4Asoo pU4v/2cBY7upyp6DlZc8K2v7n2kZU+o= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Frank van der Linden Cc: linux-mm@kvack.org, muchun.song@linux.dev, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/hugetlb: align cma on allocation order, not demotion order Message-ID: References: <20240430161437.2100295-1-fvdl@google.com> 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-Disposition: inline In-Reply-To: <20240430161437.2100295-1-fvdl@google.com> X-Migadu-Flow: FLOW_OUT On Tue, Apr 30, 2024 at 04:14:37PM +0000, Frank van der Linden wrote: > Align the CMA area for hugetlb gigantic pages to their size, not the > size that they can be demoted to. Otherwise there might be misaligned > sections at the start and end of the CMA area that will never be used > for hugetlb page allocations. > > Signed-off-by: Frank van der Linden > Cc: Roman Gushchin > Fixes: a01f43901cfb ("hugetlb: be sure to free demoted CMA pages to CMA") Reviewed-by: Roman Gushchin Thanks!