Message ID | 20221023133205.3493564-1-guoren@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B8B7ECAAA1 for <linux-mm@archiver.kernel.org>; Sun, 23 Oct 2022 13:33:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E3049900004; Sun, 23 Oct 2022 09:33:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE080900002; Sun, 23 Oct 2022 09:33:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA87A900004; Sun, 23 Oct 2022 09:33:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id BCDCA900002 for <linux-mm@kvack.org>; Sun, 23 Oct 2022 09:33:50 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 99C84A0148 for <linux-mm@kvack.org>; Sun, 23 Oct 2022 13:33:50 +0000 (UTC) X-FDA: 80052307020.20.20137D2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id 447DD2002C for <linux-mm@kvack.org>; Sun, 23 Oct 2022 13:33:50 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 47B7460E05; Sun, 23 Oct 2022 13:33:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11926C4314B; Sun, 23 Oct 2022 13:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666532028; bh=QJ7fR+gHywsczUhCwjPOdR2Nl2xq5s+MM7Zax4w8w9w=; h=From:To:Cc:Subject:Date:From; b=Y22/Nw6qhMXCSnZbqhtnLDFteTfssdSmaPHl1PMAiT1VRJoveIq/uCM0ERbB8h131 4sDIRXSjSdnNyY8heVMn78H9JBlSjFGUBEzNBN0WfG6fy5paB+J07Rmt/gbax7UpP7 BbBXon3Yfgn6RQTnKs/LY0SBUtZaGb+YS3fJAAYU0w7GLuiECDx+TjqyQHzDi9a7HE cSFn0brFJiP6dK7IAvjvUmrSjQV1XTkxHkBJRYCdzJc0TNOSPuTwin8/la2vRy0naR kdb++uEG6YhGrvaVccMsffZPkSKfmY7zRYlHt0hU//YhzCGPtZYTfmnJHnLme2VcPq V3M5NIC2fja9Q== From: guoren@kernel.org To: guoren@kernel.org, palmer@dabbelt.com, palmer@rivosinc.com, heiko@sntech.de, arnd@arndb.de, songmuchun@bytedance.com, catalin.marinas@arm.com, chenhuacai@loongson.cn, Conor.Dooley@microchip.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-mm@kvack.org, Guo Ren <guoren@linux.alibaba.com> Subject: [PATCH 0/2] Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP & fixup race condition on PG_dcache_clean Date: Sun, 23 Oct 2022 09:32:03 -0400 Message-Id: <20221023133205.3493564-1-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666532030; a=rsa-sha256; cv=none; b=xvumlQZU+omJxkzo86TXD7KfH50uxJhesE25/VOAU+X+VOmazJ+kDdNxR4KYvWqfYHegnM IzkamqeL+l41bO7Dg7/odkrP9O0/y8j7hHlrHvmId6qw16FFYGRdXqRI3nIoHAqaLebrfv WXAu5XSZ+FyQx+MlzkS7SKkO9GzW4ig= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Y22/Nw6q"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf03.hostedemail.com: domain of guoren@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=guoren@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666532030; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=nN/fEq0qzrxPHDqB0C0PnErakmlV4Wx+Hpprk8fOdPQ=; b=GzfkGJcDvVhUd2kGIdtopBaXlp3hy1N3eKY0xJ5mWXIkC+siO8WKxnDB/5zs6cHUGbm7z9 cD4e+SJEy4H9BU/43sFh+UbgSHxb+0KDiShBgUfCrJV/ww8mPRF9tH6e7GGxoPkEfxPXEu JQAvzZ2Zu/EGD6DqCkuW9BId/vXGVQM= Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Y22/Nw6q"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf03.hostedemail.com: domain of guoren@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=guoren@kernel.org X-Rspamd-Server: rspam04 X-Rspam-User: X-Stat-Signature: s8xh33k8t51z4n65mwxaz18zzakqukbp X-Rspamd-Queue-Id: 447DD2002C X-HE-Tag: 1666532030-203173 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP & fixup race condition on PG_dcache_clean
|
expand
|
From: Guo Ren <guoren@linux.alibaba.com> The first patch fixup race condition on PG_dcache_clean which found in arm64. Then enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP and tested with simple hugetlbfs test case. # cat /proc/sys/vm/hugetlb_optimize_vmemmap 1 # echo 8 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages # mount -t hugetlbfs none test/ -o pagesize=2048k # ./myhugemap_test # umount test/ # echo 0 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages No problem found. Guo Ren (2): riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte riscv: Enable ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP arch/riscv/Kconfig | 1 + arch/riscv/include/asm/cacheflush.h | 3 +++ arch/riscv/mm/cacheflush.c | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-)