Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2042928pxb; Fri, 17 Sep 2021 00:20:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt9DfjWdEhlhF1Z8Z8nWi0DHyAl1sUOrbhwEe3KLgoQ0Poi5oydCcW1uztgSfTveVC7gj0 X-Received: by 2002:a02:7b01:: with SMTP id q1mr7534452jac.81.1631863230738; Fri, 17 Sep 2021 00:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631863230; cv=none; d=google.com; s=arc-20160816; b=MVDrWPYepsgVL8XMJAbJ+LImRY3IajYnd9mKzuh4iq5FbFvyz190agkrMkKDLAa7qD tPcEo/wyEL4X0mqrr32tE2UxMiNnP2VmpQWRmltYemHH3TuPOcpW0SEpcpqrkNLufht1 t442ed2oRAz88CaKHsv3KbrkmjN+nJeiGlOQnFLq0D9tOK4V8h+xEdSbk7wJZJplWtIs imdbpcHSSc+1lecrR4ICOGZCtTORF7YT3geP/EvGJR5C5BndLl+Gl09JOfSOvPTYv2Wz puIL13d472Jvjh7FWb9vttcINtrhb5z+ONX3HwtoxqCg74876bnQGZpFXd+MxKrXYa9S QaNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Vvjuc1s471hi8ZajeNQIG3gv1AZTpgaS2fHSkCO9Sdg=; b=o5hvDvne1rncoX4/ypD2TnMSkuCVBKqBedlyrIegsw8ieZkL9D3pw83ka/b35oIj7b yLRz8K17xz7DvsI0sJWM//sdYTHjuiTIF3++i4Ui2C1RAq1SozPLK7+txeP+lh4090o4 nrzax5jxzN0QsRAiJypkYLNPdJm+zt4klq4OQ0Y3al7N8j6njtQMhCs6uUjByKYXvFpN d64y0H3orwQs2WQCeJvE/cNKQ38m6YmO9hnnTa9Fu8aK/q08hd+9Q4JJl1ZBG/4u4OIl 1Hoj65Nmek7G5A7V4rK3ZufFIwu6+XomYEeYHz1z8tdPiQAIcQuvnmAc8JyV/RvyKxf/ AOBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b="SU/f5lVF"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c39si4607489jaf.12.2021.09.17.00.20.19; Fri, 17 Sep 2021 00:20:30 -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=@soleen.com header.s=google header.b="SU/f5lVF"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241109AbhIPWeO (ORCPT + 99 others); Thu, 16 Sep 2021 18:34:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241102AbhIPWeN (ORCPT ); Thu, 16 Sep 2021 18:34:13 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77660C061574 for ; Thu, 16 Sep 2021 15:32:52 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id i7so24442665lfr.13 for ; Thu, 16 Sep 2021 15:32:52 -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=Vvjuc1s471hi8ZajeNQIG3gv1AZTpgaS2fHSkCO9Sdg=; b=SU/f5lVFG8+UduenFccb3j4t/4459qRZdQFoXW3xdfwGszV6YLPbsyZfOrGBKmzNXl Aryi+aJCoxa1YoHNGecjiRQOKIY67VrWWKG2E6dppRysGxE9ch4McoVq7pzN4y42cHby lprcUNOVw6E2K5i6Q8pV07ATIdO0//4IynMZKvlatXCtBV2DOdtoiPdU3559pPDtv3AJ 0lVBWYiJeKQQzJwnQxH9r2gW3lu9WgPRd1ykp8QbAQXYaeMdqeVyk2wckMvd+HOXEke6 MCIo0MtZ666Cp84+mscFmrrebmYXf20pWmYYy8rsqHqgWTDBOJXCoFK1G6zpOAGcZPSV E0mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vvjuc1s471hi8ZajeNQIG3gv1AZTpgaS2fHSkCO9Sdg=; b=ZENYf44YuqFrdR+mOmXou3gtxzIU/gaK/75wClE6sJwc11eEDmUyW7wcR9Ti1xaQFN JlBHqsg7xQ+84Jpt+/mwvC0FB/xghOQexB3uWnV3GtVH3mt/CNwnG6sUrBQKifmMDVl0 jvNvH4JtfPHaAoM4dALJQrMsgqc1rwqlMiCa4U+t2tQt9cCgN0+TZCV20RrI3VFIaDUk uhNSaVpjlknM0XugKMzYJVpAUJP+gKcXo3h40pypCXnFGZZwCNV17O4ErwiU0Bqs3TId D4aia3oZILHn2qRQJVnGm+XTPc73dUaNgeA0/D+VnqH8UEPjZZURyOe03VlbWeTFzidt OcZg== X-Gm-Message-State: AOAM5339CwDwf+pHSua+5qB5W6mlopu32Gch/NdJQaxnPTsFtjWv17kR tGe9wpWb7F6YtQIbgpPFPjcL8P6S0NP/RFo9glr9iw== X-Received: by 2002:ac2:4f85:: with SMTP id z5mr5630159lfs.125.1631831570795; Thu, 16 Sep 2021 15:32:50 -0700 (PDT) MIME-Version: 1.0 References: <20210802215408.804942-1-pasha.tatashin@soleen.com> <20210824180555.GD623@arm.com> In-Reply-To: From: Pasha Tatashin Date: Thu, 16 Sep 2021 18:32:14 -0400 Message-ID: Subject: Re: [PATCH v16 00/15] arm64: MMU enabled kexec relocation To: Catalin Marinas Cc: James Morris , Sasha Levin , "Eric W. Biederman" , kexec mailing list , LKML , Jonathan Corbet , Will Deacon , Linux ARM , Marc Zyngier , James Morse , Vladimir Murzin , Matthias Brugger , linux-mm , Mark Rutland , steve.capper@arm.com, rfontana@redhat.com, Thomas Gleixner , Selin Dag , Tyler Hicks , Pingfan Liu , Andrew Morton , madvenka@linux.microsoft.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > In case we are so low on memory that trans_pgd_create_copy() fails to > > allocate the linear map that uses the large pages (the size of the > > page table is tiny) the kexec fails during kexec load time (not during > > reboot time), as out of memory. The MMU enabled kexec reboot is always > > on, and we should not have several ways to do kexec reboot as it makes > > the kexec reboot unpredictable in terms of performance, and also prone > > to bugs by having a common MMU enabled path and less common path when > > we are low on memory which is never tested. > > I think this makes sense, especially since it will fail during the kexec > load time rather than reboot. > > I'm ok in principle with this series but I'd need to convince James > Morse to have a another look since he followed it more closely than me. > Could you please rebase it against 5.15-rc1? Sure, I will send it out soon. Thanks, Pasha