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 X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31845C433B4 for ; Wed, 7 Apr 2021 14:13:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EEE7F60FEF for ; Wed, 7 Apr 2021 14:13:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348120AbhDGONj (ORCPT ); Wed, 7 Apr 2021 10:13:39 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:11204 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344132AbhDGONa (ORCPT ); Wed, 7 Apr 2021 10:13:30 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 137E3kt8119026; Wed, 7 Apr 2021 10:13:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=aqnqIgMzXfCzMFs55KYzIHDb9lF9/sDiNyVnHLTi510=; b=dHczxa3EpQ1D/kAE51b8m5n8ZYqfQLCquGRWTkmSR09mr3Xa3kOcN5UuyXQW8GqOU90l ynCFAuTu/yTFrVMA9pAmn3WQtCQ3JGZexkdN6t+IyNCZ4MyDVlX50reI6Hpvu5JAwjs/ /oLyjI5OYft3lx/WCspz2n6IyaekuqaFJoKS94/AM79zqAg19sHc0+C+1wFYkSEFyup3 MTOq3TurGBjShOfJJWnb47FDYKaoRnmJXPbx+Bu9H07shaw0OC4ET/5KIEOKv+FLs/ja KLKZ9ZUSM9RXO7gIbmZNiuiHmF2LMxXACWF7Lt/z6NAB6ub7y4fztxNoLGhnKH+qSLW8 UA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 37rw6kb4bq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 10:13:08 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 137E3tHL119953; Wed, 7 Apr 2021 10:13:08 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 37rw6kb4b7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 10:13:08 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 137ECb7Y030808; Wed, 7 Apr 2021 14:13:07 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma03dal.us.ibm.com with ESMTP id 37rvc2fhqy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 14:13:07 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 137ED6Oj19661130 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Apr 2021 14:13:06 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 50304136055; Wed, 7 Apr 2021 14:13:05 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B636136051; Wed, 7 Apr 2021 14:13:04 +0000 (GMT) Received: from [9.211.151.211] (unknown [9.211.151.211]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 7 Apr 2021 14:13:04 +0000 (GMT) Subject: Re: crashkernel reservation failed - No suitable area found on a cortina/gemini SoC To: Corentin Labbe , ebiederm@xmission.com, kexec@lists.infradead.org Cc: linux-kernel@vger.kernel.org References: From: Bruce Mitchell Message-ID: <34ff1fcc-e9ee-02c2-b2a8-d98a24ce94c3@linux.vnet.ibm.com> Date: Wed, 7 Apr 2021 07:13:04 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-GUID: K2XIyBGV-_XjVZPnaJyeCNhAdRI8bU6a X-Proofpoint-ORIG-GUID: O9DCT7bLto1-O2_YcNCdk5zpF0o6jX2f Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-07_08:2021-04-07,2021-04-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 mlxlogscore=999 clxscore=1011 phishscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104070099 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/2021 05:54, Corentin Labbe wrote: > Hello > > I try to do kexec on a cortina/gemini SoC. > On a "normal" boot, kexec fail to find memory so I added crashkernel=8M to cmdline. (kernel size is ~6M). > But now, kernel fail to reserve memory: > Load Kern image from 0x30020000 to 0x800000 size 7340032 > Booting Linux on physical CPU 0x0 > Linux version 5.12.0-rc5-next-20210401+ (compile@Red) (armv7a-unknown-linux-gnueabihf-gcc (Gentoo 9.3.0-r2 p4) 9.3.0, GNU ld (Gentoo 2.34 p6) 2.34.0) #98 PREEMPT Wed Apr 7 14:14:08 CEST 2021 > CPU: FA526 [66015261] revision 1 (ARMv4), cr=0000397f > CPU: VIVT data cache, VIVT instruction cache > OF: fdt: Machine model: Edimax NS-2502 > Memory policy: Data cache writeback > Zone ranges: > Normal [mem 0x0000000000000000-0x0000000007ffffff] > HighMem empty > Movable zone start for each node > Early memory node ranges > node 0: [mem 0x0000000000000000-0x0000000007ffffff] > Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] > crashkernel reservation failed - No suitable area found. > Built 1 zonelists, mobility grouping on. Total pages: 32512 > Kernel command line: console=ttyS0,19200n8 ip=dhcp crashkernel=8M > Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) > Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) > mem auto-init: stack:off, heap alloc:off, heap free:off > Memory: 119476K/131072K available (5034K kernel code, 579K rwdata, 1372K rodata, 3020K init, 210K bss, 11596K reserved, 0K cma-reserved, 0K highmem) > SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 > > What can I do ? > > Thanks > Regards > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec > Hello Corentin, I see much larger crashkernel=xxM being shown here https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kdump/kdump.rst and from many of my other searches. Here is an interesting article on kdump for ARM-32 https://kaiwantech.wordpress.com/2017/07/13/setting-up-kdump-and-crash-for-arm-32-an-ongoing-saga/ Here is the kernel command line reference https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/kernel-parameters.txt?h=v5.11#n732 I feel your frustrations too. -- Bruce