Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4182639imm; Mon, 25 Jun 2018 11:06:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIz5bLM0xWBSjkvI4SgYL0/RoOVYLZoGiPey/opXRXe/PjB2S6KQ7HdFDvCkq4XH6o7Wvf3 X-Received: by 2002:a65:614e:: with SMTP id o14-v6mr11781214pgv.308.1529949976830; Mon, 25 Jun 2018 11:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529949976; cv=none; d=google.com; s=arc-20160816; b=bK2+wLtblF7A8bUK9aiolMWE1wkAEmHRzOadczoe/vZ+lN7N7HMogh82ixo4PM0AQb l62jd3qI3D7I07X9Qepxc+iMNjYC7yU10jFlw0+kpyzwXvkiU9qBnq5xFRwyYK8JkV8o 58ew7Rtk74T9tK0nnsofCrd4mR0HTjIQCvmaAYG4fYLIgSMcD9dsG+5YCTuJAr/10BEJ tsT9M/LPY/rT3hanOgK6SvwaWdm7oJC761+oxImoLg4xabNSZiU3pyCS6398U89IIrla oNORJ/+Wenw7ixTKXo+acJbq6yYvWYin9fyiiio6rT3Uexe1JHtD/5RkOe/MRj2yXuPv vEbg== 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:arc-authentication-results; bh=dOeX627QsWFvcJnnAKdP1CKU4dgninvn1bCUvaHm72M=; b=n16qLj1MO4tZWUSVAbLbgGv4HD+3FBgTyzWZe95tHtK0EWVTZpSRWjQAmUbqTUXTVr I62kFquD5k5APowGGNzuWCk/qbGWmJngUOWGvPYsq+d1CADrbG6F4FtNKLet5O+bXbSY /Qe2kd3z1MAeMYt/m9LkMHGMmhr/Xh//sdm2yZt56BkQpwbYb+H987Fvcq3zyRTHqdcU zABE82NcdQctnNYCR4cu/M353Dxv/zp0HXSy4bB/nzL2bHmsBVADxi8s0ss9XqonDeQV 7TmBgtLab2yq6xp7Ws8u6sGFak14+6W6Gm0FKaAUTfJ/oMSif+vQDSn9In3LRvC/HiI0 I2Ng== 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; dmarc=fail (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 a16-v6si13702914pff.43.2018.06.25.11.06.01; Mon, 25 Jun 2018 11:06:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964888AbeFYSD4 (ORCPT + 99 others); Mon, 25 Jun 2018 14:03:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:48462 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934041AbeFYSDf (ORCPT ); Mon, 25 Jun 2018 14:03:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E0B14AB1E; Mon, 25 Jun 2018 18:03:33 +0000 (UTC) Date: Mon, 25 Jun 2018 20:03:32 +0200 From: Michal Hocko To: Rob Herring Cc: linux-mm@kvack.org, hannes@cmpxchg.org, Andrew Morton , linux-arch@vger.kernel.org, Linux Kernel Mailing List Subject: Re: why do we still need bootmem allocator? Message-ID: <20180625180332.GR28965@dhcp22.suse.cz> References: <20180625140754.GB29102@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 25-06-18 10:09:41, 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 see > > Btw. what really needs to be > > done? Btw. is there any documentation telling us what needs to be done > > in that regards? > > No. The commits converting the arches are the only documentation. It's > a bit more complicated for platforms that have NUMA support. I do not see why should be NUMA a problem but I will have a look at your commits to see what you have done. Thanks! -- Michal Hocko SUSE Labs