Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp67184pxf; Tue, 6 Apr 2021 15:10:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIhMLcXp2Po3FSD9BQ23PU9qb/Y+DxwWOmmBJTErHUg5eHCSB8pLnQr884IL4cpf+J0nsX X-Received: by 2002:a05:6e02:1d0e:: with SMTP id i14mr332447ila.49.1617747053271; Tue, 06 Apr 2021 15:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617747053; cv=none; d=google.com; s=arc-20160816; b=dd7P6S27qqvL0wVrAW/0hVEaqp2zlxmdjqCI+irfJ3cjNvcstR9c7qLEQLjRqLZ1SY QfKUmry44cuADOX6R549LwskMN3iXdL+NroBaKOO+527/DZU39cnSYFZo7uPMq7VVSyw hxcYBcFPIB0J/z3p/iaEchs02Aly4SUehWNeuLgeiMZkbEAuQt0+hXduhz/DncGnVo51 jVUJ8dyGSiTd8ERGe7sRAqG4nC/My23mPE6aIhnm1Rm12LKNU3MNrlU2powmotmBe63l ChCZK4YZ+pOrgSK93L1SON8UXVUoXe6prehlg8cd8P28jRTm+dqckK8c05PYL7sLZWyi nZyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NmJZGfshVfXWF3hELEmpAaIBqoB5t2uv79RLqzeX7uQ=; b=P5QfX00fSyuXVCbvOaDNkWtP7Es3lsFQkfvUnfboPkSxCJQXapvEpJ0hjkGgcLKXXX IHcvsOdeKxjGEz76EWe0+kHKWQAFd/4IdDJHlD/Ezy73KilDk8paUBpSK0kxBGIFR2s9 4oZUHmuQsa3Zgw67EfbfcXLCAI7BZIJeHKuqGgwcveRNSKn6RgcjscrlMvuNDygEhIQB Lk84a8KZVkYx6w+vfHAMqnlE5CvLjEZifv088LbGnn+gkVwqOPKrLaIgGyGdQq7QMXMc Aegv2oFlSK6mGdlr0+M5cAC1WLW40OCzJ/hzDjzX5Ktz6q8lIRgrXtidf827I8RZATW9 1SFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si7545260ioq.81.2021.04.06.15.10.40; Tue, 06 Apr 2021 15:10:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243662AbhDFNSx (ORCPT + 99 others); Tue, 6 Apr 2021 09:18:53 -0400 Received: from elvis.franken.de ([193.175.24.41]:59087 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242540AbhDFNSr (ORCPT ); Tue, 6 Apr 2021 09:18:47 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lTlbK-0006qP-05; Tue, 06 Apr 2021 15:18:38 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 1A269C24D9; Tue, 6 Apr 2021 15:10:43 +0200 (CEST) Date: Tue, 6 Apr 2021 15:10:43 +0200 From: Thomas Bogendoerfer To: Ilya Lipnitskiy Cc: Mike Rapoport , Tiezhu Yang , Jinyang He , Youling Tang , Tobias Wolf , Marcin Nowakowski , linux-mips@vger.kernel.org, Linux Kernel Mailing List , stable@vger.kernel.org Subject: Re: [PATCH] MIPS: fix memory reservation for non-usermem setups Message-ID: <20210406131043.GG9505@alpha.franken.de> References: <20210307194030.8007-1-ilya.lipnitskiy@gmail.com> <20210312151934.GA4209@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 03, 2021 at 07:02:13PM -0700, Ilya Lipnitskiy wrote: > Hi Mike, > > On Tue, Mar 16, 2021 at 11:33 PM Mike Rapoport wrote: > > > > Hi Ilya, > > > > On Tue, Mar 16, 2021 at 10:10:09PM -0700, Ilya Lipnitskiy wrote: > > > Hi Thomas, > > > > > > On Fri, Mar 12, 2021 at 7:19 AM Thomas Bogendoerfer > > > wrote: > > > > > > > > On Sun, Mar 07, 2021 at 11:40:30AM -0800, Ilya Lipnitskiy wrote: > > > > > From: Tobias Wolf > > > > > > > > > > Commit 67a3ba25aa95 ("MIPS: Fix incorrect mem=X@Y handling") introduced a new > > > > > issue for rt288x where "PHYS_OFFSET" is 0x0 but the calculated "ramstart" is > > > > > not. As the prerequisite of custom memory map has been removed, this results > > > > > in the full memory range of 0x0 - 0x8000000 to be marked as reserved for this > > > > > platform. > > > > > > > > and where is the problem here ? > > > Turns out this was already attempted to be upstreamed - not clear why > > > it wasn't merged. Context: > > > https://lore.kernel.org/linux-mips/6504517.U6H5IhoIOn@loki/ > > > > > > I hope the thread above helps you understand the problem. > > > > The memory initialization was a bit different then. Do you still see the > > same problem? > Thanks for asking. I obtained a RT2880 device and gave it a try. It > hangs at boot without this patch, however selecting can you provide debug logs with memblock=debug for both good and bad kernels ? I'm curious what's the reason for failing allocation... Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]