Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10443900ybi; Thu, 11 Jul 2019 05:27:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA5y2HDQ3o3F/bmk1gIUupiBPg0tsuQZ5l7Nc6ZoSBcajk/uIBIwOmiOpeKTdPHYH6RwA1 X-Received: by 2002:a17:90a:1b0c:: with SMTP id q12mr4650012pjq.76.1562848049567; Thu, 11 Jul 2019 05:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562848049; cv=none; d=google.com; s=arc-20160816; b=Rf44wc05vGaAOil/DiyeuQer8EJKT2DssISIos8NEBNOp7YB59+77DWPLzveWMtBdr dSItAy+E3oNdmyHxjyIw8VoZTt2oWv0hQHQKf3ya0T1oUDYcoIKfSHUG5XvrrtO2Zmlt X6pifaC2WsjSxde6gf2mTvx2HO+ceL9K4WCvnMuBln/tT4rnPIBOhpBiz9c32M8+hu0+ ncD6Z2GKialGPXO3B+84LUfRYQYcxjFvABmtcSfSIQati0Gv/fgwoed+m0cO5Lo/XDsw PqzB+l+Zrw8KAZvpqbxJHqPRpVqhtvPBgASR31VErDXfdeTr3WdoGU542AvSPlmHO7Ip M8aw== 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=XJ6ZMdK4LYRloh1U7sELBo1v2NVDRc/ffgJQQZCOGw8=; b=cXnPG1a1JbHYzoZ9K+0Hn6lXEpcX7ZCf7t+n+8iSPYNadYZyRYjEAQJv9+33cWpheU hIhd67FsNZwUrM/OpGmqzeIvVarADFQpX8nKgo+2iqU7lMextk7kbi4/Tg3NO500kK+0 coV+eUsD9YHwPsPm5+3+nAyyxDAwZD/uU/GSFh9NbKPjNNuIZT0qJ/e7SH2QLYSavs+J w+u4hZZkqOicNO8mtj9X3YsvqyHUHYWOyAVAuCTPjvdBaKTpQ70vspwXAP3hkIsarBsp xiZQnK2w2ELA4EUzLlxLaW271jguLVFAszH0Dh95rjqPUQnATra48iXrNzaJdZk007JQ yXHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=EW7GpK1y; 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 u191si5117110pgd.281.2019.07.11.05.27.13; Thu, 11 Jul 2019 05:27:29 -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=EW7GpK1y; 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 S1728692AbfGKM02 (ORCPT + 99 others); Thu, 11 Jul 2019 08:26:28 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:38987 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfGKM02 (ORCPT ); Thu, 11 Jul 2019 08:26:28 -0400 Received: by mail-ed1-f67.google.com with SMTP id m10so5620890edv.6 for ; Thu, 11 Jul 2019 05:26:27 -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=XJ6ZMdK4LYRloh1U7sELBo1v2NVDRc/ffgJQQZCOGw8=; b=EW7GpK1ypNgGxWDSTMOusRhBsnHaJj84KVn4gcs69/N7Uk7dXNGESNYBPBlBX4nMAC +zIFWunPSKy5J7VY1Y9C0q3D/5Dc/CU40NZ4BIFDBVGzcO2Ds0YruG2wTfBlz86+Nbjo z+i9dBBMWPgRi02j4HcZulKmeTzn1qyNlNrKDeYqkQ/ltfDkNb4rn8zVHh1pCmvJrX6c ZV4n9inovdSAot9aoSc/HNDfD4WlpxSQvSXv1y/wmJ+2gNyBk3qPttWksU014jdoWi7C kbHMTVoNVgEEuKb67O+BqKD0Gq08mOkhEgxIMU74FLyP8mwgdNa2L1L3Yavzsw8zemZj T+Dg== 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=XJ6ZMdK4LYRloh1U7sELBo1v2NVDRc/ffgJQQZCOGw8=; b=NzBO0SRZcWTYX1D63DKAPOZ+kI9+B13z9H1fQvAj1NPjpFlm91hbNb0tifT6OZEiaj eK9MYBT0OKW8sqeB3yEpYy6LtF9DsDArvoKL5F7DQ0eC2xZEXOjQZoMMpiOu1VQpFB1Y FyiBWqa/5ZcksCGHgXlp4CuaJXob1HiskPHFgaoawIDrMDqbFPf9z7CdIj/zVMCjSeeg 2WPpL+SNbwQlmYnnF9u9xEKwhZcLhDgCBilHZRRIMHpmRSj4ccoa3FnLHFUCnUw0roNA jVziJiPb4J3bmobUke2c7Cs++hsaYdM73udd4BEngGOPNaEAy+/k242vT8dBZS28qqFV xwsQ== X-Gm-Message-State: APjAAAWyOAqYyTPHO6UP4V2JEp3p0y8bZZYa9dsG/v9Lc8nKv/VdtHkw Q/wOv7mT7SrM5EzDywqOMeJ7HprFn6qsZlgGEUY= X-Received: by 2002:a05:6402:14c4:: with SMTP id f4mr3155357edx.170.1562847986892; Thu, 11 Jul 2019 05:26:26 -0700 (PDT) MIME-Version: 1.0 References: <20190708211528.12392-1-pasha.tatashin@soleen.com> <2d60f302-5161-638a-76cd-d7d79e5631fe@arm.com> <93f99d54-9fe4-a191-4877-080ad78322bb@arm.com> In-Reply-To: <93f99d54-9fe4-a191-4877-080ad78322bb@arm.com> From: Pavel Tatashin Date: Thu, 11 Jul 2019 08:26:16 -0400 Message-ID: Subject: Re: [v1 0/5] allow to reserve memory for normal kexec kernel To: Vladimir Murzin Cc: James Morse , Sasha Levin , Jonathan Corbet , Catalin Marinas , Bhupesh Sharma , Linux Doc Mailing List , kexec mailing list , Linux Kernel Mailing List , James Morris , Eric Biederman , will@kernel.org, linux-arm-kernel 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 On Thu, Jul 11, 2019 at 4:12 AM Vladimir Murzin wrote: > > Hi, > > On 7/10/19 4:56 PM, Pavel Tatashin wrote: > > On Wed, Jul 10, 2019 at 11:19 AM James Morse wrote: > >> > >> Hi Pasha, > >> > >> On 09/07/2019 14:07, Pavel Tatashin wrote: > >>>>> Enabling MMU and D-Cache for relocation would essentially require the > >>>>> same changes in kernel. Could you please share exactly why these were > >>>>> not accepted upstream into kexec-tools? > >>>> > >>>> Because '--no-checks' is a much simpler alternative. > >>>> > >>>> More of the discussion: > >>>> https://lore.kernel.org/linux-arm-kernel/5599813d-f83c-d154-287a-c131c48292ca@arm.com/ > >>>> > >>>> While you can make purgatory a fully-fledged operating system, it doesn't really need to > >>>> do anything on arm64. Errata-workarounds alone are a reason not do start down this path. > >>> > >>> Thank you James. I will summaries the information gathered from the > >>> yesterday's/today's discussion and add it to the cover letter together > >>> with ARM64 tag. I think, the patch series makes sense for ARM64 only, > >>> unless there are other platforms that disable caching/MMU during > >>> relocation. > >> > >> I'd prefer not to reserve additional memory for regular kexec just to avoid the relocation. > >> If the kernel's relocation work is so painful we can investigate doing it while the MMU is > >> enabled. If you can compare regular-kexec with kexec_file_load() you eliminate the > >> purgatory part of the work. > > > > Relocation time is exactly the same for regular-kexec and > > kexec_file_load(). So, the relocation is indeed painful for our case. > > I am working on adding MMU enabled kernel relocation. > > Out of curiosity, does enabling only I-cache make a difference? IIRC, it doesn't > require setting MMU, in contrast to D-cache. Resend: Thank you for suggestion. I have actually experimented with enabling caches without MMU. Did not see a difference. Thank you, Pasha > > Cheers > Vladimir > > > > > Pasha > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > >