From nobody Wed Jun 24 16:47:54 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 4glntM3xR8z6jTg0 for ; Wed, 24 Jun 2026 16:47:55 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4glntL6SJHz3Ml1 for ; Wed, 24 Jun 2026 16:47:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782319674; 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=Ww0OcmwiK9BvcKPzuCgEk+pV7M68qb6jasoe1BD6htE=; b=SZBwIhQKBFi9Iyhf7kzSB83NEPPWx+cOolfM2eGS6R5kRwy4P6kDbyuky/zjlw0s6yFXI3 gsS0qVk3RRROFyjdTHWG2LSXHn4WB15ixrjJZOd0pvcs0ugTLXAj8UpeMWmsDvw8bZRQ3c ml6LBOlJE8XdG8ngy0p0B4TFYUji4g+yXFUQ30tORra0/8JwB9BKBZNsOxD9ergLKGutIC 7n64GNTSnoYn+1OtpxA6ScSmpL1+DLgPxgC8OlEe8q3MNUzWInSBMqqQKtBOBqhggwtEO0 1J2zCgsSapRJjsZZMrBqufYWnqN2hCUpSGN8EO5nxjWSz6L1VNIT2fliW3Zm/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782319674; a=rsa-sha256; cv=none; b=j1mnQAWew6PGclnf4Gll7pY04WxyWNYod6BSHkfOfBauJFSu+5cpZS7enDB/unUYglRDGw Dk4TaJ9UBZ3KXdg/JplhLdkldGuh+2bRX2fs9An7dkamRvThp5E2O5LN1f1Vo/rEj+5ifl O/ZkJPN1qrFyZ0bb7cKiovd8bEbPYHpeMG6Vmo1p/pF7DXvabSnjLjBle1mbWkt4LlumEG ohIxPpZh1QhNZ/TftCkSCKAJhJ5ZdoA8UStIe6yFs9/9cNCAO1PgXL5bG9JohPYk8A1QSw g0JhbDvxzfQKyiOSpFjE0omUFX7NiYJHEpBDVEnQXGB9rqHtCteuhNxj/e9xAg== 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=1782319674; 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=Ww0OcmwiK9BvcKPzuCgEk+pV7M68qb6jasoe1BD6htE=; b=ed+zmTJRDt5Plxr+3QgirEzSpjCyCEI49khS2EGZaiO9tXs+lf1u9PpZfw9ORKZD5BwuoB XrkDxSr2qr6zElqRFaloKrIQZFiedawpdV/bR4ICgpJH/EM930ytBv5GLP2r5eJMmTLizp 721Emo4adN1s6OeK0V+VGGnp93dBXsCDq5dKEBwnVEXYqJK4fCcJZeDN6ku6aHdfBUipDo B5nMcILiygkrY9DF98Mh26Fv2Jo2ToVHZ3OR4An9s9Vq1FI1NcGjO5i5zWxGR887R/L53X J7KMIk5yPzIyitUhF4gZgwz48MpQh986RJwri5ecpRLyIlCiUPiwMnDu8JLfwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4glntL56bgzCtS for ; Wed, 24 Jun 2026 16:47:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 31f14 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 24 Jun 2026 16:47:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: b55cc81fcf97 - main - linuxkpi: Add 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b55cc81fcf9718887a51b22f1436f6cc369fa47b Auto-Submitted: auto-generated Date: Wed, 24 Jun 2026 16:47:54 +0000 Message-Id: <6a3c0a3a.31f14.64e2f09f@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=b55cc81fcf9718887a51b22f1436f6cc369fa47b commit b55cc81fcf9718887a51b22f1436f6cc369fa47b Author: Jean-Sébastien Pédron AuthorDate: 2026-06-17 17:22:12 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-06-24 16:47:09 +0000 linuxkpi: Add In this header, we declare empty stubs for all functions, as if `CONFIG_CGROUP_DMEM` was disabled is Linux. The DRM TTM memory manager started to use this in Linux 6.14. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57702 --- .../linuxkpi/common/include/linux/cgroup_dmem.h | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/cgroup_dmem.h b/sys/compat/linuxkpi/common/include/linux/cgroup_dmem.h new file mode 100644 index 000000000000..03c0600c1bee --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/cgroup_dmem.h @@ -0,0 +1,58 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2026 The FreeBSD Foundation + */ + +#ifndef _LINUXKPI_LINUX_CGROUP_DMEM_H_ +#define _LINUXKPI_LINUX_CGROUP_DMEM_H_ + +#include +#include + +struct dmem_cgroup_pool_state; +struct dmem_cgroup_region; + +static inline __printf(2,3) struct dmem_cgroup_region * +dmem_cgroup_register_region(uint64_t size, const char *name_fmt, ...) +{ + return (NULL); +} + +static inline void +dmem_cgroup_unregister_region(struct dmem_cgroup_region *region) +{ +} + +static inline int +dmem_cgroup_try_charge(struct dmem_cgroup_region *region, u64 size, + struct dmem_cgroup_pool_state **ret_pool, + struct dmem_cgroup_pool_state **ret_limit_pool) +{ + *ret_pool = NULL; + + if (ret_limit_pool) + *ret_limit_pool = NULL; + + return (0); +} + +static inline void +dmem_cgroup_uncharge(struct dmem_cgroup_pool_state *pool, uint64_t size) +{ +} + +static inline +bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, + struct dmem_cgroup_pool_state *test_pool, + bool ignore_low, bool *ret_hit_low) +{ + return (true); +} + +static inline void +dmem_cgroup_pool_state_put(struct dmem_cgroup_pool_state *pool) +{ +} + +#endif /* _LINUXKPI_LINUX_CGROUP_DMEM_H_ */