Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp806121pxj; Thu, 27 May 2021 12:04:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDbW5dUi99nn0hcUkWcIoKqYv8HjLV/8ooEdstixE79AOpV0ekLww0AyQJFtLU6XxULcPr X-Received: by 2002:a17:906:4e09:: with SMTP id z9mr5533355eju.156.1622142250250; Thu, 27 May 2021 12:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622142250; cv=none; d=google.com; s=arc-20160816; b=dtdwPTW9qKEavV8arG/z0zPAJR5ROgn8Ncxm3NohBEHhI5m9bR3YkmpNX45TSWuScM d++YO3NGl4XLjLlvxIb9GkZ4ULXklYWILhQ7BFFn9jg3ChaaaYnUp2w6a3fOxchlOQzk BMsNPFU2Xwla01vAUOMhN6OCD1Qljm1ZJdt4V6XUOY5mVkHpgLHm//cPumUTff4NpCFH 9nGnIj/KvJ1UTxKf7JcWtyy4eqxLil7edfnhOSnskW5Zd28fRLJEwGdLluwFm62womC3 UT+XzW2abIjcvI50IjhmVH28BB8SxALFK/e8uptORhwAnZpBAFOw81UHw2Hn3/ChOCio EpyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=CMm0v2iocRhaMqTYwpRajh397d6Ih8XB1uVNuJ/hvHI=; b=ewmNWOXXw98oKGUtSB6Vi//bAIrgIbvqzcQOxYty5IpPDNhONaXJQRZdloRMC3237C d58sYu+VqHJWl1ZY/7uEw9xp99GL5dUqmNUoo/ogfP0DwFlXnBdhHH9AL/nUGCVi3SrC JSlDEiTLC4Vy8P+6GoiPBwCOgTWeagfInVHnNTTetGB2gvTyVVLBtmL1T8TrZQABhm4f 1HcuKem1XBsQyRAdhdJlEc1VwKfCb26nS2hZNLl1XEHyzB6zRrvEO7aeHayU4UGs8udq fzsVuI6BnaoqpwHxfofR/qVLnlCF0bB0ux7We0VDNafNSV9AI0ysUQNehi/tHXJrc4rO UDWg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si2778937edt.518.2021.05.27.12.03.46; Thu, 27 May 2021 12:04:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235400AbhE0Rkz (ORCPT + 99 others); Thu, 27 May 2021 13:40:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:34686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235365AbhE0Rky (ORCPT ); Thu, 27 May 2021 13:40:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D0730613BE; Thu, 27 May 2021 17:39:17 +0000 (UTC) Date: Thu, 27 May 2021 18:39:15 +0100 From: Catalin Marinas To: Marc Zyngier Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Ard Biesheuvel , Mark Rutland , James Morse , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Eric Biederman , Bhupesh SHARMA , AKASHI Takahiro , Dave Young , Moritz Fischer , kernel-team@android.com Subject: Re: [PATCH 0/4] arm64: Make kexec_file_load honor iomem reservations Message-ID: <20210527173915.GH8661@arm.com> References: <20210526190531.62751-1-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210526190531.62751-1-maz@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 08:05:27PM +0100, Marc Zyngier wrote: > This series is a complete departure from the approach I initially sent > almost a month ago[1]. Instead of trying to teach EFI, ACPI and other > subsystem to use memblock, I've decided to stick with the iomem > resource tree and use that exclusively for arm64. > > This means that my current approach is (despite what I initially > replied to both Dave and Catalin) to provide an arm64-specific > implementation of arch_kexec_locate_mem_hole() which walks the > resource tree and excludes ranges of RAM that have been registered for > any odd purpose. This is exactly what the userspace implementation > does, and I don't really see a good reason to diverge from it. > > Again, this allows my Synquacer board to reliably use kexec_file_load > with as little as 256M, something that would always fail before as it > would overwrite most of the reserved tables. > > Obviously, this is now at least 5.14 material. Given how broken > kexec_file_load is for non-crash kernels on arm64 at the moment, > should we at least disable it in 5.13 and all previous stable kernels? I think it makes sense to disable it in the current and earlier kernels. For this series: Acked-by: Catalin Marinas