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 4DF37C4707B for ; Mon, 15 Jan 2024 23:50:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B40646B0089; Mon, 15 Jan 2024 18:50:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AF0E06B009B; Mon, 15 Jan 2024 18:50:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9B87B6B009A; Mon, 15 Jan 2024 18:50:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 887296B007D for ; Mon, 15 Jan 2024 18:50:45 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 60D01A051B for ; Mon, 15 Jan 2024 23:50:45 +0000 (UTC) X-FDA: 81683192850.16.225BB9A Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by imf06.hostedemail.com (Postfix) with ESMTP id 4A31D18000D for ; Mon, 15 Jan 2024 23:50:41 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=oA0HOqWB; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705362643; a=rsa-sha256; cv=none; b=SWrV1o6lDLuZXMpsAx61UCXe/e/7vhc3Ni/UliVtFB3pqcql7ZIahpTXSpEmmbk+MHkL/v /gz58t6qsxSBiSDCjbz3PgghOZ5SlARONn1SxlcAKFv9PH/TZw1nfMWwLIEp4da2QwvdYA s/4QE5idLNK+OC5Vy+rriu1zyUPiG7s= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=oA0HOqWB; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705362643; 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=gDxrjdbCWeirnQiUISbptJ1R+2qtHhBu+leQpPbCXOc=; b=a9KjLytLkj+fL6PEzvXAJu6uCx4FrKpXiF5FqfxuaYaWIvEUr5oLLWb9T4XUPWsA8iD3+Y yt2toLGdVCPES2R4DD+5vzhbBkIycRQhNquqiNPwTlRDhouw1puxx9QmtPkxGgd4umAUbA n9/pzhfWTPfIHFatFz5tD+syrsuwgoA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705362642; x=1736898642; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=u5b66aWTKZMPvC75mhwFJMpFXPJkW3GacA+mBeRFwO0=; b=oA0HOqWBOUWJekPBd5O+nHLp+G623RAGy9B3HlwMHiSMFNHi6JSv44fP AQEyOAgolVTKUBYa51oSwkF21lrPvX672psCBqQG+gap0/+IeZU9j/hTO /R8V7FVBTTGIr3IM2oLjYrh/I4W7NiOipi2eK2eVIyaMmrrfonlmh9tQx TSxjfoEUjTM/vRzArOGl7mS5NLeI3+P3ZTdb7jPCzRAKDDyi/crsOUSnv 9ZGvU8NJ0iEQe0jFkcWOOClRQ7x/9CVbqSGdrpEqM5rL6HGA7c0xIpCoC 74I/je52cFlS073xwMfQ23Pt75NmXWWyPfevpKC84bkN4KUc6L24zRZ7I A==; X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="13207398" X-IronPort-AV: E=Sophos;i="6.04,197,1695711600"; d="scan'208";a="13207398" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2024 15:50:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="733413143" X-IronPort-AV: E=Sophos;i="6.04,197,1695711600"; d="scan'208";a="733413143" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 15 Jan 2024 15:50:34 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rPWiu-000CoW-1S; Mon, 15 Jan 2024 23:50:32 +0000 Date: Tue, 16 Jan 2024 07:49:52 +0800 From: kernel test robot To: Byungchul Park , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: oe-kbuild-all@lists.linux.dev, kernel_team@skhynix.com, akpm@linux-foundation.org, ying.huang@intel.com, namit@vmware.com, vernhao@tencent.com, mgorman@techsingularity.net, hughd@google.com, willy@infradead.org, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, rjgolo@gmail.com Subject: Re: [PATCH v6 6/7] mm: Defer TLB flush by keeping both src and dst folios at migration Message-ID: <202401160753.u2pxHstH-lkp@intel.com> References: <20240115081953.2521-7-byungchul@sk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240115081953.2521-7-byungchul@sk.com> X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 4A31D18000D X-Stat-Signature: ze3bsub7dccyu6stfcxhg56dq9f8y5yb X-HE-Tag: 1705362641-682080 X-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OfyS1lp+MSxgR6BuLx5tHaTIADp4bM0EXGdBGLwtq8mkIwj+YiwseX3L6hgV6Jv4tVeNtC9gS5xJdGS/hkJvJOi/I+SLQ/x4WIKOb7wG9Ej3+pejP8Sv+LSVlA1LTNK/fcGUQ2THa6GASp4sp2f1SYZXBFogJKPOYs4nyd8NlxKMyNdpPz5iDda/W8QMCTawkIEnFyuxoMKv6MrhORnrlEPPO6M7FRIfyJRz0OCR29OtHPaS0emfnhSj+ermCe8Blcrmbiar78ofMc4H5axuLwq7V+No8/tGQQlFAJ2Kn0zH6QA== 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 Byungchul, kernel test robot noticed the following build warnings: [auto build test WARNING on 0dd3ee31125508cd67f7e7172247f05b7fd1753a] url: https://github.com/intel-lab-lkp/linux/commits/Byungchul-Park/x86-tlb-Add-APIs-manipulating-tlb-batch-s-arch-data/20240115-162220 base: 0dd3ee31125508cd67f7e7172247f05b7fd1753a patch link: https://lore.kernel.org/r/20240115081953.2521-7-byungchul%40sk.com patch subject: [PATCH v6 6/7] mm: Defer TLB flush by keeping both src and dst folios at migration config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20240116/202401160753.u2pxHstH-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240116/202401160753.u2pxHstH-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/202401160753.u2pxHstH-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from arch/alpha/kernel/asm-offsets.c:11: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/asm-offsets.c:15:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes] 15 | void foo(void) | ^~~ -- In file included from arch/alpha/kernel/traps.c:13: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/traps.c:210:1: warning: no previous prototype for 'do_entArith' [-Wmissing-prototypes] 210 | do_entArith(unsigned long summary, unsigned long write_mask, | ^~~~~~~~~~~ arch/alpha/kernel/traps.c:232:1: warning: no previous prototype for 'do_entIF' [-Wmissing-prototypes] 232 | do_entIF(unsigned long type, struct pt_regs *regs) | ^~~~~~~~ arch/alpha/kernel/traps.c:399:1: warning: no previous prototype for 'do_entDbg' [-Wmissing-prototypes] 399 | do_entDbg(struct pt_regs *regs) | ^~~~~~~~~ arch/alpha/kernel/traps.c:435:1: warning: no previous prototype for 'do_entUna' [-Wmissing-prototypes] 435 | do_entUna(void * va, unsigned long opcode, unsigned long reg, | ^~~~~~~~~ arch/alpha/kernel/traps.c:720:1: warning: no previous prototype for 'do_entUnaUser' [-Wmissing-prototypes] 720 | do_entUnaUser(void __user * va, unsigned long opcode, | ^~~~~~~~~~~~~ arch/alpha/kernel/traps.c:975:1: warning: no previous prototype for 'trap_init' [-Wmissing-prototypes] 975 | trap_init(void) | ^~~~~~~~~ -- In file included from arch/alpha/kernel/process.c:20: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/alpha/include/asm/io.h:8, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/alpha/include/asm/hardirq.h:8, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/kernel_stat.h:9, from arch/alpha/kernel/irq.c:17: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/irq.c:96:1: warning: no previous prototype for 'handle_irq' [-Wmissing-prototypes] 96 | handle_irq(int irq) | ^~~~~~~~~~ -- In file included from arch/alpha/include/asm/io.h:8, from include/linux/io.h:13, from include/linux/irq.h:20, from arch/alpha/kernel/irq_alpha.c:8: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/irq_alpha.c:45:1: warning: no previous prototype for 'do_entInt' [-Wmissing-prototypes] 45 | do_entInt(unsigned long type, unsigned long vector, | ^~~~~~~~~ -- In file included from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from arch/alpha/kernel/signal.c:16: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/signal.c:205:1: warning: no previous prototype for 'do_sigreturn' [-Wmissing-prototypes] 205 | do_sigreturn(struct sigcontext __user *sc) | ^~~~~~~~~~~~ arch/alpha/kernel/signal.c:233:1: warning: no previous prototype for 'do_rt_sigreturn' [-Wmissing-prototypes] 233 | do_rt_sigreturn(struct rt_sigframe __user *frame) | ^~~~~~~~~~~~~~~ arch/alpha/kernel/signal.c:523:1: warning: no previous prototype for 'do_work_pending' [-Wmissing-prototypes] 523 | do_work_pending(struct pt_regs *regs, unsigned long thread_flags, | ^~~~~~~~~~~~~~~ -- In file included from arch/alpha/kernel/ptrace.c:11: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/ptrace.c:322:26: warning: no previous prototype for 'syscall_trace_enter' [-Wmissing-prototypes] 322 | asmlinkage unsigned long syscall_trace_enter(void) | ^~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/ptrace.c:334:1: warning: no previous prototype for 'syscall_trace_leave' [-Wmissing-prototypes] 334 | syscall_trace_leave(void) | ^~~~~~~~~~~~~~~~~~~ -- In file included from arch/alpha/kernel/time.c:28: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/time.c:64:6: warning: no previous prototype for 'arch_irq_work_raise' [-Wmissing-prototypes] 64 | void arch_irq_work_raise(void) | ^~~~~~~~~~~~~~~~~~~ -- In file included from arch/alpha/include/asm/io.h:8, from arch/alpha/kernel/io.c:10: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/io.c:654:1: warning: no previous prototype for 'scr_memcpyw' [-Wmissing-prototypes] 654 | scr_memcpyw(u16 *d, const u16 *s, unsigned int count) | ^~~~~~~~~~~ -- In file included from arch/alpha/include/asm/io.h:8, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/alpha/include/asm/hardirq.h:8, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/pci.h:38, from arch/alpha/kernel/pci.c:17: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/pci.c:285:1: warning: no previous prototype for 'pcibios_claim_one_bus' [-Wmissing-prototypes] 285 | pcibios_claim_one_bus(struct pci_bus *b) | ^~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/alpha/include/asm/io.h:8, from arch/alpha/kernel/core_cia.c:16: >> include/linux/mm.h:2046:43: warning: 'struct arch_tlbflush_unmap_batch' declared inside parameter list will not be visible outside of this definition or declaration 2046 | static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/core_cia.c:284:1: warning: no previous prototype for 'cia_pci_tbi_try2' [-Wmissing-prototypes] 284 | cia_pci_tbi_try2(struct pci_controller *hose, | ^~~~~~~~~~~~~~~~ arch/alpha/kernel/core_cia.c:580:1: warning: no previous prototype for 'cia_save_srm_settings' [-Wmissing-prototypes] 580 | cia_save_srm_settings(int is_pyxis) | ^~~~~~~~~~~~~~~~~~~~~ arch/alpha/kernel/core_cia.c:606:1: warning: no previous prototype for 'cia_restore_srm_settings' [-Wmissing-prototypes] 606 | cia_restore_srm_settings(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ .. vim +2046 include/linux/mm.h 2040 2041 #if defined(CONFIG_MIGRATION) && defined(CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH) 2042 extern void migrc_flush_start(void); 2043 extern void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch); 2044 #else 2045 static inline void migrc_flush_start(void) {} > 2046 static inline void migrc_flush_end(struct arch_tlbflush_unmap_batch *arch) {} 2047 #endif 2048 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki