Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4210616ybb; Tue, 7 Apr 2020 03:02:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKCwn8bTGqnDWDXMuc78GnolKPJwlBjZmyzNDWMVqnRUKC3WMzpP5t9fFw13CUd4ks3wJah X-Received: by 2002:aca:56c2:: with SMTP id k185mr957749oib.141.1586253724663; Tue, 07 Apr 2020 03:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586253724; cv=none; d=google.com; s=arc-20160816; b=g96YX6djnrUnTk73N99o9d5QH2sLSq7W6XLfPx6McTcYxbGhxEd/pzRtJhQ2BREJUF JZJAspskp1kVwEHyC8mkZlpKLu0depyIuXUxC+v+iJPMG/IOlmshzG3HsqYbBlKaEaUQ 6eQESt/FR85FMjPlyfy1c4mNJHxjHLpxNS763kcNb8Otob2FDrfIZx2PHPLBKXHSAebO /ObZgc4TMpglcoGqlq2DfMoDr/r4ElEUbVKxkCOtLp7BnuD2vnf+BkZJq+wBcMRtTfOC M1v2wcCGkhLtCin7ODQZNgDOZwxHHZYtAHvqzKTJdg5z3r56cjQGdzrnAoX9007NK8/I s3Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DFNz1XFQCqB0ki2rrudESMlC1higHzCyKjV7JRMfmtI=; b=EBycLx9tPUeYY6o49CyMeX8AOARTbbahJfv0/XAGQztMHBfFfSTzhXh3a2fxLkXXQF 3EEqGTgHEuVHp3GmnKZ8fz/wkUHTtjgnkQaKZQUp5Hb8xj65fU0HZS9JWGyIWA7gmZZA NGqufmxvJxBXk7zzQQ4+W3LG91j/y+rQsMMB2koPkwX6wi2wHKqxIbL8utAcDITJ2YSZ Kl3SOul8ageHiXDXHdvygGa75TFnkUJkWFBzamC2LMen+MH1nsbPowUIAdmNvvps9rgM wP5TCRuvk6obqOi8fEMfRqs6uflIRpiD8XDqa3aQ5qSGcnOovIGhuHQ1W7MWwRb43SbR pRHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=TKPdbBqc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si1042636oof.46.2020.04.07.03.01.51; Tue, 07 Apr 2020 03:02:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=TKPdbBqc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728144AbgDGKBK (ORCPT + 99 others); Tue, 7 Apr 2020 06:01:10 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:38248 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbgDGKBJ (ORCPT ); Tue, 7 Apr 2020 06:01:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DFNz1XFQCqB0ki2rrudESMlC1higHzCyKjV7JRMfmtI=; b=TKPdbBqchi8ItHrKkREA5fEPY WrhftoGdqP393vXFaanrgK4MHLbY/aGdoVqSOMJgUxM3U+7ICHKQ5jPZYZ932Qk3p0VVbNQf352RU 6/lSNjyxQOWAfPXPWQcTVvt8zKrBGYbAU2hkPeBlvJYYXx19xn7unSSx057jloNKHqZULVOAwCG72 2n9hQYBdG2c2Urweyl37UhA8NFN0AQMeplm2AVy3qks47f+jllFHM21fdsphHbmf00YCjjgmhLWIG ZULMubT3MRUoCgqO3DbzJhkeSY9FXX2eEwKhWQ1TfuPdFkxHofAbiQ2Lweoq1znSf+4K/W3UCZbWT G/bsSl+Zg==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:35144) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jLl2U-0007CO-1L; Tue, 07 Apr 2020 11:01:02 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jLl2S-0007DF-8f; Tue, 07 Apr 2020 11:01:00 +0100 Date: Tue, 7 Apr 2020 11:01:00 +0100 From: Russell King - ARM Linux admin To: Corentin Labbe Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, mripard@kernel.org, wens@csie.org, ebiederm@xmission.com, linux-arm-kernel@lists.infradead.org Subject: Re: Trying to kexec on Allwinner A80 Message-ID: <20200407100100.GJ25745@shell.armlinux.org.uk> References: <20200406082720.GA31279@Red> <20200406091600.GF25745@shell.armlinux.org.uk> <20200406092540.GB31279@Red> <20200406093729.GG25745@shell.armlinux.org.uk> <20200406201053.GA10931@Red> <20200407073117.GH25745@shell.armlinux.org.uk> <20200407080144.GA20773@Red> <20200407081257.GI25745@shell.armlinux.org.uk> <20200407093253.GA4630@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200407093253.GA4630@Red> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 11:32:53AM +0200, Corentin Labbe wrote: > On Tue, Apr 07, 2020 at 09:12:57AM +0100, Russell King - ARM Linux admin wrote: > > That was not reflected in the command lines given to kexec that you > > quoted previously, so I'm now wondering if you're giving me the full > > information. > > > > In any case, based on the information you've supplied thus far, I have > > no further suggetsions to make. > > > > Sorry I have added --debug after my initial mail. > But I am surprised that no debug output like "MEMORY RANGES" is done (like I got in my first try). > I have started to patch kexec-tools to check it, and debug is enabled. > Furthermore, I got in locate_hole:237 memory_ranges=0. > So the memory region in struct kexec_info is not initialized (and so cannot be printed) The memory region information is initialised by get_memory_ranges() in kexec/arch/arm/kexec-arm.c, which reads /proc/iomem. That is called from my_load(), which checks that info.memory_ranges is non-zero. If it's zero, it errors out with "Could not get memory layout". -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 10.2Mbps down 587kbps up