From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 952FFC8302F for ; Mon, 30 Jun 2025 12:00:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3745E6B00A4; Mon, 30 Jun 2025 08:00:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3257D6B00AF; Mon, 30 Jun 2025 08:00:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2143F6B00A5; Mon, 30 Jun 2025 08:00:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 0D1946B00AF for ; Mon, 30 Jun 2025 08:00:55 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id AC0BD12356F for ; Mon, 30 Jun 2025 12:00:54 +0000 (UTC) X-FDA: 83611925628.15.0B1BCF5 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by imf09.hostedemail.com (Postfix) with ESMTP id CF6A314000F for ; Mon, 30 Jun 2025 12:00:51 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DvPscIjz; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1751284852; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Lj8uY17jL7Ij6D30Fmw7SUUU6DGdz7khwnluS+BqBfs=; b=hVIcMEIcCqYhnGVS3N3oze1l/DgqJxLNVV2B6Yf1M3PabhkZ4mH0oQEtyvNCJa21pu/OKq dIi0ihboNiR1EPEb69MU4R5aPPCRo/N9zrgKkFjbGLkeTsPtnVIgibsp7qVRG1Mjr9PMiV vNnhsSNEm6W3ifIwnTLpDf1e7A5iJYA= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DvPscIjz; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1751284852; a=rsa-sha256; cv=none; b=Pyr3wzSeLbgL6tEHcTBrTpRz6qSi5hGIIdKvPKq0YaoTr3P1S6mxidgpVkANVZyQCwzg4e pXiG0bhyFeeN8E4UT7uFK+EWy117S1Q7EKx3rjURF7Q2NlNLiRnY6Hf45641/keTVsohYg 9Q7wK2vXIMSrzLGEJbrbd6slambdgzY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751284852; x=1782820852; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3UP6/zsnjMtPAeLt6dXjNe/FngS9HP1K+9JJqvKaSkA=; b=DvPscIjzjwqcdbXTOj1T52KsqcjFrl2lbK7c0wjorSs15C9gdAJNdlw+ xdRmPEPUwM7Fupax/iWsKrDJrqctV9FDHAr23kyyZzb7Kjm5gxIWWqdml PVMth+xH9BweGqBTCgiuBexYUNWMDjqLooxsrGEbdPUIRkZgvk8yegxWg oocDetm+ZW7ypxT1czmoHa6Atz/OQn7CmysWFlQEg0KY7gi05NXWBNM2X /7c6J11dJoW9dMKlxS9RkBmexhmFaayyg5jxMnn7XWVqfMl0DDgsUPJEM KcohkQMu6xHq0vLGwSrwkADz2yM/aFprk74T9UP/lzgWOtlwHmrcQTFw9 Q==; X-CSE-ConnectionGUID: qv+FyQB3Rt+dNMHed5k+ig== X-CSE-MsgGUID: V2BBZg0xTxqYxtZRRii7vg== X-IronPort-AV: E=McAfee;i="6800,10657,11479"; a="53600497" X-IronPort-AV: E=Sophos;i="6.16,277,1744095600"; d="scan'208";a="53600497" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2025 05:00:50 -0700 X-CSE-ConnectionGUID: gxQU/eWrSY6kiHPjHzaXfQ== X-CSE-MsgGUID: avHILRMkRTWpTbGBToP/UQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,277,1744095600"; d="scan'208";a="152827636" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 30 Jun 2025 05:00:47 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uWDBl-000YwY-29; Mon, 30 Jun 2025 12:00:45 +0000 Date: Mon, 30 Jun 2025 19:59:49 +0800 From: kernel test robot To: Dave Airlie , dri-devel@lists.freedesktop.org, linux-mm@kvack.org, Johannes Weiner , Christian Koenig Cc: oe-kbuild-all@lists.linux.dev, Dave Chinner , Kairui Song , Dave Airlie Subject: Re: [PATCH 13/17] ttm/pool: enable memcg tracking and shrinker. Message-ID: <202506301921.i2QYb2bo-lkp@intel.com> References: <20250630045005.1337339-14-airlied@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250630045005.1337339-14-airlied@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CF6A314000F X-Stat-Signature: ywjxfh9hukxqbbk7zoof6gmthmmpoucw X-HE-Tag: 1751284851-493488 X-HE-Me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+EopmaT+WKnz1wOIqgZkX5+KedXVox/NhlJh+dJKvflIulLJUkZgYHNNx74Np1We+fNsLZrVZmKPNnVD45ZSr3iu41XMU72tlU6aKVmJqTTtvMxHpAw3WZUs1Tvrsc2W9yNWs+WGeDDqOVcU3P7EzGxMeImHaqmYWeADk4voDqDW6kSh53+crdhzaY/3HPLwR4ndEhpm2y8pp0+eG+Xin27C+85cn+Pn9jK2P+FZlw4vXRFelEOBAG9tMugxCtMCCrAaQ1/1RHyyqMTnkJrrAtBUDuLmjk2UgqijShYesFm8SnKphZcjv6JFYIKElh967L+td/0wVjQUKnsRfGerfvScD+QpjU8/AoDIw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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-rc4 next-20250630] [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-v2/20250630-134938 base: git://anongit.freedesktop.org/drm/drm drm-next patch link: https://lore.kernel.org/r/20250630045005.1337339-14-airlied%40gmail.com patch subject: [PATCH 13/17] ttm/pool: enable memcg tracking and shrinker. config: riscv-randconfig-001-20250630 (https://download.01.org/0day-ci/archive/20250630/202506301921.i2QYb2bo-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250630/202506301921.i2QYb2bo-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202506301921.i2QYb2bo-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/gpu/drm/ttm/ttm_pool.c: In function 'ttm_pool_restore_commit': >> drivers/gpu/drm/ttm/ttm_pool.c:675:5: error: 'struct page' has no member named 'memcg_data' p->memcg_data = 0; ^~ drivers/gpu/drm/ttm/ttm_pool.c: In function 'ttm_pool_backup': drivers/gpu/drm/ttm/ttm_pool.c:1142:9: error: 'struct page' has no member named 'memcg_data' page->memcg_data = 0; ^~ vim +675 drivers/gpu/drm/ttm/ttm_pool.c 627 628 /* 629 * When restoring, restore backed-up content to the newly allocated page and 630 * if successful, populate the page-table and dma-address arrays. 631 */ 632 static int ttm_pool_restore_commit(struct ttm_pool_tt_restore *restore, 633 struct file *backup, 634 const struct ttm_operation_ctx *ctx, 635 struct ttm_pool_alloc_state *alloc) 636 637 { 638 pgoff_t i, nr = 1UL << restore->order; 639 struct page **first_page = alloc->pages; 640 struct page *p; 641 int ret = 0; 642 643 for (i = restore->restored_pages; i < nr; ++i) { 644 p = first_page[i]; 645 if (ttm_backup_page_ptr_is_handle(p)) { 646 unsigned long handle = ttm_backup_page_ptr_to_handle(p); 647 648 if (IS_ENABLED(CONFIG_FAULT_INJECTION) && ctx->interruptible && 649 should_fail(&backup_fault_inject, 1)) { 650 ret = -EINTR; 651 break; 652 } 653 654 if (handle == 0) { 655 restore->restored_pages++; 656 continue; 657 } 658 659 ret = ttm_backup_copy_page(backup, restore->alloced_page + i, 660 handle, ctx->interruptible); 661 if (ret) 662 break; 663 664 ttm_backup_drop(backup, handle); 665 } else if (p) { 666 /* 667 * We could probably avoid splitting the old page 668 * using clever logic, but ATM we don't care, as 669 * we prioritize releasing memory ASAP. Note that 670 * here, the old retained page is always write-back 671 * cached. 672 */ 673 ttm_pool_split_for_swap(restore->pool, p); 674 copy_highpage(restore->alloced_page + i, p); > 675 p->memcg_data = 0; 676 __free_pages(p, 0); 677 } 678 679 restore->restored_pages++; 680 first_page[i] = ttm_backup_handle_to_page_ptr(0); 681 } 682 683 if (ret) { 684 if (!restore->restored_pages) { 685 dma_addr_t *dma_addr = alloc->dma_addr ? &restore->first_dma : NULL; 686 687 ttm_pool_unmap_and_free(restore->pool, restore->alloced_page, 688 dma_addr, restore->page_caching); 689 restore->restored_pages = nr; 690 } 691 return ret; 692 } 693 694 ttm_pool_allocated_page_commit(restore->alloced_page, restore->first_dma, 695 alloc, nr); 696 if (restore->page_caching == alloc->tt_caching || PageHighMem(restore->alloced_page)) 697 alloc->caching_divide = alloc->pages; 698 restore->snapshot_alloc = *alloc; 699 restore->alloced_pages += nr; 700 701 return 0; 702 } 703 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki