From nobody Tue Aug 13 20:03:07 2024 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 4Wk2PS0WdRz5TKlh; Tue, 13 Aug 2024 20:03:08 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wk2PR4wQfz4vf5; Tue, 13 Aug 2024 20:03:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723579387; 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=Xx+SfBOTNG9KwqQYid5nAN30b+jaYgVMpvNB80dQIDM=; b=algABscX4BEZMQwwVPDQYvGVXooUs58B961sE2P0eGEICVvH2y3I/pbWExVFdBDZ3nX2B7 73K2Z4871i+zMfS0Ibik2k/fL2wYpqL8v+jtvzwzne2CSx7YThXG1kaoN/X6ygD9WtpAAF +FhraTSVFgh4kjgdQSdg40Z/lxzSQ0lSwcaMrdDCnQ/J3mCVMbQyro7z5DBkQK3B4sFZX1 I9ro5JMorx9b/Y5kJBr30L8qoCPLDdFC6X3PSn3Pg2KkZRELGqX1wxMbBHYRX34cn4Z4LB jxyQ3eEQkgVqWb2tbsik0Cpufv3Gb/Tx5ci4O7N/0t3Lu/iH5VV6PqFr44BsHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723579387; a=rsa-sha256; cv=none; b=NZzb0OBSBo+1kWT6SzpooJLU2kH0hOpgJ/PKTj1A+JQRiOEwFgo66s/G4W5VLQR2IPfKNY QZ+u3X3C/NGByBHIa6xfsxlTlMMY1A1mzRmKY6fgXejMJCTGoexml+Fmdig5XP8LOsmxnl hQf6dAYy9QMOYYLodmYPrjbPDIvXWleysJYNTmPZS7LY5caDTF03We3fhSm7T36dJNy0GS PUj7PvmMIcF6R9qiwCDK+60fGYYVSPh/Y15SAbYv+dkXOOLhumfV8LPCcTwbpTcQjgHq9j UFhHd90VuwGCNwBWS5/43aVLjffOIgOpqtoJscqoCU+oph1OsuqGlGbiN2Opag== 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=1723579387; 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=Xx+SfBOTNG9KwqQYid5nAN30b+jaYgVMpvNB80dQIDM=; b=ke770jn7shkcuXbM6jV7/ZIpTFsDdFtvDjb/xakOF1CnzdAVUdbGQ1q47WEGX4+neOxHrh q5ahijZEN1GaYPLUJjt2eOmcoxg7LUGHeEZy6/CO2hLLsYjLsVielZj5CkTR0WTxNdg/ow pwsz6Gw6KTyWK458iV/Y4WADtObkroqctnixvtSx8WwBOBABqFg+utEArnhu+/ybvw45mC ATeAmUMcUmKgBSXvb5/jCryhTwMePNpvI9hEtLi0wqAwnimbPPcWK6hC2WtEF5z5pVIhNv aqyPagfxXhCQAnlogX/iMgOMz2V/etNveX8/NnkYsyj/iDHtXBAz1Hp8JB09Pw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wk2PR4TV6zPnw; Tue, 13 Aug 2024 20:03:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47DK37D6007905; Tue, 13 Aug 2024 20:03:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47DK37Kr007902; Tue, 13 Aug 2024 20:03:07 GMT (envelope-from git) Date: Tue, 13 Aug 2024 20:03:07 GMT Message-Id: <202408132003.47DK37Kr007902@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 2777a32588e1 - main - iommu: disable dma by default 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2777a32588e11514a9c7a24cd2915f6d5537cd22 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2777a32588e11514a9c7a24cd2915f6d5537cd22 commit 2777a32588e11514a9c7a24cd2915f6d5537cd22 Author: Ed Maste AuthorDate: 2024-08-13 19:51:34 +0000 Commit: Ed Maste CommitDate: 2024-08-13 20:00:47 +0000 iommu: disable dma by default APIC ID 255 and above require x2APIC and DMAR interrupt remapping. FreeBSD is starting to be tested on high core count Intel systems that meet this criteria. We're going to enable DMAR by default to support this, so default hw.iommu.dma to 0 to avoid a significant performance regression. Reviewed by: kib, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42435 --- sys/dev/iommu/busdma_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iommu/busdma_iommu.c b/sys/dev/iommu/busdma_iommu.c index d870e2af3984..3d554249ba3f 100644 --- a/sys/dev/iommu/busdma_iommu.c +++ b/sys/dev/iommu/busdma_iommu.c @@ -963,7 +963,7 @@ iommu_init_busdma(struct iommu_unit *unit) { int error; - unit->dma_enabled = 1; + unit->dma_enabled = 0; error = TUNABLE_INT_FETCH("hw.iommu.dma", &unit->dma_enabled); if (error == 0) /* compatibility */ TUNABLE_INT_FETCH("hw.dmar.dma", &unit->dma_enabled);