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 4A65FEE14A5 for ; Wed, 6 Sep 2023 15:06:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0046440171; Wed, 6 Sep 2023 11:06:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CAEC3440151; Wed, 6 Sep 2023 11:06:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9DA5440171; Wed, 6 Sep 2023 11:06:25 -0400 (EDT) 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 A6646440151 for ; Wed, 6 Sep 2023 11:06:25 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 86860B4126 for ; Wed, 6 Sep 2023 15:06:25 +0000 (UTC) X-FDA: 81206498730.07.999AF05 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf07.hostedemail.com (Postfix) with ESMTP id 5C4E740037 for ; Wed, 6 Sep 2023 15:06:23 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=G8EXUkC8; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 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=1694012783; 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=TnF80L47fM5uahGcckVZHlyEXTxymGuRxG6qRym94Xo=; b=tUhnE6Oo4Z+f4+et1r1qx4fSUsKLmIMrW5gzq4yxOgOwVAGcKJvkMnLfPUNc8pEJXdANOG d7dIcbTEMoNXxE8/ygNT3GMnByE74IqwXKrMQDTCWIvH6+HHIkS1mck1ISak66qwlmCbgS PtNBqwOvZbVHPYQ/dUHBc9Iir+u8Au8= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=G8EXUkC8; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 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=1694012783; a=rsa-sha256; cv=none; b=63iNZuNbLa0KzKFltFKPBNdtC/45virB49Y797kaQ4ajoGBP06SWNSoicOnDN7LTE9OXZe gv8VwKQ/C+5HMx3ci9vVkL8JzGIl3G/hcyaYKFmX9dzd+VgU3nUbfbLELP/nItotytPokw 3Z0MAr2/+/ozcPKJTBiLLQe4NVFKpvk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694012783; x=1725548783; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Gw9VPFGulL9SMj3bg/qb7UVUBLhbdyxQTjG8dgwPDs4=; b=G8EXUkC8RsefWAhga4Qmxz+clcwbd8RJJ82NZ7Xk//EOqpz3DLW/DFUZ Qf6R1LXSuDOx/+0Y7j2usVtlleJJ4VI/+PrzugzK/Q9SZVS8f8Oiwr9rD 1/zv0+cx51JdCPBX9W9l+B6aBa8FIrxC6yj4fTZgLjOwxlBWibWXNI048 9a8yhkRhBpCBBgqCyYBoWYgGvn5tyC183N1WZg4nK/AuXCmbj1MouX3k5 kZCbfVhyuwtbJXCZII0pX2oL396l9iSzla3temDdG8Zslys7d8PPc090r UJ4xJqUR3TzaOOTdO9pulsZusCDS7FLoy6Xj/LZX5atknj4j+LCMnEAyz g==; X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="443478256" X-IronPort-AV: E=Sophos;i="6.02,232,1688454000"; d="scan'208";a="443478256" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2023 08:06:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="865171164" X-IronPort-AV: E=Sophos;i="6.02,232,1688454000"; d="scan'208";a="865171164" Received: from lkp-server01.sh.intel.com (HELO 59b3c6e06877) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 06 Sep 2023 08:06:15 -0700 Received: from kbuild by 59b3c6e06877 with local (Exim 4.96) (envelope-from ) id 1qdu6f-0000Jb-1I; Wed, 06 Sep 2023 15:06:13 +0000 Date: Wed, 6 Sep 2023 23:05:32 +0800 From: kernel test robot To: Bibo Mao , Huacai Chen Cc: oe-kbuild-all@lists.linux.dev, WANG Xuerui , Andrew Morton , Linux Memory Management List , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] LoongArch: Clear invalid tlb when set huge page PTE entry Message-ID: <202309062224.jKf5JY7H-lkp@intel.com> References: <20230905044828.1460721-1-maobibo@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230905044828.1460721-1-maobibo@loongson.cn> X-Rspamd-Queue-Id: 5C4E740037 X-Rspam-User: X-Stat-Signature: drztrxedxb3bhpn66ngo8zp37jm1xnjs X-Rspamd-Server: rspam01 X-HE-Tag: 1694012783-477042 X-HE-Meta: U2FsdGVkX1/QKM7Q7/m6YyPr2uQCZJhGb5KNsC2soI/umhwZYkRZQBUTgA8olddF+9o7oXG4DaXvv1MWw1+aK2BG0qZGhOeh+odSuy6N0ZafB9MthO2nxr3X55TGC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E2hxEmhtyOfqYlqFkdfqOnhrJdOQ6k6XJRCdHdvCdM56zBEp1vwHhbvcxnMpMImBo4wkTMUobJxv+TTmESHKJNYXIZR8up46NxWfS14y5n6ztZ45CAqGAd5sQtYVFpqGp2UXYW8KFxCZI8LqGao0pUwEaDIwse2Lmf8Ny/IP8Vw== 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: Hi Bibo, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on linus/master v6.5 next-20230906] [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/Bibo-Mao/LoongArch-Clear-invalid-tlb-when-set-huge-page-PTE-entry/20230906-013753 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230905044828.1460721-1-maobibo%40loongson.cn patch subject: [PATCH] LoongArch: Clear invalid tlb when set huge page PTE entry config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20230906/202309062224.jKf5JY7H-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230906/202309062224.jKf5JY7H-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/202309062224.jKf5JY7H-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/loongarch/mm/tlb.c:204:6: error: redefinition of 'set_huge_pte_at' 204 | void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, | ^~~~~~~~~~~~~~~ In file included from arch/loongarch/mm/tlb.c:9: include/linux/hugetlb.h:1175:20: note: previous definition of 'set_huge_pte_at' with type 'void(struct mm_struct *, long unsigned int, pte_t *, pte_t)' 1175 | static inline void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, | ^~~~~~~~~~~~~~~ arch/loongarch/mm/tlb.c: In function 'set_huge_pte_at': >> arch/loongarch/mm/tlb.c:215:29: error: implicit declaration of function 'huge_pte_none'; did you mean 'huge_pte_lock'? [-Werror=implicit-function-declaration] 215 | if (!cpu_has_ptw && huge_pte_none(*ptep)) | ^~~~~~~~~~~~~ | huge_pte_lock arch/loongarch/mm/tlb.c: At top level: arch/loongarch/mm/tlb.c:281:6: warning: no previous prototype for 'setup_tlb_handler' [-Wmissing-prototypes] 281 | void setup_tlb_handler(int cpu) | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/set_huge_pte_at +204 arch/loongarch/mm/tlb.c 203 > 204 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, 205 pte_t *ptep, pte_t pte) 206 { 207 /* 208 * If huge pte entry is none, tlb entry with normal page size is filled 209 * for machines which does not support hardware page walking. 210 * 211 * Thread maybe migrates to other CPUs after page fault happends and 212 * migrates back again after hugepage pte is set, tlbs with normal page 213 * about invalid_pte_table need be flushed 214 */ > 215 if (!cpu_has_ptw && huge_pte_none(*ptep)) 216 flush_tlb_mm(mm); 217 218 set_pte_at(mm, addr, ptep, pte); 219 } 220 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki