Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3466592pxb; Tue, 20 Apr 2021 08:55:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzChKrbdeK9IDF8AIfdFmQMvsajGHPivd12Hd7nFlrBPd3sH002nSRXIwMaZXQG9LQT0oFg X-Received: by 2002:a05:6a00:2cc:b029:25f:d34d:f3c8 with SMTP id b12-20020a056a0002ccb029025fd34df3c8mr10183844pft.36.1618934139804; Tue, 20 Apr 2021 08:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618934139; cv=none; d=google.com; s=arc-20160816; b=uBr/iMDPUQi3PywCVfzIy3GqAOEth0L7Au4bSrEukdcx3uHf0O0S/71Ywiz24tcQG4 CRMfmBtfheskEDkv3vd1hH5qOgBNgWDM9YqS+a+CiSa8x9FHtyZ3WXI8MG7shZKA9M2O 92uqt4EZtyPgGCD566pkKqpmXgKUqzxSKbq8wW0g6u8OzeyGNW7l48L/LMIlOuNsIRPR SVN8egJELJHewFka6OiHAIZSmouDOrpi96isDLglYSoBZZIrM4D0bujsXEVgeA+/sk2z S8Swj+SVNPJu0jxVS23MbeONUNrO+Njsm72uhuzohn5unp478+erBXeyC6DsRZ5A0Xvu q2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lgU0KpOpxS+G1zyuM3tFTxeXUXk+YDp/UfK/QNtzaA8=; b=C5mEdQJueIMmIAHVee5F8G2gMFdLMcpuCo6wpRD1gV6x5rbu35Rkf94a6inYuj9gqW VW54TCF3CRr1Jn+iJDrVMf6DAGcc8sr6QP2vuJa/D4mcIcd+UoyzgGlkzg3mL9ygSU7/ UwdBw/eqcDerEUbncZCYyNYoGHo4vxKruIdFUqf0VXPqrMjUC+GFFqCLQkUNs33m9ZPi +YKyBT273iGUSrOZOM30yWkLEmimyWl7c1PiTdnPHgir2H89jCMEfBOnXzoQRCh5uhI/ W3T40HQ1N0Hegp69WcpOEPYusYryv2U7iwIty+XkbHqVyNQChDY/DKWhvllrlwpuTK5E qTfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gqqC/lZM"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si15694918plz.420.2021.04.20.08.55.26; Tue, 20 Apr 2021 08:55:39 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gqqC/lZM"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232910AbhDTPzW (ORCPT + 99 others); Tue, 20 Apr 2021 11:55:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:48462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbhDTPzV (ORCPT ); Tue, 20 Apr 2021 11:55:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B923A613C3; Tue, 20 Apr 2021 15:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618934089; bh=KZq5/wRY4YGDVOPORw3nU8SC0AVzsWcVeDZv4TcVeDY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gqqC/lZMF78AIjK+lsYvmr4WeYe5ZzfxljlcTDFpJPdmD/iMCurTItPSMmY8qH3St LFMHXEd4bj9GBcX5akpIBLRU6sBCgmxrZgwmml38S2BadsFjKZrmvo5OeJkRcdd/c+ a09cKwfoZT3RRWka6JkQUZalxHE1agf30nepJCsyc4HjP7K5MvgAFrRVM/4D3uRqKu 0s6Y789OfQCvviSpha1bC93pp+yLuAT5oy2Y31IQxryQ6WQfvlBQ0OiDEHwjtRoYsy tF/d+Mt71HhkqbgPmI0mhMPnmcQnOMd/up7jkZiR5EhGpWA3vX4WME9ZVzQqKPFTB/ 0OP/iZ4zkTfRA== Received: by mail-ej1-f44.google.com with SMTP id sd23so50385088ejb.12; Tue, 20 Apr 2021 08:54:49 -0700 (PDT) X-Gm-Message-State: AOAM531bxZH+F/u9WK+v0IPJRdE2AlIByI+N9g1XC4nw3LtkcsBypHsx Ry7ftzMpnHwRtcCxWCvD6+zWTcwUx2HybMUFWw== X-Received: by 2002:a17:907:217b:: with SMTP id rl27mr28429006ejb.359.1618934088130; Tue, 20 Apr 2021 08:54:48 -0700 (PDT) MIME-Version: 1.0 References: <4a4734d6-49df-677b-71d3-b926c44d89a9@foss.st.com> <001f8550-b625-17d2-85a6-98a483557c70@foss.st.com> In-Reply-To: <001f8550-b625-17d2-85a6-98a483557c70@foss.st.com> From: Rob Herring Date: Tue, 20 Apr 2021 10:54:36 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v5.4 stable] arm: stm32: Regression observed on "no-map" reserved memory region To: Alexandre TORGUE Cc: Ard Biesheuvel , Quentin Perret , Greg Kroah-Hartman , Sasha Levin , stable , Arnd Bergmann , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Nicolas Boichat , Stephen Boyd , Florian Fainelli , KarimAllah Ahmed , Android Kernel Team , Architecture Mailman List , Frank Rowand , linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 20, 2021 at 10:12 AM Alexandre TORGUE wrote: > > > > On 4/20/21 4:45 PM, Rob Herring wrote: > > On Tue, Apr 20, 2021 at 9:03 AM Alexandre TORGUE > > wrote: > >> > >> Hi, > > > > Greg or Sasha won't know what to do with this. Not sure who follows > > the stable list either. Quentin sent the patch, but is not the author. > > Given the patch in question is about consistency between EFI memory > > map boot and DT memory map boot, copying EFI knowledgeable folks would > > help (Ard B for starters). > > Ok thanks for the tips. I add Ard in the loop. Sigh. If it was only Ard I was suggesting I would have done that myself. Now everyone on the patch in question and relevant lists are Cc'ed. > > Ard, let me know if other people have to be directly added or if I have > to resend to another mailing list. > > thanks > alex > > > > >> > >> Since v5.4.102 I observe a regression on stm32mp1 platform: "no-map" > >> reserved-memory regions are no more "reserved" and make part of the > >> kernel System RAM. This causes allocation failure for devices which try > >> to take a reserved-memory region. > >> > >> It has been introduced by the following path: > >> > >> "fdt: Properly handle "no-map" field in the memory region > >> [ Upstream commit 86588296acbfb1591e92ba60221e95677ecadb43 ]" > >> which replace memblock_remove by memblock_mark_nomap in no-map case. > >> > >> Reverting this patch it's fine. > >> > >> I add part of my DT (something is maybe wrong inside): > >> > >> memory@c0000000 { > >> reg = <0xc0000000 0x20000000>; > >> }; > >> > >> reserved-memory { > >> #address-cells = <1>; > >> #size-cells = <1>; > >> ranges; > >> > >> gpu_reserved: gpu@d4000000 { > >> reg = <0xd4000000 0x4000000>; > >> no-map; > >> }; > >> }; > >> > >> Sorry if this issue has already been raised and discussed. > >> > >> Thanks > >> alex