Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4166243rwe; Tue, 30 Aug 2022 05:53:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ThZVIZIZp2mePOYXq37ElpHjCZpkP5dDbn6vvU3hr1COW3/OioP0BERXieb2kda4LUsqG X-Received: by 2002:a05:6402:f21:b0:446:19c5:59ea with SMTP id i33-20020a0564020f2100b0044619c559eamr20585337eda.371.1661864037912; Tue, 30 Aug 2022 05:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661864037; cv=none; d=google.com; s=arc-20160816; b=q3bOtZXwXXiKb4AoOoMYWLfkqg2abNCLIW8ZpHianQ1WckCpoUWdqS1XDnHntGTcxY LwB/EZRekS1guepYqiYLnFhZIueaeTuPkBYeEzRiHoTomj0vSn8J8SjoNUNR16v1PrPE +THOGq9fSRRlIppue2PFL2WAaDpWnfykVNfs0GMHIYu9VkRsZTv2hCJKidV7z+vHtFbd HzZUTTVTJKKa5swoWzEdf+7d9o5mc0loV39ojwPEIQW6DNwPZx086AYhWMY3bJNBlrau azqdSaS6PT04tnw38RYMpJzCGXhoH1sKR8j+2zfxvt31di1jVZD+SgVky+FlAO4GC7gn y2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3UT54XJrekXL8c4mrX4vwvSpge6ZFyCM6o46RKlXL6s=; b=RlRLXN4CEbA3uGmO/gaMZWm9Rl7+9TDOroQ9FKFM5fcJ1r0TvC8v2hQpWpCTgZezen hos/60Hh7I02MvW8SKuW0eMez05YZH9aYiRwmEZM8U8jHOEsGiBck8ofxjEE3wmbFlo7 +HFM/ta3pvBzw30Z2dvufvQrhL5OgJwZdWP25+qbFNL066huqjggZIDrxqEA+eMnIi55 e2vURSxcwEyLhrjfzYxQkLbB6oysfeSMmScB2ZITK3PXKejshr7qd3c3+aye+xj7dQKr jqv0yWBFx/l8dH68qQa6BvGABe40UNZkO7c+IFoQKRPV44XJK64mfDGo6omoElwULVbr fiWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ajqx4avA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr8-20020a1709073f8800b0073d9af9347bsi1612244ejc.673.2022.08.30.05.53.30; Tue, 30 Aug 2022 05:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ajqx4avA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiH3MrC (ORCPT + 99 others); Tue, 30 Aug 2022 08:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbiH3MrB (ORCPT ); Tue, 30 Aug 2022 08:47:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E372BDF64B for ; Tue, 30 Aug 2022 05:47:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661863620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3UT54XJrekXL8c4mrX4vwvSpge6ZFyCM6o46RKlXL6s=; b=Ajqx4avAiZmTAcamC/n2FDw+4UbT0zITiRMj5EUFQKuRpG0JzX8pKkFAX3yZ4LlwAPgZPB dXuj523t739Qcz0q8Y0vqhfJ1DHF/nZyFFQG9UiLaa/BCLeDGoCZqAsV8R+O7fNrPAMxAD gkdsSS+3drYkyEj8FghfVFZp15vw7XU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-654-XHXWHpWOP---uR8szXvu5Q-1; Tue, 30 Aug 2022 08:46:58 -0400 X-MC-Unique: XHXWHpWOP---uR8szXvu5Q-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7EFE3185A7BA; Tue, 30 Aug 2022 12:46:57 +0000 (UTC) Received: from localhost (ovpn-12-78.pek2.redhat.com [10.72.12.78]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 431FB492C3B; Tue, 30 Aug 2022 12:46:55 +0000 (UTC) Date: Tue, 30 Aug 2022 20:46:52 +0800 From: Baoquan He To: Levi Yun Cc: will@kernel.org, catalin.marinas@arm.com, nramas@linux.microsoft.com, thunder.leizhen@huawei.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kexec@lists.infradead.org Subject: Re: [PATCH v2] arm64/kexec: Fix missing extra range for crashkres_low. Message-ID: References: <20220830092839.3197-1-ppbuk5246@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220830092839.3197-1-ppbuk5246@gmail.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/30/22 at 06:28pm, Levi Yun wrote: > Like crashk_res, Calling crash_exclude_mem_range function with > crashk_low_res area would need extra crash_mem range too. > > Add one more extra cmem range slot in case of crashk_low_res is used. ~~^ should be removed. LGTM, Acked-by: Baoquan He > > Signed-off-by: Levi Yun > --- > arch/arm64/kernel/machine_kexec_file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/machine_kexec_file.c b/arch/arm64/kernel/machine_kexec_file.c > index 889951291cc0..a11a6e14ba89 100644 > --- a/arch/arm64/kernel/machine_kexec_file.c > +++ b/arch/arm64/kernel/machine_kexec_file.c > @@ -47,7 +47,7 @@ static int prepare_elf_headers(void **addr, unsigned long *sz) > u64 i; > phys_addr_t start, end; > > - nr_ranges = 1; /* for exclusion of crashkernel region */ > + nr_ranges = 2; /* for exclusion of crashkernel region */ > for_each_mem_range(i, &start, &end) > nr_ranges++; > > -- > 2.35.1 >