From nobody Sun Oct 11 21:59:44 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 4j2vdx2wsKz6w5c3; Sun, 11 Oct 2026 21:59:49 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4j2vdx2Qwmz55cv; Sun, 11 Oct 2026 21:59:49 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791755989; 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=8K8GIjX6Fc5m3ZMvdbQq+ylkArYtYMAZMTPh3idRz8M=; b=ajMSrPdLGVQy3BBvmcrq0HlHwX0nhyGy75rZGokoa/fVR5Ydt8rBhapJt1DqDZGCjODK26 8MVa9n82gKYdNToQKI0r9gqoFcXMYike0k9KRDdkMmYUK5viGXQpo/D/mI9AcFcdJKAVzT 7iqSA2yfB1A3lptmBIzMG/e5WA0v0cQf7fHgzPeazM/Ep8yrUI5jim8rvkqgjCCMf7sDPZ hiiyCLPEcJiQO2eGKZALLzxpLOsNHp5fGtB4rYACMODvOVX5cJthFm7g6HChpqS78VvMXX BDNQIMPsKDylMZG7kEB1Jl8DnPNba3ofKob4j6ZO5HyvATFjCcNoe9Q5QJ5Y6Q== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791755989; b=yqwuPaHAoCDZRTVb/Hf00yV0nuqIlhipDhZtdNAhzVp5HByUNttZbNNQEa9axwVDah+rUi 2iOV7c+Hz/jOr1A9W0CDOpFiNpU0pPST57gguZL76Mj9UmOo2ScGvg3PTakhhe7zFA++j2 2Urg0tltHvsQ4CIsU1emoUCsoL8Nk7MCziIRUi5TaO/jC2NPNOV3YU2lp6i04lHDqtLwXO jggk0lvJ8d6btVtM9PqTL2lAv/XQTAKuNSqld0oaLbqOseuHTcyU0niLEisyzMFyUvsJRz i7tzENmfEqomQIPTJj/6ZjaiZcnIy0kPOkcUWPZmtvzj+i1/Qi8yHJO57oQJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791755989; 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=8K8GIjX6Fc5m3ZMvdbQq+ylkArYtYMAZMTPh3idRz8M=; b=yMTnIh4KwOWQ9qLLPRpGBk/FM/oT/ck0+4wjvfSo4EUbdFf93zlzkyygsA1RAukcbdcO9s skra4TDn10veRmWniqTkktYNaCNIMFX9zH3Nn4UXscQkCn4vEAYedaNmNFyKd9t4Mhsx9O RvBIScWRHT2dOlK1zBfj4GFxc2HiQn9UdU8X9/fmDjdJ1oQXw+MzQfi2SyqvlLmtaUuAPP P/lvPgxfAZ8zBRZzEme9peuyPgyXFDKMSBcwfFpg5tL7CrG8iFnNDwgn94yo+wjxwlVtsd Ja+/bzO7lpVxszaf9fYAXUhBZtjCsArONk19FLTq6HZtbAPaueexdzjUbiOHsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 "YE2" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4j2vdw6hxsz10pZ; Sun, 11 Oct 2026 21:59:48 +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 16DF06195706; Sun, 11 Oct 2026 21:59:47 +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 E244C2D029EC; Sun, 11 Oct 2026 21:59:46 +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 wQDbOyC6K-SL; Sun, 11 Oct 2026 21:59:45 +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 3447D2D029D8; Sun, 11 Oct 2026 21:59:45 +0000 (UTC) Date: Sun, 11 Oct 2026 21:59:44 +0000 (UTC) From: "Bjoern A. Zeeb" To: Nuno Teixeira cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 9820afb99e6f - main - LinuxKPI: introduce LINUXKPI_DEBUG to enable LinuxKPI debugging In-Reply-To: <69os47n0-559-rr7o-qps-p322so714380@serrofq.bet> Message-ID: References: <6aca83ef.2233a.71da542a@gitrepo.freebsd.org> <69os47n0-559-rr7o-qps-p322so714380@serrofq.bet> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-797733748-1791755985=:11296" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-797733748-1791755985=:11296 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Sun, 11 Oct 2026, Bjoern A. Zeeb wrote: > On Sun, 11 Oct 2026, Nuno Teixeira wrote: > >> Hello Bjoern, >> >> I've just update my laptop world and poudriere jail to >> main-n290042-9f0432041b8f: Sun Oct 11 >> and graphics/drm-612-kmod failed to build: >> >> >> --- dma-fence-array.o --- >> In file included from >> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/drivers/dma-buf/dma-fence-array.c:29: >> In file included from >> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/linuxkpi/bsd/include/linux/dma-fence-array.h:30: >> In file included from >> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/linuxkpi/bsd/include/linux/dma-fence.h:31: >> In file included from >> /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:36: >> /usr/src/sys/compat/linuxkpi/common/include/linux/spinlock.h:32:10: fatal >> error: 'opt_linuxkpi.h' file not found >> 32 | #include "opt_linuxkpi.h" >> | ^~~~~~~~~~~~~~~~ >> --- dma-buf.o --- >> In file included from >> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/drivers/dma-buf/dma-buf.c:53: >> In file included from >> /wrkdirs/usr/ports/graphics/drm-612-kmod/work/drm-kmod-drm_v6.12.110_1/linuxkpi/gplv2/include/linux/dma-buf.h:29: >> In file included from >> /usr/src/sys/compat/linuxkpi/common/include/linux/file.h:39: >> In file included from >> /usr/src/sys/compat/linuxkpi/common/include/linux/fs.h:39: >> In file included from >> /usr/src/sys/compat/linuxkpi/common/include/linux/wait.h:36: >> /usr/src/sys/compat/linuxkpi/common/include/linux/spinlock.h:32:10: fatal >> error: 'opt_linuxkpi.h' file not found >> 32 | #include "opt_linuxkpi.h" >> | ^~~~~~~~~~~~~~~~ >> >> >> Thanks, > > This got added to LINUXKPI_GENSRC (see below). > > I did a clean universe for amd64, arm64, and riscv including drm-kmod master > branch (and > I am sure all the other branches as well as all my desktops/laptops over the > last year > since this was stuck in review--multiple times). > > Hmm, this is just another DOH moment... and I admit ... oh well. Yeah, I > never > build drm-kmod outside my src builds. > > I am not sure why drm-kmod does not use the supplied general lists for > includes and > generic sources to add but yeah, that ain't work. > > If no one beats me to it, I'll open yet another pull request later, first > just to add > opt_linuxkpi.h which will need to be applied to all supported drm-kmod > branches. > > Thanks for letting me know. Can you try https://github.com/freebsd/drm-kmod/pull/524 > Mind you https://reviews.freebsd.org/D60207 would make that all easier right > away but > it's not there yet but it'll likely cleanup quite some bits then. > > >> Bjoern A. Zeeb escreveu (sábado, 10/10/2026 à(s) 19:29): >> >>> The branch main has been updated by bz: >>> >>> URL: >>> https://cgit.FreeBSD.org/src/commit/?id=9820afb99e6fdc471cb820f321530c52ed2c31ac >>> >>> commit 9820afb99e6fdc471cb820f321530c52ed2c31ac >>> Author: Bjoern A. Zeeb >>> AuthorDate: 2025-11-25 17:17:55 +0000 >>> Commit: Bjoern A. Zeeb >>> CommitDate: 2026-10-10 18:28:33 +0000 >>> >>> LinuxKPI: introduce LINUXKPI_DEBUG to enable LinuxKPI debugging >>> >>> This allows us to build kernels which will (if the sysctl is enabled >>> too) show pr_debug() and pr_devel() output. >>> >>> Enable it by default for debug kernels. >>> >>> This option can later also be used for other LinuxKPI parts, like >>> skbuffs, netdevice, rcu, ... to conditionally compile in debugging >>> support to further justify its existence beyond an in-code #define. >>> >>> Sponsored by: The FreeBSD Foundation >>> MFC after: 3 days >>> Reviewed by: dumbbell, emaste >>> Differential Revision: https://reviews.freebsd.org/D54060 >>> --- >>> sys/compat/linuxkpi/common/include/linux/kernel.h | 6 ++++-- >>> sys/conf/kmod.mk | 1 + >>> sys/conf/options | 3 +++ >>> sys/conf/std.debug | 1 + >>> sys/conf/std.nodebug | 1 + >>> 5 files changed, 10 insertions(+), 2 deletions(-) >>> >>> diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk >>> index c35116dfcaa8..c2081be0da5a 100644 >>> --- a/sys/conf/kmod.mk >>> +++ b/sys/conf/kmod.mk >>> @@ -103,6 +103,7 @@ LINUXKPI_GENSRCS+= \ >>> pci_iov_if.h \ >>> pcib_if.h \ >>> vnode_if.h \ >>> + opt_linuxkpi.h \ >>> opt_stack.h >>> >>> .if ${MK_USB} != "no" -- For there shall arise false Christs, and false prophets, and shall shew great signs and wonders; insomuch that, if it were possible, they shall deceive the very elect. Behold, I have told you before. [Mat. 24:24-25] --0-797733748-1791755985=:11296--