Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp969309rdb; Tue, 30 Jan 2024 04:23:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQoR04AOCZPQ8tps3f6pPRsP/s4F2lQvExzHgUM/5Z1HYnsTg7fdYclwziGkVtWwHjskS+ X-Received: by 2002:a17:902:d488:b0:1d8:ae30:eddd with SMTP id c8-20020a170902d48800b001d8ae30edddmr9498754plg.23.1706617387355; Tue, 30 Jan 2024 04:23:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706617387; cv=pass; d=google.com; s=arc-20160816; b=YYW/k1mSMUAh4a0j8gp/4XjFH0O8/OOhFg3+LjMmTLv36MAgT+sTtTFl2+rL/w9b+/ qc6UOf+QVlYxyUZaQn5S+GNq0BA/tHCBsxid/m5eBG0uq/azB1u72o2NLQuZLOL6vDmF s4QkVutuWl+1WI91MJ6PHgxpUGp2Jg7a5zFKLT7Qslk1qfRPU+oz8Mdl+ECgC0Da8UO8 jyxBOCJg6kTeIOeWQ1cc006+6vvtJy77eXYtrqbYYpbNDUj/gS61kc/IGeUidnpDWHFi SHlRfMi9fDS8/XWD0qJhDEsXji1XtPtnq7sci3U/qiewP47IWkGAw16pCOCPr0Hc/GaJ bnMQ== 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:date; bh=EB1oN8dOUIbK4ejujs2HiYhGVZFxIgJJ9yM0W8xs9Fc=; fh=xFt5d7JLtk+mLGWhLW7gyE3YlCLccLuCYIjwMRSKTBU=; b=KkSGy+VNvn5SSZ4VShh4KrM9S5NR5ZnHDTVXk/ew50uX5wG7WoYLkcy7Y743S1S7qC jNfqNtPBd/pzt97ALd9kZ/OZZBLn9NscVF7GpB6WXgIjYSKhR0XksdWUwoa9yxqQ4BYP ZGKA4kjEExExhn3s5LrKGE9g/7xf4y6f6hQXeiUaAM/lvutOcKaXwB8zeTb/2Rasf/E6 1FUs0i7IS2+0YqTXezmEV0WThTBHplJ4NvcdSPoIMjwyE2JGN6z1vAGS8RSZJhP+y/CZ 2H6Cd87qAm+medkg9ZB4Zkzz4hfY4OrGaRUH+cLbXj8JPoXlkwGomcLI4IE1OSE5LDGI RHbQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-44559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m2-20020a170902c44200b001d8eaf6626esi2804234plm.440.2024.01.30.04.23.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:23:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44559-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-44559-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 EFD0DB249FA for ; Tue, 30 Jan 2024 11:56:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B090D67A02; Tue, 30 Jan 2024 11:56:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32D0B67749; Tue, 30 Jan 2024 11:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706615806; cv=none; b=GE0DEj0vdoQUZ/NRlrYl0ZfQzmj9J9C9ExTdhSwD0IcTiAitSQ4nlEtDlpM+XlLJdpfEf0cI471ziWfksfIVr0oU8euZWVLpl3+gFjW3LjbwvL5KgJzB/gXX+FCMocPQWFigBDLCfuv8OenEgDR5sn2NudUI79KYaAeFlXzipRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706615806; c=relaxed/simple; bh=J434d3JUEnJGRx6DbeepNFaekQshHeqk6I1rEBF7TJw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a4C41s9efah6td+QuQNn9GLXTVspsC+PXvcAdNljlU+eWFXNc/Xal+/d/xoOFRukS/t76sGzCghINk6noZj/4qYJ5PFK4ogXfYYqdjDt2umDhiM9/W9pJ0X4dk27HNdO48yucxP8lpVCrf5Rq6iQBcxq1BWeTaOjvf1JvCa4wwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 37B73DA7; Tue, 30 Jan 2024 03:57:27 -0800 (PST) Received: from raptor (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B37A3F762; Tue, 30 Jan 2024 03:56:37 -0800 (PST) Date: Tue, 30 Jan 2024 11:56:31 +0000 From: Alexandru Elisei To: Anshuman Khandual Cc: catalin.marinas@arm.com, will@kernel.org, oliver.upton@linux.dev, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, arnd@arndb.de, akpm@linux-foundation.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, mhiramat@kernel.org, rppt@kernel.org, hughd@google.com, pcc@google.com, steven.price@arm.com, vincenzo.frascino@arm.com, david@redhat.com, eugenis@google.com, kcc@google.com, hyesoo.yu@samsung.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH RFC v3 01/35] mm: page_alloc: Add gfp_flags parameter to arch_alloc_page() Message-ID: References: <20240125164256.4147-1-alexandru.elisei@arm.com> <20240125164256.4147-2-alexandru.elisei@arm.com> <3fbfb5fc-83a4-49da-ba75-9b671ffe0569@arm.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: <3fbfb5fc-83a4-49da-ba75-9b671ffe0569@arm.com> Hi, On Tue, Jan 30, 2024 at 09:56:10AM +0530, Anshuman Khandual wrote: > > > On 1/29/24 17:11, Alexandru Elisei wrote: > > Hi, > > > > On Mon, Jan 29, 2024 at 11:18:59AM +0530, Anshuman Khandual wrote: > >> On 1/25/24 22:12, Alexandru Elisei wrote: > >>> Extend the usefulness of arch_alloc_page() by adding the gfp_flags > >>> parameter. > >> Although the change here is harmless in itself, it will definitely benefit > >> from some additional context explaining the rationale, taking into account > >> why-how arch_alloc_page() got added particularly for s390 platform and how > >> it's going to be used in the present proposal. > > arm64 will use it to reserve tag storage if the caller requested a tagged > > page. Right now that means that __GFP_ZEROTAGS is set in the gfp mask, but > > I'll rename it to __GFP_TAGGED in patch #18 ("arm64: mte: Rename > > __GFP_ZEROTAGS to __GFP_TAGGED") [1]. > > > > [1] https://lore.kernel.org/lkml/20240125164256.4147-19-alexandru.elisei@arm.com/ > > Makes sense, but please do update the commit message explaining how > new gfp mask argument will be used to detect tagged page allocation > requests, further requiring tag storage allocation. Will do, thanks! Alex