Received: by 10.213.65.68 with SMTP id h4csp2120967imn; Mon, 2 Apr 2018 01:14:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx48/bJXvLoGEMZZKh/mmK9fB/vmLm4bFVCCOIUxfOZskVPvp7JiVgp4q6Lo6en1x6NisRwaI X-Received: by 10.99.3.144 with SMTP id 138mr5736334pgd.364.1522656851159; Mon, 02 Apr 2018 01:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522656851; cv=none; d=google.com; s=arc-20160816; b=NDU9VjeYspMWogQPTpmZ/omD8dn77eL/QD8mBqiT3R1lXL4gAod9C4NmhdnnvuBGX4 qVXfO24iCVoAQiD0jfbzI+zPZs1hrvHmtPuzP34WqHaXKKx+99eScVNmvRq88SfvyE11 q8eXPlgCGshLZVptravH3vOgoAzkCx1rsnzCPVybZeVAic31JWGUfc2Z1/LW7BY+lW7g 2DTiNuCIEmftKNjSKUpX/4Aoc1hIBJrSQIRGbUM/TYddmOKg+RNH9sinntpMiD3hxTsy anQ1k+Tyb73iemz/aNo2crS/LmwJ6/1X7pR5qiPEprVb7pMMDmNaA5xPPeC/KlyozwNf 21Tg== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=Tkizeu4ES2/0iv8vbUMdzBAfLkWTrhXB9M0mpsSJKvI=; b=SxRSJyqo0MR6ko9m6ElTzeF11qCPKuAzZGCA5/vWYXfefsOyL+JuZVXD3qloWbtMoE pvHqacfrn/HQiU76Pum+OodM5XpW1jtFwPBe2q0aW86vBV0zPP9hHPjCV1JyhzwPdd5N ho2AmndK2DWeFTZPzIQpztuEU2UfJ1Awz1C21vwxlwdskhqV9iG5S/G3nvko9iFelb+X bbHvh801AET7Ho+bDtCFX2N9jmLI9WyT8h0tFsmn/0wzSoSqSW926+fF4I9AbKSxwI0V mDcMgz35Al73P3rglo98JjW2fR3iIGy1gKBK+ciFvy4AqZeFXgpelTZGS2PQGQS40/61 H3WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WYzTv8QH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si9509274pgt.225.2018.04.02.01.13.55; Mon, 02 Apr 2018 01:14:11 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WYzTv8QH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754392AbeDBIMp (ORCPT + 99 others); Mon, 2 Apr 2018 04:12:45 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:43587 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754246AbeDBIMm (ORCPT ); Mon, 2 Apr 2018 04:12:42 -0400 Received: by mail-pf0-f196.google.com with SMTP id j2so9031459pff.10 for ; Mon, 02 Apr 2018 01:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Tkizeu4ES2/0iv8vbUMdzBAfLkWTrhXB9M0mpsSJKvI=; b=WYzTv8QHinygWeah0TZ9ILjsOTb0qKFEnMOSCOHx+7vsHUSuDJyyIClLQf6NfY67lM JDRu5j6tjNmyrxIsUMxwJm1IDnczQFb4in1jAWytweSUaLHKHB6yEZ/dC5pGXL4AxZW5 63V4CTHqQxZ+8OVLPeHWXafqz2yH0qedDoMY8g7qvV1WqSKY3GOdfoJg5wGrqPuIWmEl 9RI6jkL6iPFC70A6nJGuYGtMpbNkpC3P2pb5nn3ncrPV8BAG4KKjBP5yIOHGXav9K/WD NAPCWa5fjo8QxOfLQZN3sBNE/nBPE03KgAQqyfV0EetQhC7ZSL00ME0VkE92SZF+Irl+ tcLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Tkizeu4ES2/0iv8vbUMdzBAfLkWTrhXB9M0mpsSJKvI=; b=I81KplvR5TUIdewoK7i0tCmWOux5qo1wOvUQZgpSOwZb64sEQpj8qMPvCtLn/o+42O g+2tZ4x1VEpM//esrxToDnU0tPWDtKeokdtEogBRmjaJSgt4JXgVEQ4WM6NrWq5HxevI Mb8MfeURPvWcJs5fT5omh18JjbNg2WApiEXYNOgBAODnFRaok0Pizhp0MBi19ngc8bSG Tu0YBgD2SWRgmJKVb3ndd7jfPUnwCS69HVeXQbR7QPggqZHWmyk3Wwr3wg/jEftiXxzq +nwGcT8wMT3FJKG3vLFnLIqBEqhA1j0Lvwg68i/w1bvKaxnaFhmikCJ5IZDnxZCqpogR gDUA== X-Gm-Message-State: AElRT7HkBrcb+WBwEsnZo4NyR812l+vROSSWl/7ofZxhag/j7J7WaT5n ygDhr6eorcwZ6UE41dw5YXs= X-Received: by 10.99.152.10 with SMTP id q10mr5865866pgd.40.1522656762216; Mon, 02 Apr 2018 01:12:42 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id c15sm29642808pfm.114.2018.04.02.01.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 01:12:40 -0700 (PDT) Date: Mon, 2 Apr 2018 16:12:33 +0800 From: Wei Yang To: Jia He Cc: Wei Yang , Andrew Morton , Michal Hocko , Catalin Marinas , Mel Gorman , Will Deacon , Mark Rutland , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Pavel Tatashin , Daniel Jordan , AKASHI Takahiro , Gioh Kim , Steven Sistare , Daniel Vacek , Eugeniu Rosca , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org, James Morse , Steve Capper , x86@kernel.org, Greg Kroah-Hartman , Kate Stewart , Philippe Ombredanne , Johannes Weiner , Kemi Wang , Petr Tesarik , YASUAKI ISHIMATSU , Andrey Ryabinin , Nikolay Borisov , Jia He Subject: Re: [PATCH v3 1/5] mm: page_alloc: remain memblock_next_valid_pfn() when CONFIG_HAVE_ARCH_PFN_VALID is enable Message-ID: <20180402081233.GA38180@WeideMacBook-Pro.local> Reply-To: Wei Yang References: <1522033340-6575-1-git-send-email-hejianet@gmail.com> <1522033340-6575-2-git-send-email-hejianet@gmail.com> <20180328091800.GB97260@WeideMacBook-Pro.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 28, 2018 at 05:49:23PM +0800, Jia He wrote: > > >On 3/28/2018 5:18 PM, Wei Yang Wrote: >> Oops, I should reply this thread. Forget about the reply on another thread. >> >> On Sun, Mar 25, 2018 at 08:02:15PM -0700, Jia He wrote: >> > Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns >> > where possible") optimized the loop in memmap_init_zone(). But it causes >> > possible panic bug. So Daniel Vacek reverted it later. >> > >> Why this has a bug? Do you have some link about it? >> >> If the audience could know the potential risk, it would be helpful to review >> the code and decide whether to take it back. >Hi Wei >Paul firstly submit a commit b92df1de5 to improve the loop in >memmap_init_zone. >And Daniel tried to fix a bug_on panic issue on X86 in commit 864b75f9d6b >because >there is evidence that this bug_on was caused by b92df1de5 [1]. > >But things didn't get better, 864b75f9d6b caused booting hang issue on >arm{64} [2] >So maintainer decided to reverted both b92df1de5 and 864b75f9d6b > >[1] https://patchwork.kernel.org/patch/10251145/ >[2] https://lkml.org/lkml/2018/3/14/469 I took some time to look into the discussion, while the root cause seems not clear now? -- Wei Yang Help you, Help me