[PATCH 1/4] cgroup/dmem: Select PAGE_COUNTER
Simona Vetter
simona.vetter at ffwll.ch
Tue Jan 14 14:53:23 UTC 2025
On Mon, Jan 13, 2025 at 10:26:05AM +0100, Maxime Ripard wrote:
> The dmem cgroup the page counting API implemented behing the
> PAGE_COUNTER kconfig option. However, it doesn't select it, resulting in
> potential build breakages. Select PAGE_COUNTER.
>
> Fixes: b168ed458dde ("kernel/cgroup: Add "dmem" memory accounting cgroup")
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501111330.3VuUx8vf-lkp@intel.com/
> Signed-off-by: Maxime Ripard <mripard at kernel.org>
Reviewed-by: Simona Vetter <simona.vetter at ffwll.ch>
> ---
> init/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/init/Kconfig b/init/Kconfig
> index 61f50cafa815..5e5328506138 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -1137,10 +1137,11 @@ config CGROUP_RDMA
> Attaching processes with active RDMA resources to the cgroup
> hierarchy is allowed even if can cross the hierarchy's limit.
>
> config CGROUP_DMEM
> bool "Device memory controller (DMEM)"
> + select PAGE_COUNTER
> help
> The DMEM controller allows compatible devices to restrict device
> memory usage based on the cgroup hierarchy.
>
> As an example, it allows you to restrict VRAM usage for applications
> --
> 2.47.1
>
--
Simona Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the dri-devel
mailing list