Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp332154pxy; Wed, 21 Apr 2021 04:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwhp6tW4cSvQHZ9gZqFqDpbSWNBbQPr2VSxalsmvZpDt0h2soBvpQT4cTHV8BffVZR+ARC X-Received: by 2002:a17:90a:af91:: with SMTP id w17mr10662563pjq.205.1619003774863; Wed, 21 Apr 2021 04:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619003774; cv=none; d=google.com; s=arc-20160816; b=mWfxxn25zv7botphqQhWpeIJw5gZ8BcYowMUIcDP6QhqwNImQ6xltK7Fs01rypt6ia 9iXv8OREbFb/yO8ZmcAVzkLriMuIAtatUMeSesufwCb8ZNRnTIs3v+5ZJ7ObRLnZGpNl c6JdoTr3aFXrK/VC5uOLnkCKzvSnLaLfxdypPAlqh2TvF/jCvHzWPQHVhEXs+xgKqDYX r9u3l9LlhWIU7fB4eam7BMNnU20iRbh/Cug1T+vSSF3lDh38lfpaj98gTnnHmCTqMq0L 5lbofzPU1C78AssIcGWfvkMhw8eOIGHKdICdoqGPLVZymlXCz2G4yceaaXOL07pvyuGJ BKxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nF07lGmK8d790hYBNTxLzN+JqkeiBDMUtoFoxeafsPs=; b=SL1cHaR0WYVVot2YSKRrRCZreKjNyoZjBS9ez54VoL/6yDkJHklDDGzJNYnInu4e8O XF9yFbSQa2dE3crD6FnYpJGET0YZKAB2DfAkvUBfzInOLHid9C9xroQqThStGLPymn91 oPfMOFShh6NWnmOyAPU23Nr1Vw5sfEYHcKqioX3eTdyp27BX8Y4Pg7/Njt2XTdZ25hsa 0tn6XHIlvr+MjO4wAC3AQD32viy5eHnALk8C0Mtl+/6iKIdMiLV6XxLlHtCQylF43H7g VhZLh8wzKrvVEHBeMRs8QMTR7nw79qWvZbc7bjBchTIZNc9hAs8tNJiAaGJdgytVHnZd KP1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PKuxgMvu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si2882645pgo.186.2021.04.21.04.16.02; Wed, 21 Apr 2021 04:16:14 -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=@google.com header.s=20161025 header.b=PKuxgMvu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234885AbhDUIqW (ORCPT + 99 others); Wed, 21 Apr 2021 04:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237188AbhDUIqV (ORCPT ); Wed, 21 Apr 2021 04:46:21 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 335FDC06174A for ; Wed, 21 Apr 2021 01:45:47 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id e5so11791782wrg.7 for ; Wed, 21 Apr 2021 01:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nF07lGmK8d790hYBNTxLzN+JqkeiBDMUtoFoxeafsPs=; b=PKuxgMvuAnY4j3XFS5LDSlKmE9K0hmcw+6xcrwyF5EYk7C+8Q8rY09FX5klV91bQ+H oxmSb48NV+BkZM2nurcQFUv1xeSoPd8ubDufrdjItZVFace8Vy9HXrRYrLCvASct4xst k2HVS4BbQnxp0VWuIYmqyQEC00n+oyX/PUzMbomZhrRxe1W5qS/8vi/xIpyFSfSRyQGR VD0ijrBlEJVy0twXMsrs3GbESBEL9NBaTOoV8sRIGfz8wN0dTLTFKO9tLjT7A+yyVTuj 95XwzYTffbWs4+c3mq8VdLDECQASB+DEPMqJcnV/smKRAqP6IVD5PKCha4TOYf9mBp/n 4DeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nF07lGmK8d790hYBNTxLzN+JqkeiBDMUtoFoxeafsPs=; b=Ny5TKaaMqeOrYl6a2UpvK+RI+B2B5GtHsiprME6uu6p1/2n4Ski8bWKn1RboYxw27i Ir933lLVmJ4ZehCJgviiQr47+eGOfsrpzeQch9MRJR44oX00PytOCV1Qj7KJAsi89iuy 0ycL6BLO7fTEGFM5FSUVyxbzgUQ+woXpi9AcRDTvM5Avbo79T0635DRYv6TgAlA7KCaM FlUg7zYjPbwRoOQm+5Q/uHXe5clza9sFuG6hwm4anwTZTXLt5YtfO7YAVR0vHqkd999N GPcqmNpqec6MIslxs0raJ9tBOL6lrqOWbOUGzdw1QGabwYRMURkI2VUiS/kjUxbJFRIQ 1LHg== X-Gm-Message-State: AOAM5337bJISEc3QvUJSSI1SK4feVp521tBZPaTq0vjfwgU9v/Hwc4MQ 1zQUpikLB624dzpRLpazLWw80A== X-Received: by 2002:adf:f081:: with SMTP id n1mr25780163wro.137.1618994745796; Wed, 21 Apr 2021 01:45:45 -0700 (PDT) Received: from google.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id s8sm2246313wrn.97.2021.04.21.01.45.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 01:45:45 -0700 (PDT) Date: Wed, 21 Apr 2021 08:45:42 +0000 From: Quentin Perret To: Florian Fainelli Cc: Ard Biesheuvel , Rob Herring , Alexandre TORGUE , 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 , KarimAllah Ahmed , Android Kernel Team , Architecture Mailman List , Frank Rowand , linux-arm-kernel Subject: Re: [v5.4 stable] arm: stm32: Regression observed on "no-map" reserved memory region Message-ID: References: <4a4734d6-49df-677b-71d3-b926c44d89a9@foss.st.com> <001f8550-b625-17d2-85a6-98a483557c70@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 21 Apr 2021 at 08:31:00 (+0000), Quentin Perret wrote: > FWIW I did test this on Qemu before posting. With 5.12-rc8 and a 1MiB > no-map region at 0x80000000, I have the following: > > 40000000-7fffffff : System RAM > 40210000-417fffff : Kernel code > 41800000-41daffff : reserved > 41db0000-4210ffff : Kernel data > 48000000-48008fff : reserved > 80000000-800fffff : reserved > 80100000-13fffffff : System RAM > fa000000-ffffffff : reserved > 13b000000-13f5fffff : reserved > 13f6de000-13f77dfff : reserved > 13f77e000-13f77efff : reserved > 13f77f000-13f7dafff : reserved > 13f7dd000-13f7defff : reserved > 13f7df000-13f7dffff : reserved > 13f7e0000-13f7f3fff : reserved > 13f7f4000-13f7fdfff : reserved > 13f7fe000-13fffffff : reserved > > If I remove the 'no-map' qualifier from DT, I get this: > > 40000000-13fffffff : System RAM > 40210000-417fffff : Kernel code > 41800000-41daffff : reserved > 41db0000-4210ffff : Kernel data > 48000000-48008fff : reserved > 80000000-800fffff : reserved > fa000000-ffffffff : reserved > 13b000000-13f5fffff : reserved > 13f6de000-13f77dfff : reserved > 13f77e000-13f77efff : reserved > 13f77f000-13f7dafff : reserved > 13f7dd000-13f7defff : reserved > 13f7df000-13f7dffff : reserved > 13f7e0000-13f7f3fff : reserved > 13f7f4000-13f7fdfff : reserved > 13f7fe000-13fffffff : reserved > > So this does seem to be working fine on my setup. I'll try again with > 5.4 to see if I can repro. I just ran the same experiment on v5.4.102 which is where the regression was reported, and I'm seeing the same correct result... > Also, 8a5a75e5e9e5 ("of/fdt: Make sure no-map does not remove already > reserved regions") looks more likely to cause the issue observed here, > but that shouldn't be silent. I get the following error message in dmesg > if I if place the no-map region on top of the kernel image: > > OF: fdt: Reserved memory: failed to reserve memory for node 'foobar@40210000': base 0x0000000040210000, size 1 MiB > > Is that triggering on your end? So that really sounds like the cause of the issue here, though arguably this should be indicative a something funny in the DT. Thanks, Quentin