Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9506842imu; Wed, 5 Dec 2018 06:01:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtD3w2N2Visz+2EKLI+Yy5aFh937zJwjsdgDwgnWWmkRJXcJcZ+PRkJjFqfrqa9wU10bYg X-Received: by 2002:a17:902:7005:: with SMTP id y5mr20054386plk.7.1544018498492; Wed, 05 Dec 2018 06:01:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544018498; cv=none; d=google.com; s=arc-20160816; b=i9qoPGuldO3u87uneXbKCtNXy3YSnAD6LLUEgQR7gpGmu0J5jV3DKyzxIkfKW0NeCG gEFc1Yy7YGHYpzWoaOkBdv+Bdb2OAdkd1ZhptxbW6QUKovSUhL8sllp1KhhkTrrZOXS0 /zJh8H6FdM6V1r26TOSNiJn9iK+L1uPFaBvDPRgaDg66U3om8I6SDlx7tsmFjrTgu/Ft GKRTrAZSBAQoMCfSOqrRkhoOetO8wIvpkpdOGpYhJdKsloHqQZWHn4R4Pq1O8VZ/Kj5z ihKk9E4Fi+5FK4Rpnhs8mfZjZT61d0d26i94Xc4yJ+i6RjoOP5pKl+6/GvdAdW67j9Tc Db4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=329hRdV/hFMizgeFqlxee06XwEwCoOIGT9bjsdzKZvM=; b=z8PuYl8o/eqFmCG0BSgE7YJTD9EJ/s8OoKg3Ofrc2egLgaB/iH1NyO/E7uyq7DpunT 00+CDDxlAJe6o9QdaqGLt7vBz1IFWlqFchUgdhCIIGnPOT6GXvvxgv1dVqEW4sSmLDE5 mvf6OnTc45rgGUNP4L6f0qYcdL/PsS+lX79mpXHIyeidH0qdOfHYYbFqTwWml3qc+Ad9 KQajuFTJHCGaFJcnjakgrj1WBbJkpgMY8Wxemx6ZEytRaW+T8QR1PXkYThcHDtF/AcCK OECzYo5unMCoy6wAGu9bIIdTOkDDM+0yTyfE3Q0lLuZJQQSYSYdxXhZkODlxr2SbHjZn cMjA== ARC-Authentication-Results: i=1; mx.google.com; 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 cf17si10302590plb.52.2018.12.05.06.01.19; Wed, 05 Dec 2018 06:01:38 -0800 (PST) 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; 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 S1727431AbeLEOAk (ORCPT + 99 others); Wed, 5 Dec 2018 09:00:40 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55004 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbeLEOAk (ORCPT ); Wed, 5 Dec 2018 09:00:40 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A5C7080D; Wed, 5 Dec 2018 06:00:39 -0800 (PST) Received: from [10.1.196.105] (eglon.cambridge.arm.com [10.1.196.105]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE3303F59C; Wed, 5 Dec 2018 06:00:36 -0800 (PST) Subject: Re: [PATCH RFC 6/7] arm64: kexec: no need to ClearPageReserved() To: David Hildenbrand Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-mediatek@lists.infradead.org, Catalin Marinas , Will Deacon , Bhupesh Sharma , Marc Zyngier , Dave Kleikamp , Mark Rutland , Andrew Morton , Michal Hocko , Matthew Wilcox , AKASHI Takahiro References: <20181205122851.5891-1-david@redhat.com> <20181205122851.5891-7-david@redhat.com> From: James Morse Message-ID: Date: Wed, 5 Dec 2018 14:00:35 +0000 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181205122851.5891-7-david@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, (CC: +Akashi) On 05/12/2018 12:28, David Hildenbrand wrote: > This will already be done by free_reserved_page(). (will already be -> will be ?) So it does! > diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c > index 922add8adb74..0ef4ea73aa54 100644 > --- a/arch/arm64/kernel/machine_kexec.c > +++ b/arch/arm64/kernel/machine_kexec.c > @@ -353,7 +353,6 @@ void crash_free_reserved_phys_range(unsigned long begin, unsigned long end) > > for (addr = begin; addr < end; addr += PAGE_SIZE) { > page = phys_to_page(addr); > - ClearPageReserved(page); > free_reserved_page(page); > } > } > Acked-by: James Morse Thanks, James