From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 566CAC3ABB2 for ; Mon, 16 Sep 2024 15:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=T0Tf3ZnPVgqXvXfU0ooLLNty9fVvtTkJzeYdJbHRiqE=; b=J5pfcs1M5qUMdGdnCU5uDTOCyJ o/3C69OskMg+wFJZ5t+jW5qN+nJcBamx1gSGQX1IhXeLqRpDAeJ5yVbV2B1twB3g70aBH+hLjR5zf /ZsQny2CHOUJhVGeIYhRa+qQhPCtk9IZmTEVo8FujvxJb+DWJpUSRfOHD/3CnpRhM7y4Ch5cDt6c5 iH8GcSwYkvjuFreWCYz0I2NGogpvOvjBa0EP/IYOZ0C0zeW3yqEEVGR514sW/0zMsNFQ4qtTkFusV AthmB3S35I7lg8kSF7sB975AMxDqeNa264H7EyoApwoJCaGsikRNUVB7xW4dJRzKm5RTVc7K+P6Aa I6Z2OzBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqDl5-00000004Mew-2ten; Mon, 16 Sep 2024 15:35:23 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqDjz-00000004MXT-1xRh for linux-arm-kernel@lists.infradead.org; Mon, 16 Sep 2024 15:34:16 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 408BA5C5B97; Mon, 16 Sep 2024 15:34:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C51FC4CEC4; Mon, 16 Sep 2024 15:34:13 +0000 (UTC) Date: Mon, 16 Sep 2024 16:34:11 +0100 From: Catalin Marinas To: Yang Shi Cc: will@kernel.org, muchun.song@linux.dev, david@redhat.com, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [v5 PATCH 1/2] hugetlb: arm64: add mte support Message-ID: References: <20240913183404.3517556-1-yang@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240913183404.3517556-1-yang@os.amperecomputing.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240916_083415_571306_4A1BBB6A X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Sep 13, 2024 at 11:34:03AM -0700, Yang Shi wrote: > Enable MTE support for hugetlb. > > The MTE page flags will be set on the folio only. When copying > hugetlb folio (for example, CoW), the tags for all subpages will be copied > when copying the first subpage. > > When freeing hugetlb folio, the MTE flags will be cleared. > > Signed-off-by: Yang Shi The patch looks fine to me: Reviewed-by: Catalin Marinas You may want to rebase and repost after the merging window.