Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp883365pxf; Wed, 7 Apr 2021 14:05:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg5MgZx/oVGwf5VDLkvFy2iDWdNkyf9l8/GUySwk/+E18rmYXWJZ9YW2lGpOecLa/B5EJN X-Received: by 2002:a6b:4f09:: with SMTP id d9mr4079897iob.60.1617829536161; Wed, 07 Apr 2021 14:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829536; cv=none; d=google.com; s=arc-20160816; b=tXbB2AWDCUCe6AcHM+FO/35ZNICJ79sQ6SuopUDg0YVxEH4CQvyVm5P4kmISj55zA3 009WNrl4NnY3I1wL+2t/OxR/aCAaOhg1U4xwjP6TUz8vbDZlg+nspnK1ex9FZRcLoeFx tPNRlBaN2yvG3o5gfM00ZMC7bmFN0cbVPJMfACwQv4VxzVJ1pjeqbjfWwUAV6TFu7A4p DPgv1Mkfrk4j9JFHJOgOESY71uo+ZylTOglhFw64kafI84hqTgfasp0pabv2zZbytbIH HYWRqjPFO9zxJZf8AAy/TD/VU4+N8U9/nsFaS3XS2XXfUZw0imQg9Hk0o+hJOwhA5KFm nF4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=Nex4OErYwI4wYRrAfrcdGgHwB+tl/6uDykb+fUe8xM8=; b=FClvTdaeISZZ1LwD1E4BfiFXS6WDpdPj53cCJat8ZkLkI3XOSPGZgpiwo1cBO+CV8u 4t7S42rMx0OHoNlWiUM4r9QoAl6PT5XFm/mjGchS5Eeqa1YJ2ic5HDxr46tSSU65UKd+ KO5T1ZNrAWqJ74/9pHorCBH/540M3Bdsa1lRnNqQ3empebHaJ2LV7pgyFKYP6cDKW590 miHLOTuM/o4AMvgwcIKvo9TCqjMkfx+IMJH/2YHBh/sdwnXEUgq1MFwzNBwByoKOQ5Q+ gIyOJpPDSXBgVPmCNfu65OA0Xgq1Rct1ABPtGhWA8CNG7zIlx75M/Tv3rL9g20zoPrkv 1k6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=IwMVrHxS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si21328025ilv.80.2021.04.07.14.05.23; Wed, 07 Apr 2021 14:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=IwMVrHxS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352903AbhDGO2r (ORCPT + 99 others); Wed, 7 Apr 2021 10:28:47 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:20490 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352877AbhDGO2o (ORCPT ); Wed, 7 Apr 2021 10:28:44 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 137E4spX049186; Wed, 7 Apr 2021 10:28:30 -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=Nex4OErYwI4wYRrAfrcdGgHwB+tl/6uDykb+fUe8xM8=; b=IwMVrHxSnfi8RyGjx2OsSN99D7KyoX+AiTpA9w+Ruj4uNoZG1FhCsxTER8vdkVjMdMcG xTmx+QynorznhUjevLIQJcXFzqhQcQUkmeUoMoAp1P+8ukABQquTdzdjbpsma9iJSyNZ X8B2yfvNJtpgA/fKwdY4SKg/eSq/zvYPbnTLcDbgcElCzq7dSLphQmhrlNZpDJaSer6C IBPFkz68hGbG9SEeht7cxNa72ts1hr8vtwsZLrKwCIxt6kSgGigvdA2+dsDFZu2n9F5O mrGf5eisr74EP7LGBcxHWjN4ZkD5KIvD10SXqolGtlYBuumwjmMwFAztm7d3nSFSeBl8 9Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 37rvpujnp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 10:28:30 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 137E5PcX051494; Wed, 7 Apr 2021 10:28:29 -0400 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com with ESMTP id 37rvpujnnc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 10:28:29 -0400 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.0.43/8.16.0.43) with SMTP id 137EP9o9023712; Wed, 7 Apr 2021 14:28:28 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma02wdc.us.ibm.com with ESMTP id 37ryqc4yb4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Apr 2021 14:28:28 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 137ESRsk28901666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Apr 2021 14:28:27 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4C46E13605E; Wed, 7 Apr 2021 14:28:27 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EEF53136059; Wed, 7 Apr 2021 14:28:26 +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:28:26 +0000 (GMT) Subject: Re: crashkernel reservation failed - No suitable area found on a cortina/gemini SoC To: Corentin Labbe Cc: ebiederm@xmission.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org References: <34ff1fcc-e9ee-02c2-b2a8-d98a24ce94c3@linux.vnet.ibm.com> From: Bruce Mitchell Message-ID: <7a75028b-4495-cd51-6a32-59fcf6e0f166@linux.vnet.ibm.com> Date: Wed, 7 Apr 2021 07:28:26 -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-ORIG-GUID: Fsd95cWjD2O48rrRgmgW-41rNDBxb_MQ X-Proofpoint-GUID: 8sUaRUh8pg5OMgcZF1yEK4tJUpQpSuLw Content-Transfer-Encoding: 8bit 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 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 mlxlogscore=999 spamscore=0 mlxscore=0 impostorscore=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 07:23, Corentin Labbe wrote: > Le Wed, Apr 07, 2021 at 07:13:04AM -0700, Bruce Mitchell a écrit : >> 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. > > Hello > > Thanks but I have already read those documentation. > I search to know why the kernel cannot find 8M of memory ouf of 128. > > Regards > How much more memory does the kernel and initrd above and beyond just their physical size? (heaps, stacks, buffers, virtual filesystems)