Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp130956imm; Thu, 10 May 2018 17:01:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqM+1VZAERCFNQeS3Uc6fXgriJYpH3K6r1LK8RAVE4r7zVgAWgZgcCA5DN76+cWmsnIOMPg X-Received: by 2002:a17:902:3343:: with SMTP id a61-v6mr3192538plc.241.1525996917769; Thu, 10 May 2018 17:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525996917; cv=none; d=google.com; s=arc-20160816; b=fG0AsVTslnYoT+hGBwNVDiGLhM2FNbjr1iLKM80lpak3VAs2XJdZyylj1NDXVenDwW e5l8ZKz+2SxAR+F7B/IrMXrTABkQAcvVfVUHuaO3ENztbt9C8xS9tEjIjIBeBCQApdzK D7f2Obph0wZ/Wb85dTw6kgQ6FClewN/C0l1CSDIJ2H1e4hhczAVRKUpMej79xCzuQy7X Bw9GttMUxvEr+vatHvZCwp+5YuWKWkoKLY7beOzSLfC+aSSwuwUDasG5/FS38lr+4ZVy O1eA/1gziLKC3WlK8SfbR7o7nHr/ogekThvWfkrMKqD0rwRwTxG9rxJF41aSLKwveI8y iWPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=7B7zLZJMBNlG7rn6ibx+Ktfeksx6M0MEBcGlArV+QXA=; b=XpFsLhttS+16SzIpjQAyGKNj7BWeCY9O6HmOuf41WUPqV3VofzD3H9tEddm/VemMTr W9G5Yp2PDrBQSE7o1mPsMSaggqjq4YGg2qUSbm3wUrlFsletPt5D7ECmKuAPRaW6n3tU bbWSRfCKFRo27Bo2OEEB1IDo3I7ktuSI6exc32gm58Cbowa7572xkd8GT/92W5IsMAb2 W0xBstyuFWNEa7nAnmmY82irxrM9iz8S3cg1Yjo4Cm2BhcqvlYvz8mIL8V9QgAiQXsdZ lS0/C+RvHWQkm+UDAtQRFrjJv5Q84oMEFt+6LP2+A6C8Huyl5e4DeXjgC+9874uslQZG AmUA== 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 f4-v6si1542064pgs.16.2018.05.10.17.01.42; Thu, 10 May 2018 17:01:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750927AbeEKABd (ORCPT + 99 others); Thu, 10 May 2018 20:01:33 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:53912 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722AbeEKABc (ORCPT ); Thu, 10 May 2018 20:01:32 -0400 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1fGvV2-0006Dy-00; Fri, 11 May 2018 00:01:28 +0000 Date: Thu, 10 May 2018 20:01:28 -0400 From: Rich Felker To: Rob Herring Cc: linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org Subject: early alloc change broke sh Message-ID: <20180511000128.GA23149@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 0fa1c579349fdd90173381712ad78aa99c09d38b (of/fdt: use memblock_virt_alloc for early alloc), attempting to boot on sh (j2, nommu) fails with OOM: [ 0.000000] bootmem alloc of 7836 bytes failed! [ 0.000000] Kernel panic - not syncing: Out of memory I suspect there are significant differences in memblock_virt_alloc and memblock_alloc (perhaps specific to nommu?). It looks like microblaze was also affected: http://lkml.iu.edu/hypermail/linux/kernel/1801.1/02200.html I'll continue looking for a solution but I wanted to let you know right away in case you might know what's wrong and have a fix. It would be nice if we could get a fix for this regression in 4.17 since multiple archs are broken. Rich