Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6407563imm; Wed, 27 Jun 2018 07:16:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIEXf0YaPu/BZouFnF2bOQncj5YTXFIqRp8H8vvTpo3wufrJQhrSwO8xeA1v3o0Z8rRRdXe X-Received: by 2002:a63:2505:: with SMTP id l5-v6mr5508830pgl.40.1530108965391; Wed, 27 Jun 2018 07:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530108965; cv=none; d=google.com; s=arc-20160816; b=ouYk9eXkFpsQs+/A6dAc8IL06s6VKJqiftsVUYkvYXkff+9K6BHvtJIPgdaxdJnWy1 eH1WqWzGAqtqq2z3xsmCNuuyPGc2Z/wS3xZbTqsZ2aMSJUG14RCghcNSPpZo/lPvlTYg Fbcaz5rweDWJWze6a+KttqYZUz+/QiMsvvVGhe9yZh9LX/sjw40pyxtdAN4vixS5QNaX j9thCW0iTG3rR7ngsBP/rchk55NRyAAdTNfLQL0+6l6cItvs9gs8bq8syyylWD7HXAfs 2Bof03gJ02lpnXCx3oxPVVKAr3IyYkPYVBnIJSlGB6velYxZ5AIMRieNJnoxM5F2FXhn 2+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=InD2+WfOHtcHf7E97uFl/Lyesj8W085nouoPvNH96lA=; b=AkZCMp3RASkLONxRv4/7IXwM3APu143sdqfOKYf58PRQEdMR1OXY6++BXNCRKWfpje S1ASPikcsYYwhnhMApefZVqP40AKMXdYAPZ269ASIw3HEXSur8bzo99a5d8C9JLnNB2u AJHV/OrLcwkrz1qea2hLwBcmbWj369cLXtWuXJQW2W2TzlxkLIVE0Xf1Pprt5VKYUMXd JbKJ/GyV7oepBsnM+6OpABMafkJL/rrZaVwii+q3cNZGYgbX5Zl2nPxurRDhk5CKUdbr phUbrAq6iAftaK+t2JMHKWcLWefFdJSocjFanfz2KK//9yrVrf/UrBHROUevGN/DS6RT eSvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Z/eeTvr+"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si3471072pgn.178.2018.06.27.07.15.50; Wed, 27 Jun 2018 07:16:05 -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=@kernel.org header.s=default header.b="Z/eeTvr+"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965333AbeF0NeK (ORCPT + 99 others); Wed, 27 Jun 2018 09:34:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:60424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965153AbeF0NeJ (ORCPT ); Wed, 27 Jun 2018 09:34:09 -0400 Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EDF172634D; Wed, 27 Jun 2018 13:34:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530106449; bh=WQDk22eO3WlQ3V6rUjoFJXghMsvLDfpBohFBWVF2i+g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Z/eeTvr+Ixcccz8lTvIePOgcC3+AgD4t7STmlbxT/7bQGEY3r+mz5+qPrC/GEjz7C ZrVTvQlvlNVav2fnfHaWBxwvCPj43aRZLPLgT3tozRpMQgvX2rrtoACK0xu9Qfxufp 2T09ogikO2jYNIQ8xbH2BO0e3lFpLwcgzZ3hDQh0= Received: by mail-io0-f175.google.com with SMTP id q4-v6so1918445iob.2; Wed, 27 Jun 2018 06:34:08 -0700 (PDT) X-Gm-Message-State: APt69E06DO+VSEcT1mI5vFB7I3nbpMYMS8dRc2LlTkcfmDxTSYeDLn6U stBsd+fh3vQrC7hRTq/3UZax3lyfyJVMNM0FPg== X-Received: by 2002:a6b:c696:: with SMTP id w144-v6mr4822160iof.79.1530106448391; Wed, 27 Jun 2018 06:34:08 -0700 (PDT) MIME-Version: 1.0 References: <20180625140754.GB29102@dhcp22.suse.cz> <20180627112655.GD4291@rapoport-lnx> In-Reply-To: <20180627112655.GD4291@rapoport-lnx> From: Rob Herring Date: Wed, 27 Jun 2018 07:33:55 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: why do we still need bootmem allocator? To: rppt@linux.vnet.ibm.com Cc: mhocko@kernel.org, linux-mm@kvack.org, Johannes Weiner , Andrew Morton , "open list:GENERIC INCLUDE/ASM HEADER FILES" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 27, 2018 at 5:27 AM Mike Rapoport wrote: > > Hi, > > On Mon, Jun 25, 2018 at 10:09:41AM -0600, Rob Herring wrote: > > On Mon, Jun 25, 2018 at 8:08 AM Michal Hocko wrote: > > > > > > Hi, > > > I am wondering why do we still keep mm/bootmem.c when most architectures > > > already moved to nobootmem. Is there any fundamental reason why others > > > cannot or this is just a matter of work? > > > > Just because no one has done the work. I did a couple of arches > > recently (sh, microblaze, and h8300) mainly because I broke them with > > some DT changes. > > I've tried running the current upstream on h8300 gdb simulator and it > failed: It seems my patch[1] is still not applied. The maintainer said he applied it. > [ 0.000000] BUG: Bad page state in process swapper pfn:00004 > [ 0.000000] page:007ed080 count:0 mapcount:-128 mapping:00000000 > index:0x0 > [ 0.000000] flags: 0x0() > [ 0.000000] raw: 00000000 0040bdac 0040bdac 00000000 00000000 00000002 > ffffff7f 00000000 > [ 0.000000] page dumped because: nonzero mapcount > ---Type to continue, or q to quit--- > [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.18.0-rc2+ #50 > [ 0.000000] Stack from 00401f2c: > [ 0.000000] 00401f2c 001116cb 007ed080 00401f40 000e20e6 00401f54 > 0004df14 00000000 > [ 0.000000] 007ed080 007ed000 00401f5c 0004df8c 00401f90 0004e982 > 00000044 00401fd1 > [ 0.000000] 007ed000 007ed000 00000000 00000004 00000008 00000000 > 00000003 00000011 > [ 0.000000] > [ 0.000000] Call Trace: > [ 0.000000] [<000e20e6>] [<0004df14>] [<0004df8c>] [<0004e982>] > [ 0.000000] [<00051a28>] [<00001000>] [<00000100>] > [ 0.000000] Disabling lock debugging due to kernel taint > > With v4.13 I was able to get to "no valid init found". > > I had a quick look at h8300 memory initialization and it seems it has > starting pfn set to 0 while fdt defines memory start at 4M. Perhaps there's another issue. Rob [1] https://patchwork.kernel.org/patch/10290317/