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 B1856CCA481 for ; Fri, 17 Jun 2022 11:26:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 297D66B0074; Fri, 17 Jun 2022 07:26:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 247126B0075; Fri, 17 Jun 2022 07:26:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10F9A6B0078; Fri, 17 Jun 2022 07:26:51 -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 025C06B0074 for ; Fri, 17 Jun 2022 07:26:50 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id CD26D346BE for ; Fri, 17 Jun 2022 11:26:50 +0000 (UTC) X-FDA: 79587500580.12.9C74EF8 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf11.hostedemail.com (Postfix) with ESMTP id 94DC04009B for ; Fri, 17 Jun 2022 11:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655465209; x=1687001209; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=O0OzaZWt5JBpgO+HWeUig13mrHT0bkF4JZGnMqUmzAI=; b=W2Xuwy2X1dSNRttaBmdcXnwIo2XY4+MFpiFuI56RhTPpfHxBYXaLQt4f /WeY3OuiP2tbw0mBvVwcQYe8dB5ARUvUEcMSjqNTQsbh4RAOEXIl2RXwX mAgk79MAASDwQ4UqXvGCnUldywLkGxCZ/iEHttnxotkgWAnsGnCs2hdtO l/QE3Ql36ee6gAfESuusRy6pk+AQgnRylWNtH9gz6KFHCOuk9j10+yFip PYq3LQjDjUrUZ1+/8zGyiHNozkAy7YK0gK6LNh6Qdu5UEgdfBI4iW/bT8 Eu8pGvb+h0nKCJYgFEpTqKBKHsdhd0wNloTsOs1BKi5y/l4Fd9U/WOSqR g==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="280200145" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="280200145" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2022 04:26:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="675457992" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 17 Jun 2022 04:26:40 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o2A7b-000PP9-Vz; Fri, 17 Jun 2022 11:26:39 +0000 Date: Fri, 17 Jun 2022 19:26:21 +0800 From: kernel test robot To: Mike Kravetz , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Muchun Song , Baolin Wang , Michal Hocko , Peter Xu , Naoya Horiguchi , James Houghton , Mina Almasry , "Aneesh Kumar K . V" , Anshuman Khandual , Paul Walmsley , Christian Borntraeger , catalin.marinas@arm.com, will@kernel.org, Andrew Morton , Linux Memory Management List , Mike Kravetz Subject: Re: [PATCH 1/4] hugetlb: skip to end of PT page mapping when pte not present Message-ID: <202206171929.ZIUrNg6p-lkp@intel.com> References: <20220616210518.125287-2-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220616210518.125287-2-mike.kravetz@oracle.com> ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=W2Xuwy2X; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf11.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655465210; 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=3i3oRi2cktc1blvdFq391ZOOu3+gxV7a+ggBrULiY9w=; b=eXx7Yr9dbsT2VYTTVD+cP0t8ANoitqc9+2HDkZHtZBbpjiIQN9KymRUZcRL0jRLIr1WM+d 3kH5u1luwtWGk1U8xlEPe/ubMpJkkkdAajAziEVgXOcRIFM5I3EqOcj5gSwC4LlPs0qebR EQAJ1fLdwdpsOFCttxSL43N/Egr4Ic8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655465210; a=rsa-sha256; cv=none; b=bn7kWrB3F/cMwWH2Cc9iqdfCnj8qTEDLmQdiGRGCD4QF+UkE6UD4NxtEGrsN3lcD3GomeE 5FnTb5gwgDi7Hc6JJXxKAWoHkvluK3SRwiyOMetOgBx+PdpWwO9BLR+iYE/DpITFAVbHPI GXohuokVGQPMzQQHuIoqZbzmAqkL1pQ= X-Stat-Signature: jj5fnftor53wc751z3gzi6b1o4fg3ihk X-Rspamd-Queue-Id: 94DC04009B X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=W2Xuwy2X; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf11.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam10 X-HE-Tag: 1655465209-905011 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 Mike, I love your patch! Yet something to improve: [auto build test ERROR on soc/for-next] [also build test ERROR on linus/master v5.19-rc2 next-20220617] [cannot apply to arm64/for-next/core arm/for-next kvmarm/next xilinx-xlnx/master] [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] url: https://github.com/intel-lab-lkp/linux/commits/Mike-Kravetz/hugetlb-speed-up-linear-address-scanning/20220617-050726 base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220617/202206171929.ZIUrNg6p-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f0e608de27b3d568000046eebf3712ab542979d6) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/4c647687607f10fece04967b8180c0dadaf765e6 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Mike-Kravetz/hugetlb-speed-up-linear-address-scanning/20220617-050726 git checkout 4c647687607f10fece04967b8180c0dadaf765e6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> mm/hugetlb.c:6901:7: error: duplicate case value '4194304' case PUD_SIZE: ^ include/asm-generic/pgtable-nopud.h:20:20: note: expanded from macro 'PUD_SIZE' #define PUD_SIZE (1UL << PUD_SHIFT) ^ mm/hugetlb.c:6899:7: note: previous case defined here case P4D_SIZE: ^ include/asm-generic/pgtable-nop4d.h:13:19: note: expanded from macro 'P4D_SIZE' #define P4D_SIZE (1UL << P4D_SHIFT) ^ mm/hugetlb.c:6903:7: error: duplicate case value '4194304' case PMD_SIZE: ^ include/asm-generic/pgtable-nopmd.h:22:20: note: expanded from macro 'PMD_SIZE' #define PMD_SIZE (1UL << PMD_SHIFT) ^ mm/hugetlb.c:6901:7: note: previous case defined here case PUD_SIZE: ^ include/asm-generic/pgtable-nopud.h:20:20: note: expanded from macro 'PUD_SIZE' #define PUD_SIZE (1UL << PUD_SHIFT) ^ 2 errors generated. vim +/4194304 +6901 mm/hugetlb.c 6886 6887 /* 6888 * Return a mask that can be used to update an address to the last huge 6889 * page in a page table page mapping size. Used to skip non-present 6890 * page table entries when linearly scanning address ranges. Architectures 6891 * with unique huge page to page table relationships can define their own 6892 * version of this routine. 6893 */ 6894 unsigned long hugetlb_mask_last_page(struct hstate *h) 6895 { 6896 unsigned long hp_size = huge_page_size(h); 6897 6898 switch (hp_size) { 6899 case P4D_SIZE: 6900 return PGDIR_SIZE - P4D_SIZE; > 6901 case PUD_SIZE: 6902 return P4D_SIZE - PUD_SIZE; 6903 case PMD_SIZE: 6904 return PUD_SIZE - PMD_SIZE; 6905 default: 6906 break; /* Should never happen */ 6907 } 6908 6909 return ~(0UL); 6910 } 6911 -- 0-DAY CI Kernel Test Service https://01.org/lkp