Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp940580imm; Fri, 11 May 2018 08:38:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrv9I34syWcMMZwK0KukM1+blyV8UQxTlMz/Y40+UN4oXpi6mbJQR0pLTfWsM+JrHJd7Kvz X-Received: by 2002:a17:902:4081:: with SMTP id c1-v6mr2066347pld.60.1526053113096; Fri, 11 May 2018 08:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526053113; cv=none; d=google.com; s=arc-20160816; b=m3Yuqok4q0SsB+9s7ssWcHwEiD4U9gsGFFW8z3rpIcPG/r7bTyxhpEhgBPny9tP+I6 zeUQk6QpCLx+WgOQKA/xk0cPQjxUyXcHnIhRave5RwsFFVvWSlg7ZNySeBCUzgfoqovU dKum045kPSOn5xHmUUqV+PHl6wdbXqseFuT+1zklOG/vrSBQ6DXAcGYb+04h8elPJpbo 5kwKdovOZOCruCH7nb2mzm9FbqikSjKTeqsyJ16R9cuIgULJfZ4FBk+KU+fv2UntUVfo Ed7rSo/wBQJQMJdyviuknBOsoXXeBfX0tzTztLox+lcHw1sSAWCuwL4d510AAYCIJ3cT l5rg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CH++OSvyLQQ12C4PpH3vMvA05wuOGKNJ4Uu5KWoQOF0=; b=kvBlYN3lfOu3NpPOuJR2QN/3CnubitOz6f1qELlw6mvqKX8abHssqUHByqHkBhg9Xr xxszrxgDeq77vyHv3dhLwHMsV19H3iOaFg28I1YGWbMmwEC//h+Qmzrm5qSdq8mdHaxf oieKV3mDYAfv9PvlBp5YOlbA1rzM5185tPYyarQEfmzRDW5PL1UbvYUK57LVd8JCPza4 NgWkPbjJ3ioiuWpX1X9ur1ZrfHEfN/NHfNmqL/8TSO0xRz9o+xlM4maMK64kuY8fbzuk qhLDJuYzzl9Onz15Nu2ZPWKpIRF6d+GC9+IYNhvn2O/jEZHdrIA3QlrF00/1GlcmKmWa Uh/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cmNWGfYq; 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 w71-v6si2738026pgd.1.2018.05.11.08.38.17; Fri, 11 May 2018 08:38:33 -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=cmNWGfYq; 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 S1751438AbeEKPiG (ORCPT + 99 others); Fri, 11 May 2018 11:38:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:57618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbeEKPiE (ORCPT ); Fri, 11 May 2018 11:38:04 -0400 Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) (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 073D62177D; Fri, 11 May 2018 15:38:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526053084; bh=CH++OSvyLQQ12C4PpH3vMvA05wuOGKNJ4Uu5KWoQOF0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=cmNWGfYqG8umSjgzIAYmMmTtJGuvCoauGoQVH8LKh0GXEXXepVmZrCqjp/LN0/ey0 u6xRyB/f+6Oo1Q14EFjogGQHNmMvHXsGn4Y7ESvFtb3281lZxmXZ84Z9Zutm0i5cLT +ZL4MeEKljLmzde34Xo5LJQF2rSpHHBhKbtLWVhA= Received: by mail-qt0-f169.google.com with SMTP id f5-v6so7598003qth.2; Fri, 11 May 2018 08:38:03 -0700 (PDT) X-Gm-Message-State: ALKqPwesWpa1DOpA4v8hYmQVHsxDLHPFYcWyQ/Bxp7m2jod5VYz1UAiV 6ab8AyaKgOl4FjvuTRi7blGRCWkLiM52toF8cg== X-Received: by 2002:ac8:396f:: with SMTP id t44-v6mr5722136qtb.22.1526053083217; Fri, 11 May 2018 08:38:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.155.2 with HTTP; Fri, 11 May 2018 08:37:42 -0700 (PDT) In-Reply-To: <20180511150224.GR1392@brightrain.aerifal.cx> References: <20180511134559.13464-1-robh@kernel.org> <20180511150224.GR1392@brightrain.aerifal.cx> From: Rob Herring Date: Fri, 11 May 2018 10:37:42 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] sh: switch to NO_BOOTMEM To: Rich Felker Cc: "linux-kernel@vger.kernel.org" , SH-Linux , Arnd Bergmann , Yoshinori Sato 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 Fri, May 11, 2018 at 10:02 AM, Rich Felker wrote: > On Fri, May 11, 2018 at 08:45:59AM -0500, Rob Herring wrote: >> Commit 0fa1c579349f ("of/fdt: use memblock_virt_alloc for early alloc") >> inadvertently switched the DT unflattening allocations from memblock to >> bootmem which doesn't work because the unflattening happens before >> bootmem is initialized. Swapping the order of bootmem init and >> unflattening could also fix this, but removing bootmem is desired. So >> enable NO_BOOTMEM on SH like other architectures have done. >> >> Fixes: 0fa1c579349f ("of/fdt: use memblock_virt_alloc for early alloc") >> Reported-by: Rich Felker >> Cc: Yoshinori Sato >> Signed-off-by: Rob Herring >> --- >> This is compile tested only, but similar to microblaze and h8300 >> conversions. The additional complexity for SH is NUMA support (which to >> me looks like an abuse of NUMA support to map a small amount of >> on-chip? RAM to NUMA nodes). > > Thanks! I was just reading the corresponding microblaze commit, and > think this approach makes sense. I'll test it now with both DT and > non-DT sh systems and let you know if it works. If it's good would you > like me to send it upstream via arch/sh? I already have 2 > regression-fix patches to submit in a pull request asap. Yes, please do. Rob