From nobody Sun Aug 30 02:47:16 2026 X-Original-To: dev-commits-src-main@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 4hXc3T46FHz6q1bG for ; Sun, 30 Aug 2026 02:47:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hXc3T0rrGz44PR for ; Sun, 30 Aug 2026 02:47:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788058037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ed6VrONhJK7aUehiyz6Ltkenj2GrP77HaP38Eg0QFTM=; b=brankcYvtrrddwOU1OqVMZ7tE9ZLn83zO4GTwUqloeKRYfhHoibH7HWmsI7Qu4cy48vdg9 tK+A4V1HEbZRR8MXKUSfPhkoXMnrs482WnxjOfKmxP2G0kfh/DUGNWYxApVHvjvwdBiNFr /RrcJlxCvx9hxM/JbxTfDWro4Lzh10YtVD4XOoGOQUihLOn2JBG1fUvKOkZvqYEfDib15E bPViWrglP5FdDRmZDiGmTB0ViGIXbxYsiOkPjz/idi6DVjx8wq9Ci3lzAdRHyg4gMhDuI7 UKES9gUcCYAFg+WqzK7Jkqw3aiyro1JIQX3c0O2Bxm6hmtOekJGV7RZZ46C43w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788058037; a=rsa-sha256; cv=none; b=nIamSNnU8Z2sw4fbqjJKoq9KqfVyYZEwT/57KQgbcXfYYfYvI6Dn9cgBjZdZZ/tXK5sCnh dhibon6v+kdmDJv1nlxXvzq2QKRy7cosr5OYh4/wCTVtEr2qoOkOsOUyV1WeC0plBg47Eu FRq4k22DwufUxFM9BM3a/m7zaCfDL+qR54P3WhpjcCo6deENbq0PpMyJgH/0/SZHD0+xSp lhaxWh6CU/e5MBfBZJ/XRz2IjJNFvi3DHAr2VlMcrInFuGdpmjITxI3Aw8zx/8uhzFeqtu Ra3oidm2x6YkOACjKmj0Yi+Ws4enM8tTpOzaQ+spsMEna8zDyhwIvEOrE7P5VA== 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=1788058037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ed6VrONhJK7aUehiyz6Ltkenj2GrP77HaP38Eg0QFTM=; b=ekJ0dcF36T0jlqlSEfIsQtPaHcaxD8Q2rw9nU3c8kBPJtP6MeBIL1u95N77yTGaye3jlh5 zsRVZkU0xTatbbF7SnuWbi9OWhUkQmQUeJKFHbDD582tMCPXBktzLLFiL2DDVWnkk/WQeo iqZJHE+0/P3Kz6JIZnaZTmzTLh4LikfnBuDIdEwA3DOJxfaT3XCeVkOYMMHi/jkISYwM16 0oeAFlih3dHvjFy8YcWDvgqnVnTQBTqsCpZBMQnOxyOQuyku5Wxwn7CxDbp3X900LOD3pc J8z81wVoHwBZWwEhHcf0LFR3MOf+DfQAgXAuEZpisUcdCJVvvQYUHIIRRpCHQw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hXc3S4QS7z15N4 for ; Sun, 30 Aug 2026 02:47:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46236 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 30 Aug 2026 02:47:16 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 9cdadb31f302 - main - ntb.4: Canonicalize SYNOPSIS and LOADER TUNABLES List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9cdadb31f30251552e112a6fba23acfc6de5cc8b Auto-Submitted: auto-generated Date: Sun, 30 Aug 2026 02:47:16 +0000 Message-Id: <6a9399b4.46236.65609fe5@gitrepo.freebsd.org> The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=9cdadb31f30251552e112a6fba23acfc6de5cc8b commit 9cdadb31f30251552e112a6fba23acfc6de5cc8b Author: Alexander Ziaee AuthorDate: 2026-08-30 02:22:33 +0000 Commit: Alexander Ziaee CommitDate: 2026-08-30 02:28:40 +0000 ntb.4: Canonicalize SYNOPSIS and LOADER TUNABLES Also tag SPDX, and switch X to %d for clarity and consistency. MFC after: 3 days --- share/man/man4/ntb.4 | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/share/man/man4/ntb.4 b/share/man/man4/ntb.4 index fd796d6e48e2..8dd2a596d7e4 100644 --- a/share/man/man4/ntb.4 +++ b/share/man/man4/ntb.4 @@ -1,4 +1,6 @@ .\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2017 Alexander Motin .\" All rights reserved. .\" @@ -30,25 +32,30 @@ .Nm ntb .Nd Non-Transparent Bridge subsystem .Sh SYNOPSIS -To compile it into your kernel, -place the following lines in your kernel configuration file: -.Bd -ragged -offset indent -.Cd "device ntb" -.Ed +.Cd device ntb .Pp -Or, to load it as a module at boot, place the following line in +In .Xr loader.conf 5 : -.Bd -literal -offset indent -ntb_load="YES" -.Ed -.Pp +.Cd hw.ntb.debug_level +.Cd hint.ntb_hw.%d.config +.Cd ntb_load="YES" +.Sh DESCRIPTION +Non-Transparent Bridges connect two computer systems with PCIe +link(s), providing each of them limited access to others memory space, +scratchpad registers and interrupts. +The +.Nm +subsystem uses those resources provided in generic way by hardware drivers +and splits them between several functions, according to specified +configuration. +.Sh LOADER TUNABLES The following tunables are settable from the .Xr loader 8 : -.Bl -ohang +.Bl -tag -width indent .It Va hw.ntb.debug_level Driver debug level. The default value is 0, higher means more verbose. -.It Va hint.ntb_hw. Ns Ar X Ns Va .config +.It Va hint.ntb_hw. Ns Ar %d Ns Va .config Configures a set of NTB functions, separated by commas, and their resource allocation. Each function can be configured as: "[][:[:[:]]]", where: @@ -63,15 +70,6 @@ is a number of doorbells to allocate (empty means all available). The default configuration is empty string, which means single function with all available resources, allowing any driver to attach. .El -.Sh DESCRIPTION -Non-Transparent Bridges connect two computer systems with PCIe -link(s), providing each of them limited access to others memory space, -scratchpad registers and interrupts. -The -.Nm -subsystem uses those resources provided in generic way by hardware drivers -and splits them between several functions, according to specified -configuration. .Sh SEE ALSO .Xr if_ntb 4 , .Xr ntb_hw_amd 4 ,