]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
MIPS: Ensure pmd_present() returns false after pmd_mknotpresent()
authorHuacai Chen <chenhc@lemote.com>
Thu, 15 Nov 2018 07:53:54 +0000 (15:53 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit65ba4da54b4f4a8f44b5ac3c1296b82ca1f1cfab
treebdd8208bcb26d24ff31f697ab10268aa85aa714c
parent7a49ab8676fb11a8ce1fef8149dd7d8311dccb33
MIPS: Ensure pmd_present() returns false after pmd_mknotpresent()

BugLink: https://bugs.launchpad.net/bugs/1837257
commit 92aa0718c9fa5160ad2f0e7b5bffb52f1ea1e51a upstream.

This patch is borrowed from ARM64 to ensure pmd_present() returns false
after pmd_mknotpresent(). This is needed for THP.

References: 5bb1cc0ff9a6 ("arm64: Ensure pmd_present() returns false after pmd_mknotpresent()")
Reviewed-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21135/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <james.hogan@mips.com>
Cc: Steven J . Hill <Steven.Hill@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: <stable@vger.kernel.org> # 3.8+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/mips/include/asm/pgtable-64.h