From nobody Fri Nov 28 13:22:57 2025 X-Original-To: dev-commits-doc-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 4dHv9t14dcz6HRV8 for ; Fri, 28 Nov 2025 13:22:58 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHv9s6tHXz3l41 for ; Fri, 28 Nov 2025 13:22:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764336178; 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=oYzWoq2PkS/aRJBLGiEwuoxbgUek5wmwSZPO0O+vQ6c=; b=AafQmEouhS62tEYRD9p2oWX/e+0oIuEscEd+Mq5ISk3WL8xZzrHY+/K+G/RPtW0yr7vWRR A4pJP/+92fGcv+LFd+NBB0ZENzc+yLm4XAdxP2o20HWmLhHVGbc3HnXu92fR8DelKyEpEr osplHaOtPjbN+knPmC0XlGA9e2gL3Yt72imFT7n4vT5rgEInFOM5SLNj1b+/r+QLZ+M2T2 oraimq8mE4UqH14eevc7WYFfeK8hopAKJ0mKlqm99OzDa63nY+uCgWnXSron7VmKw0TiPD I/M+0icSmu/vBdkUaI6j27wskuCLWs0Ymq7vAcwdSYndCVRQNq6gJiU6XLc8aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764336178; 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=oYzWoq2PkS/aRJBLGiEwuoxbgUek5wmwSZPO0O+vQ6c=; b=PD1rI40dtHi4dGVW+l5MjYcuRRhmGecdGMWyNpReb/WAxwTbRKlUokOrdZeJ8QzDvK/cA5 mJU6XP6m//GUlnW2IEWx/HE2w9PtbWOuijRrDkL0azq7kJFFYdfFGNHeEP43M4ktZQyfIP 8LW1oIXOrsAq05FKHSQlrU0CrriDB0Pgqbo1QZN9f093t88RQk/ozcZ40BrxzbmBi/79MS RN+Ty1ozf7buI5b3w0XoS/CTBqZaLTUoFAhQmci0OwyovnaSonKKU8oS9z5jiqaGUpKIm4 z8hpN9ZawfTPXcy2k2+V4SYgGwCBeaGIHwKbEqJQucNkoHoEfZn8Czy7oRDD7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764336178; a=rsa-sha256; cv=none; b=fYiGYoWJaBHghl3al0AVnCPtyivuCWjxzNonC2Wm9bWoeVzIlIGKUvynNWxVrtdgcp5hMT 1U/VMtgqjjRYA5APniq07lHRz6blIQeLmw3JPKsKEqbUhl+l5Mg5OIsOcGzenrDkqS06RQ 9TA+ioWc+lGrbkSyOGbZw+oyUNs1dNM+TRgH+bss9YD5k1tBop6NVo392SeXoHq3NaqXgg /wgW0BrajHaMamcOBiwggnAqIfO+kL4NSUJas17Mnu7TfNH3/W1ORy1Z0k6Eax6I2f66fZ 66D2DhonbYbLeg/qnS/N8K/ZDH0z8etqiqjZl0CDQiboKNPgavBJYxDqr/iRRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dHv9s6Q2fz13pl for ; Fri, 28 Nov 2025 13:22:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22cec by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 28 Nov 2025 13:22:57 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Olivier Certner Subject: git: d9020ef3c1 - main - Status/2025Q3/drm-drivers-slowdowns_fixes.adoc: Update pkg versions, fix nits List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d9020ef3c1ac5314efb1bc043cfb309418753d77 Auto-Submitted: auto-generated Date: Fri, 28 Nov 2025 13:22:57 +0000 Message-Id: <6929a231.22cec.18c4f941@gitrepo.freebsd.org> The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/doc/commit/?id=d9020ef3c1ac5314efb1bc043cfb309418753d77 commit d9020ef3c1ac5314efb1bc043cfb309418753d77 Author: Olivier Certner AuthorDate: 2025-11-28 13:21:25 +0000 Commit: Olivier Certner CommitDate: 2025-11-28 13:21:25 +0000 Status/2025Q3/drm-drivers-slowdowns_fixes.adoc: Update pkg versions, fix nits Sponsored by: The FreeBSD Foundation --- .../status/report-2025-07-2025-09/drm-drivers-slowdowns_fixes.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/website/content/en/status/report-2025-07-2025-09/drm-drivers-slowdowns_fixes.adoc b/website/content/en/status/report-2025-07-2025-09/drm-drivers-slowdowns_fixes.adoc index 5358c1de53..d33572a58f 100644 --- a/website/content/en/status/report-2025-07-2025-09/drm-drivers-slowdowns_fixes.adoc +++ b/website/content/en/status/report-2025-07-2025-09/drm-drivers-slowdowns_fixes.adoc @@ -28,12 +28,15 @@ In order to better comply with what Linux does, `kmalloc()` was changed to alway Unfortunately, `kvzalloc()`, which relied on `kmalloc()` in our implementation (which was conceptually wrong, but initially harmless in practice), was not switched to rely on `kvmalloc()` in the process, effectively turning large memory allocations of zeroed pages into costly physically contiguous ones. Some rough profiling of slowdowns was done using `dtrace`. -It revealed that a fair amount of execution time of the failing allocations came from attempting multiple allocation on the same NUMA domain, and that of succeeding ones came from useless changes to page attributes, triggering expensive TLB shootdowns. +It revealed that a fair amount of execution time of the failing allocations came from attempting multiple allocations in the same NUMA domain. An analysis of the VM domainset iterators code revealed multiple flaws, in particular leading to re-examining the same domain multiple times (up to 4 times for the common case of machines with a single domain) without any additional guarantees of success for new attempts. Some other VM domainset problems have been fixed in the process, such as ensuring that allocation requests prefer domains not on a low memory condition in all situations. +As for succeeding allocations, they would trigger useless changes to page attributes, leading to expensive TLB shootdowns. Finally, concerning specifically the amdgpu driver and affecting only Carrizo, Polaris and Vega M based AMD GPUs, a temporary allocation that was unnecessarily physically contiguous was replaced with a regular one, making the remaining, relatively short but noticeable freezes disappear. -By contrast with those evoked above, this change is to the `drm-kmod` ports' code, and is to be included at the ports' next version bump in the ports tree (expected ports versions: `5.10.163_9`, `5.15.160_6`, `6.1.128_6` and `6.6.25_7` respectively for `drm-510-kmod`, `drm-515-kmod`, `drm-61-kmod` and `drm-66-kmod`). +By contrast with those evoked above, this change is to the `drm-kmod` ports' code. +It has been included in the lastest version bumps in the ports tree. +Check that your package versions, for `drm-510-kmod`, `drm-515-kmod`, `drm-61-kmod` and `drm-66-kmod`, are respectively equal or greater than ``5.10.163.\*_13``, ``5.15.160.*_8``, ``6.1.128.*_7`` and ``6.6.25.*_6``, where ``*`` stands for the ``__FreeBSD_version`` value on the build system. This work was sponsored by the FreeBSD Foundation as part of the Laptop Project.