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 9A30AC282D1 for ; Thu, 6 Mar 2025 05:08:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B576B6B0093; Thu, 6 Mar 2025 00:08:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AE2756B0095; Thu, 6 Mar 2025 00:08:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 95B3E6B0096; Thu, 6 Mar 2025 00:08:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 74CE56B0093 for ; Thu, 6 Mar 2025 00:08:41 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8647FB832A for ; Thu, 6 Mar 2025 05:08:42 +0000 (UTC) X-FDA: 83189946084.29.1180BD9 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by imf17.hostedemail.com (Postfix) with ESMTP id A7D1340002 for ; Thu, 6 Mar 2025 05:08:39 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="m/Y3tDLq"; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 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=1741237720; 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=8G2aY5sjB6hS79dBzmv3nLrVDBe7J/6IiIOIxegPv5I=; b=PouTBNiQjWMLPDF4pHU3FapND6zLAuW/Dzrzym7MOIuP0Es7XdpJtCSj1AZ8uwVpiCt3YN 3f7iAaFBUWXG/oxKIVpsxXKJ6nIcw6L2bQYs/eAjMEk0saAdAokOMT0wcjyfSQBngP9NMA y8kzbz7ibiWxD+/RZm1O/2biGj15NVU= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="m/Y3tDLq"; spf=pass (imf17.hostedemail.com: domain of lkp@intel.com designates 198.175.65.13 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=1741237720; a=rsa-sha256; cv=none; b=7UmrBlgAOHykcpp98tZlz/4+6cs62LZVYct0hvqD2DDPovJfVzXtGb2GflR8rPQdjhIudP 7OHr8sLSIqEAdXqAX7KaeTWY6S/hYUxvWw43+0OnH4zgvmuG8ZQx0EVsWaPJT/J7oeZM19 YSOzmp8183VHiekcj81jP4b1KIQ0yvI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741237720; x=1772773720; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+viV11nQBG/pa4OYx4X5/r1x+AdDiOmvsrgtAtgFNcs=; b=m/Y3tDLqChQIQPghDS4zhiI9tqp9PyPoTPIBqYiAvZHE1RZGhZ1eQT9e brgI0HXv4GVfxfXQpB403dOWjR9Ml97v50GXiuhaRu10XfG+jM/vYUHvL ISAiJD+sE6nGgtKhJys9SqAeidZeAb9SGywyv/u87WdSUwsQypZQCbp7+ 87yghIc6HbN0IjbsNuXy2u3NcykqtlaZFS3daGv5BwzKrCJvsurm+lWq/ OUU20jjNzJt2HwphPj5z4j67SjG/RYuPDF2JeQfPBD46X94stRovJznQY x6fSb+Ey4GGH1in+LPA8YyBWyF4CFwKRfKnK1makdPR/Wr0LmEtLVLuWE A==; X-CSE-ConnectionGUID: HXkkZ94hSvmOo/wu6msZbQ== X-CSE-MsgGUID: 9JM43RmWRiia2nYXEPtdmA== X-IronPort-AV: E=McAfee;i="6700,10204,11363"; a="53216192" X-IronPort-AV: E=Sophos;i="6.14,225,1736841600"; d="scan'208";a="53216192" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2025 21:08:39 -0800 X-CSE-ConnectionGUID: 3xZfakiyQbySmXPipKosRQ== X-CSE-MsgGUID: oTR3TydRSpSUiPDMcps1RA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="119822472" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa008.jf.intel.com with ESMTP; 05 Mar 2025 21:08:34 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tq3TD-000MYs-1d; Thu, 06 Mar 2025 05:08:31 +0000 Date: Thu, 6 Mar 2025 13:08:16 +0800 From: kernel test robot To: Ryan Roberts , Catalin Marinas , Will Deacon , Pasha Tatashin , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , David Hildenbrand , "Matthew Wilcox (Oracle)" , Mark Rutland , Anshuman Khandual , Alexandre Ghiti , Kevin Brodsky Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Ryan Roberts , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 04/11] arm64/mm: Refactor __set_ptes() and __ptep_get_and_clear() Message-ID: <202503061237.QurSXHSC-lkp@intel.com> References: <20250304150444.3788920-5-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250304150444.3788920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q5X7+laLSijmPP5lE+xophhDuoB05mdWLNu5m4EoKaeiXk gtJxg4+o uSBvOdbjNevElmgu3zuYtfEGPdKGTqNy6Y1MiG1Kfmm3mxlLU4Z7GX1j/ThPCTJxVh3tXnPzDEQ4f0SPcNIkx0vte20KxKkDuO8OQQMFHFkCQl3w5xTiwnnrwBbPrcxPn4SOsJmFlY8Q4iNDdTC4tEbZ9QOngzqSP1baD8LUEOfC2ujhEDp53F2dA8U3lRpi0uFsCfRjbH0V9WVBvvsQSAYB9/5QiXeTUNRW2TtS2tepuy5mJdg0aznhKNucq3JR+/63s3Dvb1xKoyoHGWJVOjAFS4fSIjwPTPnY4NuoTXhBgj3gsXciMbWqfLRXS2CWKK8HXNQaXfOrONxiSUGocdaznPAymZZDdlhASEO8uneED7b2lR4ejRslr5u6GHEYMBl4hs2eId0LjBFoEQxxIIJNDpMQfUI8I3kogn69QRChMRIX+GWuQdPi7jnBzsbnKYGN+sABe/u4Yjk0= 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 Ryan, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.14-rc5 next-20250305] [cannot apply to arm64/for-next/core akpm-mm/mm-everything arm-perf/for-next/perf] [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/Ryan-Roberts/arm64-hugetlb-Cleanup-huge_pte-size-discovery-mechanisms/20250304-230647 base: linus/master patch link: https://lore.kernel.org/r/20250304150444.3788920-5-ryan.roberts%40arm.com patch subject: [PATCH v3 04/11] arm64/mm: Refactor __set_ptes() and __ptep_get_and_clear() config: arm64-randconfig-001-20250305 (https://download.01.org/0day-ci/archive/20250306/202503061237.QurSXHSC-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250306/202503061237.QurSXHSC-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/202503061237.QurSXHSC-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/arm64/kernel/asm-offsets.c:12: In file included from include/linux/ftrace.h:10: In file included from include/linux/trace_recursion.h:5: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/arm64/include/asm/hardirq.h:17: 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:14: In file included from arch/arm64/include/asm/io.h:12: In file included from include/linux/pgtable.h:6: >> arch/arm64/include/asm/pgtable.h:639:7: error: duplicate case value '536870912' case PUD_SIZE: ^ include/asm-generic/pgtable-nopud.h:20:20: note: expanded from macro 'PUD_SIZE' #define PUD_SIZE (1UL << PUD_SHIFT) ^ arch/arm64/include/asm/pgtable.h:636:7: note: previous case defined here case PMD_SIZE: ^ include/asm-generic/pgtable-nopmd.h:22:20: note: expanded from macro 'PMD_SIZE' #define PMD_SIZE (1UL << PMD_SHIFT) ^ In file included from arch/arm64/kernel/asm-offsets.c:12: In file included from include/linux/ftrace.h:10: In file included from include/linux/trace_recursion.h:5: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/arm64/include/asm/hardirq.h:17: 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:14: In file included from arch/arm64/include/asm/io.h:12: In file included from include/linux/pgtable.h:6: arch/arm64/include/asm/pgtable.h:1303:7: error: duplicate case value '536870912' case PUD_SIZE: ^ include/asm-generic/pgtable-nopud.h:20:20: note: expanded from macro 'PUD_SIZE' #define PUD_SIZE (1UL << PUD_SHIFT) ^ arch/arm64/include/asm/pgtable.h:1300:7: note: previous case defined here case PMD_SIZE: ^ include/asm-generic/pgtable-nopmd.h:22:20: note: expanded from macro 'PMD_SIZE' #define PMD_SIZE (1UL << PMD_SHIFT) ^ 2 errors generated. make[3]: *** [scripts/Makefile.build:102: arch/arm64/kernel/asm-offsets.s] Error 1 shuffle=4064171735 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1264: prepare0] Error 2 shuffle=4064171735 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=4064171735 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:251: __sub-make] Error 2 shuffle=4064171735 make: Target 'prepare' not remade because of errors. vim +/536870912 +639 arch/arm64/include/asm/pgtable.h 626 627 static inline void set_ptes_anysz(struct mm_struct *mm, pte_t *ptep, pte_t pte, 628 unsigned int nr, unsigned long pgsize) 629 { 630 unsigned long stride = pgsize >> PAGE_SHIFT; 631 632 switch (pgsize) { 633 case PAGE_SIZE: 634 page_table_check_ptes_set(mm, ptep, pte, nr); 635 break; 636 case PMD_SIZE: 637 page_table_check_pmds_set(mm, (pmd_t *)ptep, pte_pmd(pte), nr); 638 break; > 639 case PUD_SIZE: 640 page_table_check_puds_set(mm, (pud_t *)ptep, pte_pud(pte), nr); 641 break; 642 default: 643 VM_WARN_ON(1); 644 } 645 646 __sync_cache_and_tags(pte, nr * stride); 647 648 for (;;) { 649 __check_safe_pte_update(mm, ptep, pte); 650 __set_pte(ptep, pte); 651 if (--nr == 0) 652 break; 653 ptep++; 654 pte = pte_advance_pfn(pte, stride); 655 } 656 } 657 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki