Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp115063pxy; Tue, 20 Apr 2021 14:07:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTHsnC93PQumZhSICoBt5lWcdN0Tgq4lJlDSdZugLALcl+ZtfJR1H5iw7KqvT2AHJnci+e X-Received: by 2002:a63:9e02:: with SMTP id s2mr10422461pgd.134.1618952851930; Tue, 20 Apr 2021 14:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618952851; cv=none; d=google.com; s=arc-20160816; b=zI2FZ59bHsRulmg/8oGjLhtZ2JXiziTekAFaxyita1ynSUoq/fUBt7kWzwsFNHgS1w YwzjhVU0Sn9MzlUQc1WNeH22WEf0BUTPBcw1VS/8ntVVTrrl1vKqQ8M/x9m8XlXJQnoP S2GUvzucSkF0Eu+nrdjdA76kCxO7X1XgyePXNPz5XkjTjdt5NwiKgmSSA5hKs0OYBVq7 KB+4mNxU7YjMQnboK70rRAO7G+hoahKpCnFYxb1FKiqBqBjG9xe1SBGGlV0SHlf/aPoC TCzHPfgDuYONqDg7lp3glrxeNj+M288PugBqU42hv4JWKmFDiO++KEbQ+lGuF50jvOeV Dbbw== 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=vOBjMXDIMy+zl5MUYC7gubauHlSjbGUB4gjxD3PRR4w=; b=WWCUUbLLVEgSoHJUxkR/ApfxtNTHRdbD7YTodlkTzqFjOdVMN4F8j0S3LW3cq6N89d 2Xq4Bj4W5M6asB1GG+Dxj7Ep22UY6RaB0Ac9irzCwrKyeGKe1Mjb7m52at/3t1c3KEpH F3WJfiBk6JYKh7NEZzfLf1uWkuQTgtu1P1VO0VGeS58ZvY/28Ip6YYTmjIM3/cryKsRE KnwrHrRGBZ65+65qLWUKWPZFs4MnGthMhPYkbklk13EZwl/gM9keqoUynwRZ8gNwPkGs Xy8ZZX9QM2LvuVdYFlQYNpCi2Dw+1vx8cOh6ztOmPj+xW/EpltDbNgeYMRsAyL09/4JT icbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WCbA9z/s"; 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 p11si230956pjj.44.2021.04.20.14.07.17; Tue, 20 Apr 2021 14:07:31 -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="WCbA9z/s"; 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 S234079AbhDTVGo (ORCPT + 99 others); Tue, 20 Apr 2021 17:06:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:44398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233682AbhDTVGn (ORCPT ); Tue, 20 Apr 2021 17:06:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8625613F6; Tue, 20 Apr 2021 21:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618952771; bh=vOBjMXDIMy+zl5MUYC7gubauHlSjbGUB4gjxD3PRR4w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WCbA9z/sUtYyNFYkHNIbegCci/4MG80OK4i2ZdilHi2K7d/7rNRAm8jmCFHyJWKGm U72l3htjsoHbW3hNDgZ9/f2GIO4Xcwg+Y1L/3yhBwJotu40fXkgH3qoqTKN+elXDK8 U0PFVhvNHE+5tzABJ13x/XZYq7DYm7SE0gQVaYMxUYderYXFS0S/kLUty5TBQq6+Y6 uaHFCB5tFkeJiWpmu0o/7QRltSIqmPkGwE1SCMIWyY82Kspt6EcoeSkxDRvWrhh3pM j0i0ofaG6SH03WbxxoZ5qiO2oQ+vy+ADpqVHlkMhM3npUqMCATOz9ar3aA1kU8HDVN OYywxOveuLrNw== Received: by mail-qt1-f174.google.com with SMTP id o21so1672150qtp.7; Tue, 20 Apr 2021 14:06:11 -0700 (PDT) X-Gm-Message-State: AOAM5338ckF7RAmuCQDakMyscwdbQLJKLhX+bXZToHIzCfut2aLa20R4 hPoZzgydR9YsdH3AvHMZeLdW3rUBrNhgae6X5g== X-Received: by 2002:ac8:5d52:: with SMTP id g18mr19266258qtx.380.1618952770704; Tue, 20 Apr 2021 14:06:10 -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: From: Rob Herring Date: Tue, 20 Apr 2021 16:05:59 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [v5.4 stable] arm: stm32: Regression observed on "no-map" reserved memory region To: Ard Biesheuvel Cc: Alexandre TORGUE , Quentin Perret , Greg Kroah-Hartman , Sasha Levin , stable , Arnd Bergmann , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "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 11:10 AM Ard Biesheuvel wrote: > > On Tue, 20 Apr 2021 at 17:54, Rob Herring wrote: > > > > 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. > > > > Thanks for the cc. > > > > > > > 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. > > > >> > > Why was this backported? It doesn't look like a bugfix to me. Probably because of commit 8a5a75e5e9e5 ("of/fdt: Make sure no-map does not remove already reserved regions") which was in the same series. 'Properly handle' implies before it was 'improperly handled', so sounds like a fix. Rob