Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793707387; b=VmD7TZfuJ+jtSSW9NEn7R01EluTb+awFlfMq0cCW8z1Knl1r7MywwERBaieLgEOHwZon hLm7u+Kbng1z02n57AtJl4yPCeWvu36d9f4pu4Bqg/DYfaF9YAmq1Qy0ORaZXsehePhTz Bpu4QWgchvpKRe1vz57zp/snRd9+vto1SsTWlqrkN5qTBygxzqdhBitLv2o7Ydsv28GpB RTYolQ+tqFatydLbjrEl/RF41Th2T3a8kiuceU1fB4ESq0Iww0WwCBLY7JU5kqYF6AR+9 epmiFaR9n0OiprFt5lu05o3biir4mIuLcSjQ389CuGjgpa7IsNA+RFPTDqLqnDrE3Mg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793707387; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc: Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=xlF7/hGIswlwuTf/3O82iPGkmbuNXFeLHRTd6Q4CK+Q=; b=j5d4aIvt3lHSprt57BVkbjZEkhfpuZ2pJwxn9UgfPM3zayAXVXniim5mGHm3QJZ6Xcxk CCDVqmHhFQISZu4ra1ZOX0yq7EHAIvwPn7O7to0/wh76ppGgyTpgFFSJeyEkZyHmS0Q76 YmxPaDyhXFJOYxgI+MsphOfdJkb8Wzqd8UPL1lU2CExwabdMrfYU73wvld3wNcR44+9Nl XeHOjsfIWdTOAXWL2HU60G+3GQ91U3ImKKDkWgzi9f7Si6HtQ2bidxjJEnMnGPmGBgeHQ P0LtKNImb1mj+/OLOK1s+ROb30sW4wAxs66MtXETw+vfkxHb9qcGKYUgXO74CkvUF9w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=S4Uie847; arc=none smtp.remote-ip=115.124.30.131 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B995606A327 for ; Tue, 3 Nov 2026 12:03:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9B995606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=S4Uie847 DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1793707382; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=xlF7/hGIswlwuTf/3O82iPGkmbuNXFeLHRTd6Q4CK+Q=; b=S4Uie847lvx4RtfaKr+/1eQW+XyF8aCNamLR+Ryh0baNAxXZTrK4Y+rvVbV1rKWD2orMSRo29sV6Xz24Nxrv15gudInmxHEk2Q9uKpSgunIyRWyRiRNXDx3lHCtw+V3jla6UoDfDCPwS1ydxjsjLoY+AeD8GN/kcDurGXMJCssU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=fangyu.yu@linux.alibaba.com;NM=1;PH=DS;RN=30;SR=0;TI=SMTPD_---0XE2qGxt_1793707379; Received: from localhost.localdomain(mailfrom:fangyu.yu@linux.alibaba.com fp:SMTPD_---0XE2qGxt_1793707379 cluster:ay36) by smtp.aliyun-inc.com; Tue, 03 Nov 2026 20:03:00 +0800 From: fangyu.yu@linux.alibaba.com To: tomasz.jeznach@linux.dev, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, baolu.lu@linux.intel.com, jroedel@suse.de, zong.li@sifive.com, andrew.jones@linux.dev, anup@brainfault.org, jgg@nvidia.com, jgg@ziepe.ca, kevin.tian@intel.com, atish.patra@linux.dev, skhawaja@google.com, vasant.hegde@amd.com, joerg.roedel@amd.com, tanchi25@mails.ucas.ac.cn, gong.shuai@sanechips.com.cn Cc: fangyu.yu@linux.alibaba.com, guoren@kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm-riscv@lists.infradead.org, Andrew Jones , Nutty Liu Subject: [PATCH v7 01/10] iommu/generic_pt: Fix the RISC-V supported feature mask Date: Tue, 3 Nov 2026 20:02:27 +0800 Message-Id: <20261103120236.53474-2-fangyu.yu@linux.alibaba.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20261103120236.53474-1-fangyu.yu@linux.alibaba.com> References: <20261103120236.53474-1-fangyu.yu@linux.alibaba.com> X-Mailing-List: iommu@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Andrew Jones The RISC-V format advertises Svpbmt to its users, but omits the feature from PT_SUPPORTED_FEATURES. Add it there so configurations which enable Svpbmt pass generic page-table feature validation. Fixes: f196a8668797 ("iommu/riscv: Advertise Svpbmt support to generic page table") Signed-off-by: Andrew Jones Tested-by: Fangyu Yu Reviewed-by: Nutty Liu Reviewed-by: Jason Gunthorpe Signed-off-by: Fangyu Yu --- drivers/iommu/generic_pt/fmt/iommu_riscv64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/generic_pt/fmt/iommu_riscv64.c b/drivers/iommu/generic_pt/fmt/iommu_riscv64.c index b18fc4d109f5..1bb74114fb02 100644 --- a/drivers/iommu/generic_pt/fmt/iommu_riscv64.c +++ b/drivers/iommu/generic_pt/fmt/iommu_riscv64.c @@ -7,7 +7,8 @@ #define PT_SUPPORTED_FEATURES \ (BIT(PT_FEAT_SIGN_EXTEND) | BIT(PT_FEAT_FLUSH_RANGE) | \ BIT(PT_FEAT_RISCV_SVNAPOT_64K) | \ - BIT(PT_FEAT_DETAILED_GATHER)) + BIT(PT_FEAT_DETAILED_GATHER) | \ + BIT(PT_FEAT_RISCV_SVPBMT)) #define PT_FORCE_ENABLED_FEATURES BIT(PT_FEAT_DETAILED_GATHER) #include "iommu_template.h" -- 2.50.1