Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp97549pxy; Fri, 30 Apr 2021 00:57:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKjo1LT3UqCWBEW3tWuXcDnq1bAwZn7eSWYvuL4Lb1osat5dxT6IcrZmV2sqjBTXVetbqp X-Received: by 2002:a17:902:7005:b029:ec:aead:23fa with SMTP id y5-20020a1709027005b02900ecaead23famr3904401plk.30.1619769445781; Fri, 30 Apr 2021 00:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619769445; cv=none; d=google.com; s=arc-20160816; b=Rp6F4VbPY3yp7q/Hoq3M9JBecBZdh6f/d1H1O7qg4DHgvMameRe88Mt3XkIgwfHPcv lZZkoQPiWzrFc2G75QTY48hNr2T7+4hmIKRHJFkZTSA19f4lyFmFTdz0z1A/9LprMWa6 4DzFwq8N3xnlYzUPUyBbbzgOrz5cInVjid/0vCyFP1OTtqfPTxKx4RjgmJTnlIh0IVqw bmBDGCTeUnkA/Pdo+0Tx3fhjR0u7376sAXG2BlP6r1BEaiwM3/BNViuxV52iKrI5gJg/ RF5jZwDdcq3rtcIjQiUCPba7/68taPfOTdIplkUq5YxRUw6auy0mqKZ7VNe5c0sLhOkq ZpPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jIQ1Se3rrKAme4NWP4S84j+6AqAbBin9ySOVSLX/Dfw=; b=rUZqnOJBbibCWKOn4PHR4YF/xj+/UM/BAd2S6qM5ZHVjiZXLPwKuwgjRRAxTbCG00u hMBMwMAEqADUfego7Uy2IWtCPo5TNCh9S4MdlXMETale4jFszDSvTcR7qGvEPx1AAN5Z SQJI+kOEWjb+CDku06DOvD7jxpawMhw8PTU7yNe5Dmkuzi9MaYuT+Ip4r6e4lDCVSd2e RCMTua+0ErV1BWhIW6wD4tOFUdX1mEmyqgOnZKIusS/fHen8/ejLO2xt68+/oymoKE6U DfUHFNO7H8oQsYJSluiBzc/r3pWDJOecvOdchK33h8EzR7tZHB94aWeK+hKNHiuR5M0p bwbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si2828998plx.358.2021.04.30.00.57.11; Fri, 30 Apr 2021 00:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbhD3H5W (ORCPT + 99 others); Fri, 30 Apr 2021 03:57:22 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:17826 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbhD3H5V (ORCPT ); Fri, 30 Apr 2021 03:57:21 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FWl4T1RwbzBtMY; Fri, 30 Apr 2021 15:54:01 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Fri, 30 Apr 2021 15:56:21 +0800 From: Nanyong Sun To: , , CC: , , , , , Subject: [PATCH -next 0/4] THP supprt for RISCV Date: Fri, 30 Apr 2021 16:28:46 +0800 Message-ID: <20210430082850.462609-1-sunnanyong@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series brings transparent huge pages to RISCV on 64-bit. I have tested these testcases of vm selftest under qemu-riscv64: khugepaged split_huge_page_test transhuge-stress Nanyong Sun (4): riscv: mm: add _PAGE_LEAF macro riscv: mm: make pmd_bad() check leaf condition riscv: mm: add param stride for __sbi_tlb_flush_range riscv: mm: add THP support on 64-bit arch/riscv/Kconfig | 1 + arch/riscv/include/asm/pgtable-64.h | 3 +- arch/riscv/include/asm/pgtable-bits.h | 5 + arch/riscv/include/asm/pgtable.h | 164 +++++++++++++++++++++++++- arch/riscv/mm/tlbflush.c | 17 ++- 5 files changed, 178 insertions(+), 12 deletions(-) -- 2.25.1