From patchwork Mon Jan 13 09:26:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 13936997 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4640FE7719E for ; Mon, 13 Jan 2025 09:26:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 99CD310E28A; Mon, 13 Jan 2025 09:26:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="CaVPrLz+"; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 769D310E28A for ; Mon, 13 Jan 2025 09:26:16 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 177CD5C53CE; Mon, 13 Jan 2025 09:25:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53031C4CED6; Mon, 13 Jan 2025 09:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736760375; bh=zN8vr8gKCDgzIHKOCZHlsEiuMBVTM1Ku6GESR0iPOnU=; h=From:To:Cc:Subject:Date:From; b=CaVPrLz+r6HPfO9HFyVrJB4hKSMDjcmtu3+dgPLBrIl7QtqmXaawN8rPur9fcKrpd c5NsN4iZzowCkMfV5l2E0EjktHGL7M6Pgl6F2s47OtWP9oV/O4wWGVKNiSZNLOdGXr bhfIlKWuNK4Zmnp85Srcc+3YCoengoEQigiqR7o27ztz7yAwONzI44WDTSSZ1WN6T+ OJkxoeIuD/Z7jDRo1VuZ/hOveqLSyaUpKkIUTwcihFggaZDMtjhaGKsSYiPJMkqcEi AV3rQ73oW5fukQIxQuu2gvi+DS+NDHVsHeW658LdaxKG650rjMaLODsop/QjyNyN/V pd3vA92HFeXxw== From: Maxime Ripard To: Jonathan Corbet , Tejun Heo , Johannes Weiner , =?utf-8?q?Michal_Koutn=C3=BD?= , Simona Vetter , David Airlie Cc: Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, cgroups@vger.kernel.org, kernel test robot Subject: [PATCH 1/4] cgroup/dmem: Select PAGE_COUNTER Date: Mon, 13 Jan 2025 10:26:05 +0100 Message-ID: <20250113092608.1349287-1-mripard@kernel.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Closes: https://lore.kernel.org/oe-kbuild-all/202501111330.3VuUx8vf-lkp@intel.com/ Signed-off-by: Maxime Ripard Reviewed-by: Simona Vetter Acked-by: Tejun Heo --- 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