Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9420460ybi; Wed, 10 Jul 2019 09:58:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmkcwUPBpyPQycwU/ji4zQe9DZTywJz5Rx125VPNWbOED+tF5ibudmEfkGrQAk8t5g5GU6 X-Received: by 2002:a17:90a:a410:: with SMTP id y16mr8202296pjp.62.1562777895915; Wed, 10 Jul 2019 09:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562777895; cv=none; d=google.com; s=arc-20160816; b=P2ZsQeMrtuWfJuHUjs49IvNqem4tkDdluA2SC/yV/E5RPoSWGPIt8f55KVaSWiLuI/ XP1Ozip9eEI7iwlnL9ZH8rs2XvPGy2MXYqHFS3+5GaBUlGw73CkEj96G6voySJHSqx6L dESbgFMJqy30tbmxkGDSpHJ5cq34W6i3+/c4kqTWm2G3AlkyH/UiMJATiIu6kTMoscCk lpSjLwM1XPMy9xiojuPFr6bC6AcTbiBUPD0tdLrnTuI/Gz9WK4K+GxHIEH6CUfNeYpHG lDamZ8rryCnTTW9IWmcH8LtToiDvRzlfOdRYG9fTUkzIgrGqRmvCe1/1DQtHeLYZ8dim R3YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OooCPJ+TfmCiIkPVCQN9rBe4Zl+T7uS7oe42m2m8dO8=; b=GF3us6x402W3SNc8gs2KgN6nNTxQdXsv7dHwYOvxoOuOPGuC1mKnQ4jMvGLxEtC7et MNEExCOEegTVPl9npyQG6ast/81rNwGu0xO0OrID0yYWX9VwBSEmRVv2bI1UfzQzOLaM Yfbton+xwAVxUp0Vco7q+QOnwbUuKUPdB+FiqAAdPmLOwITv2QzGwS+nLH7cTIywEg4n jCZN6eYGJR7NCgpVGQ383UuQMNLXPG7tosDSh2z0UnRVHQ/1N446jDlOd0SOeU0HQhgH bLNrTwtQFt5tyRBP1lVFP+DzzbzY1miMfZa3Zr37GM+UzO6PQTui2B0X99PwcPqqdpuu lMrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=NDu1fs3J; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x18si2450032plm.292.2019.07.10.09.58.00; Wed, 10 Jul 2019 09:58:15 -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=pass header.i=@soleen.com header.s=google header.b=NDu1fs3J; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbfGJPxN (ORCPT + 99 others); Wed, 10 Jul 2019 11:53:13 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:36706 "EHLO mail-ed1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbfGJPxN (ORCPT ); Wed, 10 Jul 2019 11:53:13 -0400 Received: by mail-ed1-f52.google.com with SMTP id k21so2679688edq.3 for ; Wed, 10 Jul 2019 08:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OooCPJ+TfmCiIkPVCQN9rBe4Zl+T7uS7oe42m2m8dO8=; b=NDu1fs3Jx5NnJxsIJXbuNNaTY9DeNvY++yCZH2Aqe/HCWCLe0jW0MSpBbjrkQ3HVdh uxtulPIk/CNjS0NRv1JMzmYodopKY/+CANbJ9grsV8q3Sn48x93g5QYRcjv6aOZ7sxUN 99tk+HQN99ShqhLlvW4RAYTOM8pl+1SCJtKjilRR5H1lijlbXBbReR/YgW3ifQCsFIlV znzAj3ymqFOeEuooUCLRv9BhhsUSrftPWhTW9SKEzhoTFv3JdKPwXjDmopcHpA9ABmb9 M+1GSzxxVDUtgogYv358LkymKGrRnRIgU61uxTZHbwe2dMH2ljUmEAlx5upSYZZnSaeE mchg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OooCPJ+TfmCiIkPVCQN9rBe4Zl+T7uS7oe42m2m8dO8=; b=okLnX5Eb4ufM7nB9PVRWDoOl9pDcFo8alm3CYrCSJfHlDvUtc+CVetSuglLBPejUrp R+jCawzLwaNhX/Z//dgFloCJjiVi/aUe9hho3WnqEWFwjZ/VxAG5Uk2hL/+eNJdQKwSR gPd1ycmIA5csLNqsHgXSsq67gK8cRjvKZ2NHtt90SVdz8nchr/+vuIbw5Yz5R0UUUK3n 2CpGxHhzHUax9qM0U4OsBenuk0pJWjQA6prbKxyOY3oxQauudRZDmpgfCBHrxkJaUp3D o/WVBAgq6kNjMnGmg9lwBWBERt3aP1yquiWWaIUsJ62efnbWQnnh3tcY29wHLbdoSmNh YZqA== X-Gm-Message-State: APjAAAX8ITv4VkNduZIJKYNoRGQzeOjI7Fo/2EnHA9VGU8/vR1aNvW3Z 5vzIM+YofQ+jPW63yqg59Px18a/hkBwNsTvkFjv24A== X-Received: by 2002:a17:906:b203:: with SMTP id p3mr27035845ejz.223.1562773991171; Wed, 10 Jul 2019 08:53:11 -0700 (PDT) MIME-Version: 1.0 References: <20190709182014.16052-1-pasha.tatashin@soleen.com> <20190710065953.GA4744@localhost.localdomain> In-Reply-To: <20190710065953.GA4744@localhost.localdomain> From: Pavel Tatashin Date: Wed, 10 Jul 2019 11:53:00 -0400 Message-ID: Subject: Re: [v2 0/5] arm64: allow to reserve memory for normal kexec kernel To: Dave Young Cc: James Morris , Sasha Levin , "Eric W. Biederman" , kexec mailing list , LKML , Jonathan Corbet , Catalin Marinas , will@kernel.org, Linux Doc Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The crashkernel reservation for kdump is a must, there are already a lot > of different problems need to consider, for example the low and high > memory issues, and a lot of other things. I'm not convinced to enable > this for kexec reboot. > > This really looks to workaround the arm64 issue and move the > complication to kernel. I will be working on MMU arm64 kernel relocation solution. Pasha > > > On, the other hand hibernate does something similar already, but there > > MMU never needs to be disabled, and also by the time machine_kexec() > > is called, allocator is not available, as we can't fail to do reboot, > > so page table must be pre-allocated during kernel load time. > > > > Note: the above time is relocation time only. Purgatory usually also > > computes checksum, but that is skipped, because --no-check is used when > > kernel image is loaded via kexec. > > > > Pavel Tatashin (5): > > kexec: quiet down kexec reboot > > kexec: add resource for normal kexec region > > kexec: export common crashkernel/kexeckernel parser > > kexec: use reserved memory for normal kexec reboot > > arm64, kexec: reserve kexeckernel region > > > > .../admin-guide/kernel-parameters.txt | 7 ++ > > arch/arm64/kernel/setup.c | 5 ++ > > arch/arm64/mm/init.c | 83 ++++++++++++------- > > include/linux/crash_core.h | 6 ++ > > include/linux/ioport.h | 1 + > > include/linux/kexec.h | 6 +- > > kernel/crash_core.c | 27 +++--- > > kernel/kexec_core.c | 50 +++++++---- > > 8 files changed, 127 insertions(+), 58 deletions(-) > > > > -- > > 2.22.0 > > > > > > _______________________________________________ > > kexec mailing list > > kexec@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/kexec > > Thanks > Dave