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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6756EC43458 for ; Thu, 9 Jul 2026 13:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JMtwEIlKTdZaLxldjC5PIvxmyHpCc1xgsY08lPo6TW0=; b=BSo63Nu+iH9uuC cVzXXfvaepIhLoOlQgy7sVCnSqHtNNT8FF0BXknIDF2Vz5493fxJfFCysr6x1fIFe/Zfw9IWZZP69 sPuB7iN++idOgJxF5wIbvsubxNGEu1HImVAQfZFyPjPhLLAKfryxNcigMSVAm63Zc31Ypq+prSB/O i6EgWgmvIj3FF8jNLsEXHB+Xy8MPyNIWqvh7FF+uWayXF2CFUrExl5tYMneCQST6Cj+NEvd6FpCU0 zuq1ROW7RczHLGjN+2x9ZbbwcA0NZAvuFJCEQ1jgcCqX945ZPjplgRjo6k+0K5C6amMrcJWOzovAm M/sDhxvPmwKwU+POzMAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1whotU-00000002Zm1-0q9M; Thu, 09 Jul 2026 13:34:24 +0000 Received: from mgamail.intel.com ([192.198.163.19]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1whotQ-00000002Zl8-21Cg for linux-riscv@lists.infradead.org; Thu, 09 Jul 2026 13:34:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1783604060; x=1815140060; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=X3CwQbCqfrcNU9ZylJJlHJqkM//5I2Tgy37tgnnrNBo=; b=I22Ny/ZUw6WJGFctYYlPru+OTcsf1T/aAvF0by00BHLN7iLQdQt/uU/P Dz8HQt+92c27RFPvWmFm0FObx9uAl43pZu74TPX01c/lVUArNwa6D3v27 Crex0nllrdqqsB7lbb5iiS7kMuRwOAU5CUBHagSfKMDlKqVYMsrzQmjOP net2YQk4qkuhowqoxBqXewBoJgihbPWedHNr/9veZKsRXH/CznZ33OJci 3rOIXb9OXSg1+Gd0R/fOjPBy6Mkqzz/e6qKBVfYWYTxVNlkzi2gCAu1sv 78V5VjCly6KZ2rAuyhQKXq9sCU5390XD5ifN6X5b5KSiRZ5wVQrgTxmYn w==; X-CSE-ConnectionGUID: TrUSkzvzSHKAbe1aBb6VbQ== X-CSE-MsgGUID: t5MfQFjPRdiSk9mtrl2wdg== X-IronPort-AV: E=McAfee;i="6800,10657,11841"; a="83258543" X-IronPort-AV: E=Sophos;i="6.25,154,1779174000"; d="scan'208";a="83258543" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2026 06:34:19 -0700 X-CSE-ConnectionGUID: 9cubGrFMQ5SZBjxcss1LVg== X-CSE-MsgGUID: SZ4xYWHESIejiE1wEnNLhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,154,1779174000"; d="scan'208";a="250188140" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 09 Jul 2026 06:34:15 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1whotI-00000000Hih-27Cs; Thu, 09 Jul 2026 13:34:12 +0000 Date: Thu, 9 Jul 2026 21:34:01 +0800 From: kernel test robot To: Vivian Wang , Alexandre Ghiti , Andrew Morton , David Hildenbrand , "Liam R. Howlett" , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Palmer Dabbelt , Paul Walmsley , Suren Baghdasaryan , Vlastimil Babka Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Muchun Song , Vivian Wang Subject: Re: [PATCH v5] mm/sparse-vmemmap: flush_cache_vmap() after hotplugging vmemmap Message-ID: <202607092128.yG6dYQOt-lkp@intel.com> References: <20260707-mark-after-vmemmap-populate-v5-1-77d1ded3cae3@iscas.ac.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260707-mark-after-vmemmap-populate-v5-1-77d1ded3cae3@iscas.ac.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260709_063420_528977_DC5A933E X-CRM114-Status: GOOD ( 15.43 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Hi Vivian, kernel test robot noticed the following build errors: [auto build test ERROR on dc59e4fea9d83f03bad6bddf3fa2e52491777482] url: https://github.com/intel-lab-lkp/linux/commits/Vivian-Wang/mm-sparse-vmemmap-flush_cache_vmap-after-hotplugging-vmemmap/20260707-121114 base: dc59e4fea9d83f03bad6bddf3fa2e52491777482 patch link: https://lore.kernel.org/r/20260707-mark-after-vmemmap-populate-v5-1-77d1ded3cae3%40iscas.ac.cn patch subject: [PATCH v5] mm/sparse-vmemmap: flush_cache_vmap() after hotplugging vmemmap config: riscv-randconfig-002-20260709 (https://download.01.org/0day-ci/archive/20260709/202607092128.yG6dYQOt-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607092128.yG6dYQOt-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/202607092128.yG6dYQOt-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/cacheflush.h:5, from include/linux/highmem.h:8, from include/linux/bvec.h:10, from include/linux/blk_types.h:10, from include/linux/writeback.h:13, from include/linux/memcontrol.h:23, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/riscv/kernel/asm-offsets.c:12: arch/riscv/include/asm/cacheflush.h: In function 'flush_cache_vmap': >> arch/riscv/include/asm/cacheflush.h:60:16: error: 'VMEMMAP_START' undeclared (first use in this function) 60 | (start >= VMEMMAP_START && end <= VMEMMAP_END)) | ^~~~~~~~~~~~~ arch/riscv/include/asm/cacheflush.h:60:16: note: each undeclared identifier is reported only once for each function it appears in >> arch/riscv/include/asm/cacheflush.h:60:40: error: 'VMEMMAP_END' undeclared (first use in this function); did you mean 'MEMREMAP_ENC'? 60 | (start >= VMEMMAP_START && end <= VMEMMAP_END)) | ^~~~~~~~~~~ | MEMREMAP_ENC make[3]: *** [scripts/Makefile.build:184: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=275821313 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1405: prepare0] Error 2 shuffle=275821313 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=275821313 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:248: __sub-make] Error 2 shuffle=275821313 make: Target 'prepare' not remade because of errors. vim +/VMEMMAP_START +60 arch/riscv/include/asm/cacheflush.h 42 43 #ifdef CONFIG_64BIT 44 /* This is accessed in assembly code. cpumask_var_t would be too complex. */ 45 extern DECLARE_BITMAP(new_valid_map_cpus, NR_CPUS); 46 extern char _end[]; 47 static inline void mark_new_valid_map(void) 48 { 49 /* 50 * We don't care if concurrently a cpu resets this value since 51 * the only place this can happen is in handle_exception() where 52 * an sfence.vma is emitted. 53 */ 54 bitmap_fill(new_valid_map_cpus, NR_CPUS); 55 } 56 #define flush_cache_vmap flush_cache_vmap 57 static inline void flush_cache_vmap(unsigned long start, unsigned long end) 58 { 59 if (is_vmalloc_or_module_addr((void *)start) || > 60 (start >= VMEMMAP_START && end <= VMEMMAP_END)) 61 mark_new_valid_map(); 62 } 63 #define flush_cache_vmap_early(start, end) local_flush_tlb_kernel_range(start, end) 64 #endif 65 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv