From nobody Fri May 15 21:03:57 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gHKSJ2lHpz6dyhC; Fri, 15 May 2026 21:04:00 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gHKSJ25qkz4CSk; Fri, 15 May 2026 21:04:00 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778879040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qt+IrCmqtvIyBPv9TWHlxlrYI5yIUdtwbBq1JjrJgfw=; b=ByBeFFfvSSQCO7kZ28GLO2k/c+o+mxEVBTUSqbkamBbxYBhVps3N9DNPyldvpI8lBebymZ 0JFgXj9VO4yZqW0PgRiS6FZuhIbEDz/yCXO0sP4J58SxcKRPhdfplampyTAvWYScLxAUSI j8cWoV1m/awiBUAIBJ3T3LUm9+Bpim0ohZNuG4JDGTwBLdsVjpAUjMs2N/XU+yTz+KmAh4 +aE9aE+WeoXA+Cg3zXS2JZ9ZWVKPUA3cUTo6ddVqX2ucVgFug+5LdNqjsPvnmzKDD8Q459 wpZsIsrKBd/+1RS3l4wmkRKs5HmYBvy9E6NR8IPNit1VQ38XD++okRuNl/LtaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778879040; a=rsa-sha256; cv=none; b=T18wodA/RX4qmxo6xQRkkWglRLsSob+FnNA1DvWEWChtYm9h/WcCXgDVtnG1tNm/Jlbx27 GrgyvSiiBR8fCXqOyqYt2+BlCXgREYp8j6aYN0GbsB+Pz6frziGY3iksc7eMaToDmL5vkX L0h03ocYD1Z2Mj7xMr/BZvWqT8Wt9O86RX7g7plf0pyo12r59CXKWLMWGRqMMuzeO5Q1pH RN4i4pu0ZkL4hgevvrxCLdz8gX/8BFUHnk4W+43o/yk30w+l7jPlEdP4pQPYlOJoV9jdjR ZUNnFSQVLtH1xIfAcB9CPcbFeO9YIcz4vpCc4LESjzsz7f19iaHfmSECxrW41w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778879040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qt+IrCmqtvIyBPv9TWHlxlrYI5yIUdtwbBq1JjrJgfw=; b=tWrOnUBgGqHQ3qXBrntWR9C20nYT3L3GxaEQ6IBkcO1+Y8wz2V7pNT2tXTq/+ERLMfYWay /2AAyAwqwHflvS4eqSCSshNSc14/wf12N0MyJsHXulqFyDSuHzD/iXPa3NnqH+pmTjW4KW mUowh0CcmkVqMyqA0RYa7MYGylj+1TJWyqj0oh4141GTIyNs6XDbAqXqVqIJyBI24ccE83 lBQTb1FfMDD36k9Pvqi7r0Iwuh4rKE9S4j/BNwV+PUGK6N7cC/GwG2CJxZvt5LiFAp2vjq 2LtB/vsjcumNRhl7W86oGJpkMvQ9s1xFOtKLKSUel3M8fhW0MqBut/Vx4nhPkg== Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E7" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gHKSJ0dpxzPm2; Fri, 15 May 2026 21:04:00 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (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 mx-01.divo.sbone.de (Postfix) with ESMTPS id 6EA3CA64805; Fri, 15 May 2026 21:03:34 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 64DD32D029E9; Fri, 15 May 2026 21:03:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id GHvb6Jy-DUNA; Fri, 15 May 2026 21:03:57 +0000 (UTC) Received: from nv.t4-02.sbone.de (nv.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 568952D029D8; Fri, 15 May 2026 21:03:57 +0000 (UTC) Date: Fri, 15 May 2026 21:03:57 +0000 (UTC) From: "Bjoern A. Zeeb" To: Ruslan Bukin cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: bcecad2c24aa - main - riscv: IOMMU support In-Reply-To: <6a02fef9.3c055.3a6526da@gitrepo.freebsd.org> Message-ID: <5poorp6p-3r7-317r-p54q-355r73r852r@mnoonqbm.arg> References: <6a02fef9.3c055.3a6526da@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Tue, 12 May 2026, Ruslan Bukin wrote: > The branch main has been updated by br: > > URL: https://cgit.FreeBSD.org/src/commit/?id=bcecad2c24aa500913559c00f1be8b364a3ff150 > > commit bcecad2c24aa500913559c00f1be8b364a3ff150 > Author: Ruslan Bukin > AuthorDate: 2026-05-12 10:09:04 +0000 > Commit: Ruslan Bukin > CommitDate: 2026-05-12 10:11:32 +0000 > > riscv: IOMMU support > > Support for RISC-V IOMMU spec v1.0.1 (ratified) > https://github.com/riscv-non-isa/riscv-iommu > > Supports translation for PCI devices only. > Supports 1 or 2-level device-directory-table (DDT). > Supports SV39 and SV48 virtual memory system (on per-device basis). > Supports both "standard" and "extended" device-context (DC) structure. > Supports "bypass" mode to disable translation for a particular device. > Supports WSI (Wire-Signalled Interrupts) only. > > This includes both PCI-bus and FDT attachment drivers. > > Note in case of PCI-bus attachment, interrupts are not available. In this > case no error report is provided in case of translation fault. Otherwise > interrupts are not needed. > > Differential Revision: https://reviews.freebsd.org/D55922 > --- > sys/conf/files.riscv | 9 + > sys/riscv/conf/GENERIC | 1 + > sys/riscv/include/bus_dma_impl.h | 3 + > sys/riscv/include/iommu.h | 10 + > sys/riscv/iommu/iommu.c | 1351 ++++++++++++++++++++++++++++++++++++++ > sys/riscv/iommu/iommu.h | 359 ++++++++++ > sys/riscv/iommu/iommu_fdt.c | 145 ++++ > sys/riscv/iommu/iommu_frontend.c | 505 ++++++++++++++ > sys/riscv/iommu/iommu_frontend.h | 38 ++ > sys/riscv/iommu/iommu_if.m | 147 +++++ > sys/riscv/iommu/iommu_pci.c | 172 +++++ > sys/riscv/iommu/iommu_pmap.c | 629 ++++++++++++++++++ > sys/riscv/iommu/iommu_pmap.h | 49 ++ > 13 files changed, 3418 insertions(+) It seems that sys/riscv/conf/NOTES needs to include iommu now as otherwise the build fails with missing symbols. -- Bjoern A. Zeeb r15:7