[PATCH 15/15] ttm: add support for a module option to disable memcg integration

kernel test robot lkp at intel.com
Tue Jul 22 16:52:21 UTC 2025


Hi Dave,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[cannot apply to akpm-mm/mm-everything linus/master v6.16-rc7 next-20250722]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Dave-Airlie/drm-ttm-use-gpu-mm-stats-to-track-gpu-memory-allocations-v4/20250722-104402
base:   git://anongit.freedesktop.org/drm/drm drm-next
patch link:    https://lore.kernel.org/r/20250722014942.1878844-16-airlied%40gmail.com
patch subject: [PATCH 15/15] ttm: add support for a module option to disable memcg integration
config: x86_64-buildonly-randconfig-001-20250722 (https://download.01.org/0day-ci/archive/20250723/202507230039.EESybnUE-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250723/202507230039.EESybnUE-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507230039.EESybnUE-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/ttm/ttm_pool.c:132:27: error: 'CONFIG_DRM_TTM_MEMCG' undeclared here (not in a function); did you mean 'CONFIG_DRM_TTM_HELPER'?
     132 | #define DEFAULT_TTM_MEMCG CONFIG_DRM_TTM_MEMCG
         |                           ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/ttm/ttm_pool.c:133:25: note: in expansion of macro 'DEFAULT_TTM_MEMCG'
     133 | static bool ttm_memcg = DEFAULT_TTM_MEMCG;
         |                         ^~~~~~~~~~~~~~~~~


vim +132 drivers/gpu/drm/ttm/ttm_pool.c

   120	
   121	/*
   122	 * Don't use the memcg aware lru for pooled pages.
   123	 *
   124	 * There are use-cases where for example one application in a cgroup will preallocate 1GB
   125	 * of uncached pages, and immediately release them into the pool, for other consumers
   126	 * to use. This use-case could be handled with a proper cgroup hierarchy, but to allow
   127	 * that use case to continue to operate as-is, add a module option.
   128	 *
   129	 * This still stores the pages in the list_lru, it just doesn't use the memcg when
   130	 * adding/removing them.
   131	 */
 > 132	#define DEFAULT_TTM_MEMCG CONFIG_DRM_TTM_MEMCG
   133	static bool ttm_memcg = DEFAULT_TTM_MEMCG;
   134	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


More information about the dri-devel mailing list