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 1CA62F45A18 for ; Sat, 11 Apr 2026 02:22:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+FLaRdr2j9P5RhOmGQlZHTqd19TzKhxvfamy1E+hRRs=; b=S095L6SQcWRbbN RPAjw8JNV2LjZj8A9IP35kjYx3GZAphgjgHIxwAwQcITF/vp+3/B5833ZfxWqudBeC4DTeGK8gcMT XYSFdDWgOUdnU0cOk6qBkVBudi2mvPzAzsryPsTJAKIYZaqLU5wzxPsWezS++MutgtcB4nfnJor9l rO897vXiIbmu6fr+xXYh+7bytKERdF1d6tylkEHwuJajjybm4UxsFC/unNAxJdfTwCZ56BXNQy3EV 4hlfvjP+JMYiPRcv97I021o7kKVxAQVfBGNnJhG4w+WTJYGgfSEgF8L9kfZfiZBI1STbz69GcPscr lJgaWKm3mGutNMOZEAlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wBNzf-0000000D3AK-0KAl; Sat, 11 Apr 2026 02:22:43 +0000 Received: from out30-97.freemail.mail.aliyun.com ([115.124.30.97]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wBNza-0000000D396-2rbq; Sat, 11 Apr 2026 02:22:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1775874150; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=srznzHOaf7pJe5RveLZK1Z8x+0sCvPrzabLNg0ujS6M=; b=U5tpkMev2kRRX5MVj0RMn0Q8FaN6n8qpEhLoHwptxjZ7STj5dZ9g74xudaNycAa40oTfpan90WSH3Ya1n1uZldEYcPDCDj1nVray0tcgxYQRL8HE7u5LWvmen/zAvz7E7ieav4+z5iTTpGdEmkMPqZ8Hm3IMb2rlrICGhOtYC+s= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033045133197;MF=fangyu.yu@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0X0miYQU_1775874145; Received: from localhost.localdomain(mailfrom:fangyu.yu@linux.alibaba.com fp:SMTPD_---0X0miYQU_1775874145 cluster:ay36) by smtp.aliyun-inc.com; Sat, 11 Apr 2026 10:22:28 +0800 From: fangyu.yu@linux.alibaba.com To: joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, tjeznach@rivosinc.com, jgg@ziepe.ca, kevin.tian@intel.com, baolu.lu@linux.intel.com, vasant.hegde@amd.com Cc: guoren@kernel.org, iommu@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Fangyu Yu Subject: [PATCH 0/2] iommu/riscv: Support Svpbmt memory types in generic_pt Date: Sat, 11 Apr 2026 10:22:21 +0800 Message-Id: <20260411022223.91029-1-fangyu.yu@linux.alibaba.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260410_192239_431670_717941F6 X-CRM114-Status: UNSURE ( 3.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Fangyu Yu RISC-V Svpbmt adds page-based memory types (PBMT) to PTEs, allowing mappings to be tagged as e.g. normal memory, non-cacheable memory, or I/O. This series wires the RISC-V IOMMU Svpbmt capability into generic_pt and uses PBMT to encode device memory attributes for IOMMU mappings. This series builds on top of the new RISC-V IOMMU page table patches: https://patch.msgid.link/r/0-v3-9dbf0a72a51c+302-iommu_pt_riscv_jgg@nvidia.com Fangyu Yu (2): iommu/riscv: Advertise Svpbmt support to generic page table iommupt: Encode IOMMU_MMIO/IOMMU_CACHE via RISC-V Svpbmt bits drivers/iommu/generic_pt/fmt/riscv.h | 9 +++++++++ drivers/iommu/riscv/iommu.c | 2 ++ include/linux/generic_pt/common.h | 1 + 3 files changed, 12 insertions(+) -- 2.50.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv