From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46BECC433ED for ; Tue, 20 Apr 2021 15:56:34 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 920D7613B8 for ; Tue, 20 Apr 2021 15:56:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 920D7613B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Vg+4xTW6e7093UFZvMd1oM4TWokQ84magT6lTrEeCXA=; b=UVyJB7t4V+KgT9NuKOUQjBsgS pBKWhih7B4tp/M5Gd7YNWHtbTmCV7KnHGFS3JngajBOXFeb3BH7n+xR1wBaxbDy6nSYPMrVTUmksc Hx8nLQoY+uwouShUj203ztvuy3EGNTyt7afbSBXE5ixE+CCn15r9rzFDB5fT2aWFDI8oy/ZhgSxI+ rPaUIO75qrFpTQ/WeCmP4EZrV18/j/iIaY0pnNYth251kww7lpVbVvmEYk+9jcreP2YHFVsXMW9Bo sD0l5WAscu1rBNSBR3k2qJWM9m2nToqnTPMqm1zPXdu/u7uqXq6urCkvkHKRJRbsjEvliKbHgulnN 0x56q9j6Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYsiH-00CWQ7-3H; Tue, 20 Apr 2021 15:54:59 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYsiE-00CWPl-0l for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 15:54:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=lgU0KpOpxS+G1zyuM3tFTxeXUXk+YDp/UfK/QNtzaA8=; b=kH4bjidxOEb1956YmZAUQ0fh/e v8bm0SIeYchakNrVfzfxGCKiFeZQAYdP1efN6K0WM4hWrq5KwY5dfhiSmePZ1BsVwgYOke/j0dKz/ Pr0yxpUrlOsvjQAAmbG/C0TiB1+Rp5KgEoKxxkws+uq2qjM57rIn/6iJS/BG76G82aHfNlaUZuYzc oxDLycEv8xE0Wc3uXNx2BDB+KPlhrxcqgUQS5rQmzrHMI6+5OLFKNA+GlV3UADxvl0ns7dtrklHv8 1PHgJKAofYUX8VY4RUvShG/Fi4CvQ0Qs9Pp+D1YbAfk49ucn0J4lxjSwbxs+XldG99QIcNYEBNy67 7hqdjB0w==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYsiB-00CFdo-FO for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 15:54:52 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D542E613D3 for ; 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-f41.google.com with SMTP id u17so59082097ejk.2 for ; Tue, 20 Apr 2021 08:54:49 -0700 (PDT) X-Gm-Message-State: AOAM533XtPNQVWW+3Qnu5EgFi4oF6GP98aOnKJS2hgI6y5RhYZfT5ZYg qovzCE9WdmsaOvcsDl813XJe6Yiv/Q810vu6yA== X-Google-Smtp-Source: ABdhPJzp3lYZdPdNVLhuX/2phA/xrwQbMnDUOzFFLWg1gmLwSoM6HCDWBOhQ5OgOMvK39G8i6DxgWSIwuIi02EQ5Cwg= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_085451_635938_5577B029 X-CRM114-Status: GOOD ( 25.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel