Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3185507rwo; Mon, 24 Jul 2023 07:29:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRIjjw+J94l0QJontY9HmSfiBGWEK5nADshPTMAmc0Sm7ALxQLeZmWksZibdDEtVIW1JNw X-Received: by 2002:a05:6830:22ca:b0:6b9:4e85:de95 with SMTP id q10-20020a05683022ca00b006b94e85de95mr7383725otc.34.1690208956710; Mon, 24 Jul 2023 07:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690208956; cv=none; d=google.com; s=arc-20160816; b=xi2EHR+iGkL1yC2vyV2cttKDBUZ4cfzz1gePWDvZ9TzNxefOKcf06EMgj1YhZfXNH1 6V/gpS+Beog11pFXj0VtXJywoz42ndJ64KMazMUejuCfdVeY5QvTotT6qREAn2RWzQh4 OpqgMcZYZCFmClpSrWZep0UXSDXxp7P2B2DU1FK3AK5a+LGQmJkirgx2+wWdCrC5Lz9v I2w47v3pDp3HEOAcTYe6ilphW2iKDCSz7NUi5gXxS7z9Y0pEpvOKUjxriv2JIKhVh06M 5OFRZEoCXBp/NPwt9KdQeiFFV/Q58jqyUquU0BkEQhiPH+5TSpzlaTeKfiWaZZxH6Se0 LlBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=BoKi6jm/eeaCyNUzBIKmZeg7NG7tKLQ0NQSjg3kFYSw=; fh=fsZHD1+85BdhBHhb/KSKYbEj6imEG+dr57yv/PLwsbI=; b=Nm/cGeReP2CWn0EGL4is1TwA0RVVyNXqgy+TAjPyulyovfCrqzFkyKpMMyqwqt51uR pnrOwpuphxKQijd0gMy0ae+ZD/t63Wuwf8mmCTl8RdINE/RW0CDbSw7a/RP7pWuts77G IxzaF+ainLymhIhGC+dxPBtvU8Sue9A5JHerlJ2jSaeIB0twXz4HJW6tIPj9hRly0Cke L1KHzDKOxQjY+GhzTohfJCV6cMPiIGV92WID/XKn6zcr63ICDjpce014Cc2OqYHsYxCe V2C4VgCCpMueL7C0/JuLvjm/qFMrtLNkm1a8ed3uh9hB1pSBl8PKqdI6hvnOlVcYiR1Y Sv3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v30-20020a63481e000000b0055b0f40083csi8921444pga.639.2023.07.24.07.29.04; Mon, 24 Jul 2023 07:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231349AbjGXNwV (ORCPT + 99 others); Mon, 24 Jul 2023 09:52:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbjGXNwH (ORCPT ); Mon, 24 Jul 2023 09:52:07 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06C1059CA for ; Mon, 24 Jul 2023 06:49:10 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4R8hN21W7bz4f3mWK for ; Mon, 24 Jul 2023 21:49:06 +0800 (CST) Received: from [10.174.178.55] (unknown [10.174.178.55]) by APP4 (Coremail) with SMTP id gCh0CgCHK59Ngb5kXQPVOg--.36407S3; Mon, 24 Jul 2023 21:49:02 +0800 (CST) Subject: Re: [PATCH 1/3] arm64: kdump: Allocate crash low memory in the bottom-up direction To: kernel test robot , Dave Young , Baoquan He , Vivek Goyal , "Eric W . Biederman" , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, Zhen Lei References: <20230721081726.882-2-thunder.leizhen@huaweicloud.com> <202307220500.1I73fZ5Z-lkp@intel.com> From: "Leizhen (ThunderTown)" Message-ID: Date: Mon, 24 Jul 2023 21:49:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <202307220500.1I73fZ5Z-lkp@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: gCh0CgCHK59Ngb5kXQPVOg--.36407S3 X-Coremail-Antispam: 1UD129KBjvJXoWxGFWDCr48ZrWkXr17XFyfCrg_yoWrCF48pa 1Uua1xKw18XFWrCa97t3y3uw4rWasFqFyfWrW8Jr10gF9Fkr93JasagFWfXryDGr1vgay8 Cw1jqFZ8X34UAFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvab4IE77IF4wAFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6r1F6r1fM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4 vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7Cj xVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x 0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG 6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFV Cjc4AY6r1j6r4UM4x0Y48IcVAKI48JM4IIrI8v6xkF7I0E8cxan2IY04v7Mxk0xIA0c2IE e2xFo4CEbIxvr21l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxV Aqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q 6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6x kF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv 67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyT uYvjxUrR6zUUUUU X-CM-SenderInfo: hwkx0vthuozvpl2kv046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,MAY_BE_FORGED, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/7/22 5:22, kernel test robot wrote: > Hi, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on arm64/for-next/core] > [also build test ERROR on linus/master v6.5-rc2 next-20230721] > [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/thunder-leizhen-huaweicloud-com/arm64-kdump-Allocate-crash-low-memory-in-the-bottom-up-direction/20230721-162312 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core > patch link: https://lore.kernel.org/r/20230721081726.882-2-thunder.leizhen%40huaweicloud.com > patch subject: [PATCH 1/3] arm64: kdump: Allocate crash low memory in the bottom-up direction > config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20230722/202307220500.1I73fZ5Z-lkp@intel.com/config) > compiler: aarch64-linux-gcc (GCC) 12.3.0 > reproduce: (https://download.01.org/0day-ci/archive/20230722/202307220500.1I73fZ5Z-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/202307220500.1I73fZ5Z-lkp@intel.com/ > > All errors (new ones prefixed by >>): Oh, thanks. I got it. The CONFIG_KEXEC_CORE build control is move into reserve_crashkernel(). Function late_reserve_crashkernel() needs to do the same. I forgot to test turning off options like CONFIG_KEXEC_CORE. I will do it tomorrow. Sorry. diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index b544ed0ab04193d..d444721011d0b2f 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -122,6 +122,9 @@ static void __init late_reserve_crashkernel(void) unsigned long long low_base, low_size; unsigned long long crash_base, crash_size; + if (!IS_ENABLED(CONFIG_KEXEC_CORE)) + return; > > aarch64-linux-ld: arch/arm64/mm/init.o: in function `late_reserve_crashkernel': >>> init.c:(.init.text+0x58): undefined reference to `crashk_res' > aarch64-linux-ld: arch/arm64/mm/init.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crashk_res' which may bind externally can not be used when making a shared object; recompile with -fPIC > init.c:(.init.text+0x58): dangerous relocation: unsupported relocation >>> aarch64-linux-ld: init.c:(.init.text+0x5c): undefined reference to `crashk_res' >>> aarch64-linux-ld: init.c:(.init.text+0x88): undefined reference to `crashk_low_res' > aarch64-linux-ld: arch/arm64/mm/init.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `crashk_low_res' which may bind externally can not be used when making a shared object; recompile with -fPIC > init.c:(.init.text+0x88): dangerous relocation: unsupported relocation > aarch64-linux-ld: init.c:(.init.text+0x90): undefined reference to `crashk_res' > aarch64-linux-ld: init.c:(.init.text+0x9c): undefined reference to `crashk_low_res' > aarch64-linux-ld: init.c:(.init.text+0xd0): undefined reference to `crashk_res' > aarch64-linux-ld: init.c:(.init.text+0x13c): undefined reference to `crashk_res' > aarch64-linux-ld: init.c:(.init.text+0x150): undefined reference to `crashk_res' > aarch64-linux-ld: init.c:(.init.text+0x18c): undefined reference to `crashk_low_res' > aarch64-linux-ld: init.c:(.init.text+0x1b0): undefined reference to `crashk_low_res' > aarch64-linux-ld: init.c:(.init.text+0x204): undefined reference to `crashk_low_res' > aarch64-linux-ld: init.c:(.init.text+0x234): undefined reference to `crashk_low_res' > aarch64-linux-ld: init.c:(.init.text+0x248): undefined reference to `crashk_low_res' > aarch64-linux-ld: arch/arm64/mm/init.o:init.c:(.init.text+0x25c): more undefined references to `crashk_low_res' follow > -- Regards, Zhen Lei