Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1558266rdb; Sat, 20 Jan 2024 04:15:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRWOPi8IZdF8zHav6/nLL6E/e0BUnUXmtybW2zQng0g2MlhqBvN+ytKkChKX7DaKeukuGQ X-Received: by 2002:a05:6870:4693:b0:203:c5ca:5333 with SMTP id a19-20020a056870469300b00203c5ca5333mr1617968oap.41.1705752924677; Sat, 20 Jan 2024 04:15:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705752924; cv=pass; d=google.com; s=arc-20160816; b=O1X1AgpaTBZTdaPR4wlnueNc8fbeHxeY7gltRaK5a2D+a1s6ZvlQ2Jq/apka8RtE/P 4VFLbtdxBd0WDg96ddvxbQkTGk+accIMUJN5oiZQB+EYJnnwJJ3wb/onLTmP3j9LmT6o sRxT+0TRab9+IHtI4S25Gs3N/TvKzbWuenha2VVWwy9yee8QPBmmEL78MiflD1Jjhhah 3vf3MqLOR1HyewUnywKBA4s5sKalvqk5stoYMJxdUhOisFH54xh1Y2YTQhzsOhrajx5+ NcAXrPHyVnDXl8jDlcLg8xk4Ct6WNr29OOmzvEY7jMpqgpyYC0VTywhg+q3+869MAdoT 3NJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gcVLa24KX9MYIEK6uMSxhVqzfyKwtBO1KEzWpMYIvzM=; fh=o+EusltYAL0d2MJG70R+VzVNSCZQ2LMKFIF1flpiGX0=; b=JIQxyeIesHf4X/BwLd/o0eue+KGFh5s43Z8arpQgHtpewRmlnRCER4ceS9sPBFg1kH gqZ/OnEcvDR4nN8xYofvkT2J1/PT7IcejLJl24ajguoqodJpHDD/i3y6wuHpZ59d7P5y bpqrFyXN0b2zeKT0orDm66e+FxpXP4zJMAhO1YBL+LpkSQlwUfbKXV4fosletXrat4YK tEpSFHSRYmZW2GU/UvdTp3Jqb4+svQr4vE7yTuCagqO4HdPBxyt5Thryda9vDmB0dgLm aVsPpOAj7rrqeIq4CV/+OqBl5qACup+9VpLLUxIFt6SRb/MRQuKUPZ/tltVPGP6VV7mM KFLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PuKsnQ8s; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g22-20020a635656000000b0058974d3c296si5022815pgm.815.2024.01.20.04.15.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 04:15:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PuKsnQ8s; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0A85FB218EF for ; Sat, 20 Jan 2024 12:14:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60023EEDB; Sat, 20 Jan 2024 12:14:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PuKsnQ8s" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A773EDF51; Sat, 20 Jan 2024 12:14:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705752885; cv=none; b=QSA34QL7M9f9+BiBvbcr6aaQ2zkheQEZCmwsm/ER4PnaC9aExiA2QibZBez5XiFeyUYgzYNmaDXnAl5hoz2PljYhI3vhQXujJ2laEzz4K4vb2kR2KTdeHdVugg1RgDWwTSTvxu8WNEwHXYVNSUwLGtX0uT69axHsrow8uGiawpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705752885; c=relaxed/simple; bh=lYlNdQ0Gc+gMkO+7wnw6RT9UdR/P8tIvnMQnN95xP0A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bIBsbEMpS4VM8sX4oWQ63svc+OTh8Nh8HFhmvwPs1VzjqUCCsWdJBwo67gEMbXrIPlqCM6N1LcckXjTNUkDRXGtqa3tOFXyxHPYX5ZZiCqXqbCtNvl6iwHMPXNuS+TEj45WjO8pKXFHUu80ggTkfQoe6wPtiNQaAzNj0nYV6dCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PuKsnQ8s; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705752884; x=1737288884; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lYlNdQ0Gc+gMkO+7wnw6RT9UdR/P8tIvnMQnN95xP0A=; b=PuKsnQ8sEgKCe83hH9KVlfyAk4Rro0q1qJVyRBIN+IOj2sUK3V6XAs1a HqusVA7S7WPx3mV35ANwUamF4JD8AWdDEF2rpSeMYuZQ2krAvaVmmiff4 1ZsvyxX9bFx/TLlnTNVd+iqLrnMEECKixb2WW+OX9+FSXVSPLnQaUvFk7 wTL4mk60PMnv3TcEpOzqfaBXzAq9s/sZVQAXjU8LFMw5a1Vd52vNTtoIW ou2bbn1MX/f6WH/zrhfoTVXwEqeLkGrccKkWeqOVnRESuIhazsFNLT91q LwbQj4Yyl8vfIPvgyelk+41y+0YjokYgCgmWD26cna/RwFX87ZkvtCbo3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10957"; a="19508281" X-IronPort-AV: E=Sophos;i="6.05,207,1701158400"; d="scan'208";a="19508281" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2024 04:14:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,207,1701158400"; d="scan'208";a="26963912" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 20 Jan 2024 04:14:39 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rRAFA-00054k-0l; Sat, 20 Jan 2024 12:14:36 +0000 Date: Sat, 20 Jan 2024 20:13:45 +0800 From: kernel test robot To: Baoquan He , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, kexec@lists.infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, akpm@linux-foundation.org, ebiederm@xmission.com, hbathini@linux.ibm.com, piliu@redhat.com, viro@zeniv.linux.org.uk, Baoquan He Subject: Re: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs Message-ID: <202401202057.aPg08Eh8-lkp@intel.com> References: <20240119145241.769622-12-bhe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240119145241.769622-12-bhe@redhat.com> Hi Baoquan, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [cannot apply to tip/x86/core arm64/for-next/core powerpc/next powerpc/fixes v6.7 next-20240119] [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/Baoquan-He/kexec-split-crashkernel-reservation-code-out-from-crash_core-c/20240119-225820 base: linus/master patch link: https://lore.kernel.org/r/20240119145241.769622-12-bhe%40redhat.com patch subject: [PATCH v2 11/14] arm, crash: wrap crash dumping code into crash related ifdefs config: arm-randconfig-001-20240120 (https://download.01.org/0day-ci/archive/20240120/202401202057.aPg08Eh8-lkp@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project d92ce344bf641e6bb025b41b3f1a77dd25e2b3e9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401202057.aPg08Eh8-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/202401202057.aPg08Eh8-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/arm/kernel/setup.c:1036:49: error: use of undeclared identifier 'SECTION_SIZE' 1036 | start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, | ^ 1 error generated. vim +/SECTION_SIZE +1036 arch/arm/kernel/setup.c 3c57fb43c8fcbe Mika Westerberg 2010-05-10 995 3c57fb43c8fcbe Mika Westerberg 2010-05-10 996 /** 3c57fb43c8fcbe Mika Westerberg 2010-05-10 997 * reserve_crashkernel() - reserves memory are for crash kernel 3c57fb43c8fcbe Mika Westerberg 2010-05-10 998 * 3c57fb43c8fcbe Mika Westerberg 2010-05-10 999 * This function reserves memory area given in "crashkernel=" kernel command 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1000 * line parameter. The memory reserved is used by a dump capture kernel when 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1001 * primary kernel is crashing. 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1002 */ 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1003 static void __init reserve_crashkernel(void) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1004 { 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1005 unsigned long long crash_size, crash_base; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1006 unsigned long long total_mem; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1007 int ret; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1008 8f460484669cba Baoquan He 2024-01-19 1009 if (!IS_ENABLED(CONFIG_CRASH_RESERVE)) 8f460484669cba Baoquan He 2024-01-19 1010 return; 8f460484669cba Baoquan He 2024-01-19 1011 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1012 total_mem = get_total_mem(); 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1013 ret = parse_crashkernel(boot_command_line, total_mem, a9e1a3d84e4a0e Baoquan He 2023-09-14 1014 &crash_size, &crash_base, a9e1a3d84e4a0e Baoquan He 2023-09-14 1015 NULL, NULL); 9d17f337230642 Austin Kim 2022-04-01 1016 /* invalid value specified or crashkernel=0 */ 9d17f337230642 Austin Kim 2022-04-01 1017 if (ret || !crash_size) 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1018 return; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1019 61603016e2122b Russell King 2016-03-14 1020 if (crash_base <= 0) { d0506a2395eb07 Russell King 2016-04-01 1021 unsigned long long crash_max = idmap_to_phys((u32)~0); 67556d7a851c20 Russell King 2017-07-19 1022 unsigned long long lowmem_max = __pa(high_memory - 1) + 1; 67556d7a851c20 Russell King 2017-07-19 1023 if (crash_max > lowmem_max) 67556d7a851c20 Russell King 2017-07-19 1024 crash_max = lowmem_max; a7259df7670240 Mike Rapoport 2021-09-02 1025 a7259df7670240 Mike Rapoport 2021-09-02 1026 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, a7259df7670240 Mike Rapoport 2021-09-02 1027 CRASH_ALIGN, crash_max); 61603016e2122b Russell King 2016-03-14 1028 if (!crash_base) { 61603016e2122b Russell King 2016-03-14 1029 pr_err("crashkernel reservation failed - No suitable area found.\n"); 61603016e2122b Russell King 2016-03-14 1030 return; 61603016e2122b Russell King 2016-03-14 1031 } 61603016e2122b Russell King 2016-03-14 1032 } else { a7259df7670240 Mike Rapoport 2021-09-02 1033 unsigned long long crash_max = crash_base + crash_size; 61603016e2122b Russell King 2016-03-14 1034 unsigned long long start; 61603016e2122b Russell King 2016-03-14 1035 a7259df7670240 Mike Rapoport 2021-09-02 @1036 start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, a7259df7670240 Mike Rapoport 2021-09-02 1037 crash_base, crash_max); a7259df7670240 Mike Rapoport 2021-09-02 1038 if (!start) { 61603016e2122b Russell King 2016-03-14 1039 pr_err("crashkernel reservation failed - memory is in use.\n"); 61603016e2122b Russell King 2016-03-14 1040 return; 61603016e2122b Russell King 2016-03-14 1041 } 61603016e2122b Russell King 2016-03-14 1042 } 61603016e2122b Russell King 2016-03-14 1043 1b0f6681fcbc0e Olof Johansson 2013-12-05 1044 pr_info("Reserving %ldMB of memory at %ldMB for crashkernel (System RAM: %ldMB)\n", 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1045 (unsigned long)(crash_size >> 20), 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1046 (unsigned long)(crash_base >> 20), 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1047 (unsigned long)(total_mem >> 20)); 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1048 f7f0b7dc720f81 Russell King 2016-08-02 1049 /* The crashk resource must always be located in normal mem */ 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1050 crashk_res.start = crash_base; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1051 crashk_res.end = crash_base + crash_size - 1; 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1052 insert_resource(&iomem_resource, &crashk_res); f7f0b7dc720f81 Russell King 2016-08-02 1053 f7f0b7dc720f81 Russell King 2016-08-02 1054 if (arm_has_idmap_alias()) { f7f0b7dc720f81 Russell King 2016-08-02 1055 /* f7f0b7dc720f81 Russell King 2016-08-02 1056 * If we have a special RAM alias for use at boot, we f7f0b7dc720f81 Russell King 2016-08-02 1057 * need to advertise to kexec tools where the alias is. f7f0b7dc720f81 Russell King 2016-08-02 1058 */ f7f0b7dc720f81 Russell King 2016-08-02 1059 static struct resource crashk_boot_res = { f7f0b7dc720f81 Russell King 2016-08-02 1060 .name = "Crash kernel (boot alias)", f7f0b7dc720f81 Russell King 2016-08-02 1061 .flags = IORESOURCE_BUSY | IORESOURCE_MEM, f7f0b7dc720f81 Russell King 2016-08-02 1062 }; f7f0b7dc720f81 Russell King 2016-08-02 1063 f7f0b7dc720f81 Russell King 2016-08-02 1064 crashk_boot_res.start = phys_to_idmap(crash_base); f7f0b7dc720f81 Russell King 2016-08-02 1065 crashk_boot_res.end = crashk_boot_res.start + crash_size - 1; f7f0b7dc720f81 Russell King 2016-08-02 1066 insert_resource(&iomem_resource, &crashk_boot_res); f7f0b7dc720f81 Russell King 2016-08-02 1067 } 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1068 } 3c57fb43c8fcbe Mika Westerberg 2010-05-10 1069 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki