Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp21165rdh; Wed, 20 Dec 2023 14:39:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLMqJeOF6APEOFI3FaZp79D6z39rdxiz1+udyoPqDK246llKvG5TMcXZSFKQNBsNlbsCw1 X-Received: by 2002:a17:903:286:b0:1d3:bda3:4aa7 with SMTP id j6-20020a170903028600b001d3bda34aa7mr5049681plr.33.1703111974782; Wed, 20 Dec 2023 14:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703111974; cv=none; d=google.com; s=arc-20160816; b=wRkO8wgl7iZBr729Yl+1cBmBZBWywzjjOKijSDI6j5o3lSce4oqUWgqHDrmMOIe9Kt hG3GNCA6bK2izNz80APi4hYs3Jd0qQzole1N3xRpVNff+kJy7CVTcaRLm9v+cFyTwr0U j6Lfivi+dtCO+JPMtfzjMptpAGLa9pz4T1xWLrILtUkATpdhQ64m1ble2jfnjxR8cpB5 wJ36Z88YNwnAj2NSBLWYIXbC6ItmQ3kr4TD1009LlM3wUajO/beF+BMNIC/dK2vfECZH vqbklz4wOBs9Ft+kcXIrrOBgSnrhAHDdBwuW6tnUMXiMT8qVb0HgCdVbgsxXmLgnWw5G 1YIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XKw/waEY0zCcxaQ9SoB5/IRd7rPW3LXdoRU8UECZ/NQ=; fh=8+y2HFzOSovWAq/pqmr/LP0kgA2scpuWtjSyofQ4Emk=; b=d94EidF47wKcH9emJ9+QsRO3gMY7cTsrn3jpF0pFfZEYDkW6zEWYfbCo7ncT35fqV1 dmLgXUwuN5wuJx+3Deu+zmvT98cCqlfbGApoa5vjEJU5r7ltLryjd6WtY2MdrM7Rc8bs D1bMaStdsxi8AxEUtz7oYwe2z3TsOg4GQJAQhjIYQ6S6r1970c50l9BmKT2A/nIfAND8 Iu17Nf1eBRM+X3P0Cxyowgpe/95HXGCllUpsLuGcjhpa6jvpyIl9IpoCPZkiRrkh5A1n ZOmoBMj4CYso9Bu8YpRBH+hqBcX1QE7Og5nysmbh4fL2i0ycnZI6kuuqm2eq+VTF0RBq N1xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W2HQct+w; spf=pass (google.com: domain of linux-kernel+bounces-7521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h8-20020a170902748800b001d3c12b6afcsi365920pll.91.2023.12.20.14.39.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:39:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W2HQct+w; spf=pass (google.com: domain of linux-kernel+bounces-7521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CC4E828313C for ; Wed, 20 Dec 2023 22:39:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 984E34AF6C; Wed, 20 Dec 2023 22:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="W2HQct+w" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAE1F22066 for ; Wed, 20 Dec 2023 22:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703111938; x=1734647938; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xXyMG+LIry2D+7Ad77K6/jmOofy2abZHY3ud6DtDnC4=; b=W2HQct+wXvBSBkMLPB7CGn4ErY6Js6v2aT0aoSyyFsskEfe2S6SPOUlK wUIfCAG6nuZM/pu+EbptFvOMO8pYm0/dOilnZti2Wl4qABSTk7i9i4NSk YypYqJFtJQfxB9CMNPSY6ZaUkaS1q7dTtA6a/XZvAd/1KVyC87oE1OV+F 2eiKqGFlfTMdxmHpJ8+bQhuZnfqy4Gih9szE7TIfI2aJYzxN+IgWzfD2v 31BlfLBQUqUZRYd3v8Y7k1Dt6kz6t6vNm2knWW51q7kDKTj0urFS8vzsP /eAw1dpoq5OxOvtc4nXQ+nXwL7n5DfmaXTaZ4RgSzeYiDWnZ6pzUJVaot w==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="3112592" X-IronPort-AV: E=Sophos;i="6.04,292,1695711600"; d="scan'208";a="3112592" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2023 14:38:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,292,1695711600"; d="scan'208";a="18110937" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 20 Dec 2023 14:38:54 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rG5DH-0007bB-0R; Wed, 20 Dec 2023 22:38:51 +0000 Date: Thu, 21 Dec 2023 06:38:31 +0800 From: kernel test robot To: Kinsey Ho , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, yuzhao@google.com, Kinsey Ho , Aneesh Kumar K V Subject: Re: [PATCH mm-unstable v1 4/4] mm/mglru: remove CONFIG_TRANSPARENT_HUGEPAGE Message-ID: <202312210606.1Etqz3M4-lkp@intel.com> References: <20231220040037.883811-5-kinseyho@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231220040037.883811-5-kinseyho@google.com> Hi Kinsey, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Kinsey-Ho/mm-mglru-add-CONFIG_ARCH_HAS_HW_PTE_YOUNG/20231220-120318 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231220040037.883811-5-kinseyho%40google.com patch subject: [PATCH mm-unstable v1 4/4] mm/mglru: remove CONFIG_TRANSPARENT_HUGEPAGE config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20231221/202312210606.1Etqz3M4-lkp@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 7022a24771c8404f847abb226735a3ae21794426) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231221/202312210606.1Etqz3M4-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/202312210606.1Etqz3M4-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/vmscan.c:19: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/vmscan.c:19: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/vmscan.c:19: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:337: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> mm/vmscan.c:3455:7: error: call to undeclared function 'pmd_dirty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3455 | if (pmd_dirty(pmd[i]) && !folio_test_dirty(folio) && | ^ mm/vmscan.c:3455:7: note: did you mean 'pte_dirty'? arch/hexagon/include/asm/pgtable.h:282:19: note: 'pte_dirty' declared here 282 | static inline int pte_dirty(pte_t pte) | ^ 6 warnings and 1 error generated. vim +/pmd_dirty +3455 mm/vmscan.c bd74fdaea14602 Yu Zhao 2022-09-18 3394 b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3395 static void walk_pmd_range_locked(pud_t *pud, unsigned long addr, struct vm_area_struct *vma, b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3396 struct mm_walk *args, unsigned long *bitmap, unsigned long *first) bd74fdaea14602 Yu Zhao 2022-09-18 3397 { bd74fdaea14602 Yu Zhao 2022-09-18 3398 int i; bd74fdaea14602 Yu Zhao 2022-09-18 3399 pmd_t *pmd; bd74fdaea14602 Yu Zhao 2022-09-18 3400 spinlock_t *ptl; bd74fdaea14602 Yu Zhao 2022-09-18 3401 struct lru_gen_mm_walk *walk = args->private; bd74fdaea14602 Yu Zhao 2022-09-18 3402 struct mem_cgroup *memcg = lruvec_memcg(walk->lruvec); bd74fdaea14602 Yu Zhao 2022-09-18 3403 struct pglist_data *pgdat = lruvec_pgdat(walk->lruvec); bd74fdaea14602 Yu Zhao 2022-09-18 3404 int old_gen, new_gen = lru_gen_from_seq(walk->max_seq); bd74fdaea14602 Yu Zhao 2022-09-18 3405 bd74fdaea14602 Yu Zhao 2022-09-18 3406 VM_WARN_ON_ONCE(pud_leaf(*pud)); bd74fdaea14602 Yu Zhao 2022-09-18 3407 bd74fdaea14602 Yu Zhao 2022-09-18 3408 /* try to batch at most 1+MIN_LRU_BATCH+1 entries */ b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3409 if (*first == -1) { b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3410 *first = addr; b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3411 bitmap_zero(bitmap, MIN_LRU_BATCH); bd74fdaea14602 Yu Zhao 2022-09-18 3412 return; bd74fdaea14602 Yu Zhao 2022-09-18 3413 } bd74fdaea14602 Yu Zhao 2022-09-18 3414 b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3415 i = addr == -1 ? 0 : pmd_index(addr) - pmd_index(*first); bd74fdaea14602 Yu Zhao 2022-09-18 3416 if (i && i <= MIN_LRU_BATCH) { bd74fdaea14602 Yu Zhao 2022-09-18 3417 __set_bit(i - 1, bitmap); bd74fdaea14602 Yu Zhao 2022-09-18 3418 return; bd74fdaea14602 Yu Zhao 2022-09-18 3419 } bd74fdaea14602 Yu Zhao 2022-09-18 3420 b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3421 pmd = pmd_offset(pud, *first); bd74fdaea14602 Yu Zhao 2022-09-18 3422 bd74fdaea14602 Yu Zhao 2022-09-18 3423 ptl = pmd_lockptr(args->mm, pmd); bd74fdaea14602 Yu Zhao 2022-09-18 3424 if (!spin_trylock(ptl)) bd74fdaea14602 Yu Zhao 2022-09-18 3425 goto done; bd74fdaea14602 Yu Zhao 2022-09-18 3426 bd74fdaea14602 Yu Zhao 2022-09-18 3427 arch_enter_lazy_mmu_mode(); bd74fdaea14602 Yu Zhao 2022-09-18 3428 bd74fdaea14602 Yu Zhao 2022-09-18 3429 do { bd74fdaea14602 Yu Zhao 2022-09-18 3430 unsigned long pfn; bd74fdaea14602 Yu Zhao 2022-09-18 3431 struct folio *folio; b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3432 b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3433 /* don't round down the first address */ b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3434 addr = i ? (*first & PMD_MASK) + i * PMD_SIZE : *first; bd74fdaea14602 Yu Zhao 2022-09-18 3435 bd74fdaea14602 Yu Zhao 2022-09-18 3436 pfn = get_pmd_pfn(pmd[i], vma, addr); bd74fdaea14602 Yu Zhao 2022-09-18 3437 if (pfn == -1) bd74fdaea14602 Yu Zhao 2022-09-18 3438 goto next; bd74fdaea14602 Yu Zhao 2022-09-18 3439 bd74fdaea14602 Yu Zhao 2022-09-18 3440 if (!pmd_trans_huge(pmd[i])) { bd02df412cbb9a T.J. Alumbaugh 2023-05-22 3441 if (should_clear_pmd_young()) bd74fdaea14602 Yu Zhao 2022-09-18 3442 pmdp_test_and_clear_young(vma, addr, pmd + i); bd74fdaea14602 Yu Zhao 2022-09-18 3443 goto next; bd74fdaea14602 Yu Zhao 2022-09-18 3444 } bd74fdaea14602 Yu Zhao 2022-09-18 3445 bd74fdaea14602 Yu Zhao 2022-09-18 3446 folio = get_pfn_folio(pfn, memcg, pgdat, walk->can_swap); bd74fdaea14602 Yu Zhao 2022-09-18 3447 if (!folio) bd74fdaea14602 Yu Zhao 2022-09-18 3448 goto next; bd74fdaea14602 Yu Zhao 2022-09-18 3449 bd74fdaea14602 Yu Zhao 2022-09-18 3450 if (!pmdp_test_and_clear_young(vma, addr, pmd + i)) bd74fdaea14602 Yu Zhao 2022-09-18 3451 goto next; bd74fdaea14602 Yu Zhao 2022-09-18 3452 bd74fdaea14602 Yu Zhao 2022-09-18 3453 walk->mm_stats[MM_LEAF_YOUNG]++; bd74fdaea14602 Yu Zhao 2022-09-18 3454 bd74fdaea14602 Yu Zhao 2022-09-18 @3455 if (pmd_dirty(pmd[i]) && !folio_test_dirty(folio) && bd74fdaea14602 Yu Zhao 2022-09-18 3456 !(folio_test_anon(folio) && folio_test_swapbacked(folio) && bd74fdaea14602 Yu Zhao 2022-09-18 3457 !folio_test_swapcache(folio))) bd74fdaea14602 Yu Zhao 2022-09-18 3458 folio_mark_dirty(folio); bd74fdaea14602 Yu Zhao 2022-09-18 3459 bd74fdaea14602 Yu Zhao 2022-09-18 3460 old_gen = folio_update_gen(folio, new_gen); bd74fdaea14602 Yu Zhao 2022-09-18 3461 if (old_gen >= 0 && old_gen != new_gen) bd74fdaea14602 Yu Zhao 2022-09-18 3462 update_batch_size(walk, folio, old_gen, new_gen); bd74fdaea14602 Yu Zhao 2022-09-18 3463 next: bd74fdaea14602 Yu Zhao 2022-09-18 3464 i = i > MIN_LRU_BATCH ? 0 : find_next_bit(bitmap, MIN_LRU_BATCH, i) + 1; bd74fdaea14602 Yu Zhao 2022-09-18 3465 } while (i <= MIN_LRU_BATCH); bd74fdaea14602 Yu Zhao 2022-09-18 3466 bd74fdaea14602 Yu Zhao 2022-09-18 3467 arch_leave_lazy_mmu_mode(); bd74fdaea14602 Yu Zhao 2022-09-18 3468 spin_unlock(ptl); bd74fdaea14602 Yu Zhao 2022-09-18 3469 done: b5ff4133617d0e T.J. Alumbaugh 2023-01-18 3470 *first = -1; bd74fdaea14602 Yu Zhao 2022-09-18 3471 } bd74fdaea14602 Yu Zhao 2022-09-18 3472 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki