Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp646265imu; Fri, 25 Jan 2019 08:28:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN56vsBlbeOGJ9TA08jRU+CUyJpX6mshUei3V6BTQCkYXbfjqp3LSSzX0dofJumUCM0qYJdN X-Received: by 2002:a62:6385:: with SMTP id x127mr11731138pfb.15.1548433739154; Fri, 25 Jan 2019 08:28:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548433739; cv=none; d=google.com; s=arc-20160816; b=VcbklBkuSoKZziksP4rGjZiHmcSzh7ONqtgsgsph2va+HvKag/mc31YwNMrFBIJV4o JckgJPteaFUIgEU0Zt+BGhPROnOqReKeysrJxMhliO4FrPuT9tJX+wW+sYSziQX7NYVl m8zaZraR/B1i/Xy8rUCJZdzT/emaGhzquwn1oT1UgGhWRw5J4axEHPfadNKvcLjURTM3 9DIwPSiYXCvjQAlK+19m8PQ/2k/v2/L/T4SdhMV3Uk6naPVCC5bfPljK3uj6DmoVGOFq 4y72d4oGw1qGANYw1V2pxN9euIwkvAdHu/HaVqwgBpfOUIBzH5X6ESPbqwjZ26zH0W8q GU8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Xw3HsD8ukJkNL8r0F5JEF8xAFlxjU3UaD31vBFRDphM=; b=h2m3MohfS3w1+tDtNtiBTvYHwULKdhDEk9Lsq+pL8WBRmFUVUpBYibdFtzQEn0fMIp aOpsWD0CtLerXMrbbHcczaJeI9mAHEbPeIU/YGZ7opZNkKtFpyNQX1qJU1K+zPoua3eo kVYchsMIuwepXOYFHsV1T9TeAH5iYtV6VG5mkSPzQnXb7wakyMB0AJJ9z3+V3E7D6fHm qjfULVogHrmXPcdhtUjiY9OM5cMOS8rwoiC5RrXiBMWk5qfTuELwjuW1tIxa5mH6Mli4 HL9i+7YOlL/cNfUUwAhklFeELfLgf5gdOtMA+SHKoqCYgChlHiHvZgbT1wn+v+5rIDlK Kiqw== 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 cf17si6802864plb.52.2019.01.25.08.28.43; Fri, 25 Jan 2019 08:28:59 -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 S1726778AbfAYQ2i (ORCPT + 99 others); Fri, 25 Jan 2019 11:28:38 -0500 Received: from foss.arm.com ([217.140.101.70]:50248 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbfAYQ2i (ORCPT ); Fri, 25 Jan 2019 11:28:38 -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 EEF68A78; Fri, 25 Jan 2019 08:28:37 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D23C93F5AF; Fri, 25 Jan 2019 08:28:33 -0800 (PST) Date: Fri, 25 Jan 2019 16:28:31 +0000 From: Catalin Marinas 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, Will Deacon , James Morse , Bhupesh Sharma , Mark Rutland , Dave Kleikamp , Andrew Morton , Mike Rapoport , Michal Hocko , Florian Fainelli , Stefan Agner , Laura Abbott , Greg Hackmann , Johannes Weiner , Kristina Martsenko , CHANDAN VN , AKASHI Takahiro , Logan Gunthorpe Subject: Re: [PATCH v2 7/9] arm64: kdump: No need to mark crashkernel pages manually PG_reserved Message-ID: <20190125162830.GK25901@arrakis.emea.arm.com> References: <20190114125903.24845-1-david@redhat.com> <20190114125903.24845-8-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190114125903.24845-8-david@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 01:59:01PM +0100, David Hildenbrand wrote: > The crashkernel is reserved via memblock_reserve(). memblock_free_all() > will call free_low_memory_core_early(), which will go over all reserved > memblocks, marking the pages as PG_reserved. > > So manually marking pages as PG_reserved is not necessary, they are > already in the desired state (otherwise they would have been handed over > to the buddy as free pages and bad things would happen). > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: James Morse > Cc: Bhupesh Sharma > Cc: David Hildenbrand > Cc: Mark Rutland > Cc: Dave Kleikamp > Cc: Andrew Morton > Cc: Mike Rapoport > Cc: Michal Hocko > Cc: Florian Fainelli > Cc: Stefan Agner > Cc: Laura Abbott > Cc: Greg Hackmann > Cc: Johannes Weiner > Cc: Kristina Martsenko > Cc: CHANDAN VN > Cc: AKASHI Takahiro > Cc: Logan Gunthorpe > Reviewed-by: Matthias Brugger > Signed-off-by: David Hildenbrand Acked-by: Catalin Marinas