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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 521A9C433ED for ; Fri, 7 May 2021 15:22:11 +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 A04E66141F for ; Fri, 7 May 2021 15:22:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A04E66141F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com 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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hKbVJ3Iuy/d1S/Ubpl6+0pGK6Wu64wz8oFJULTYvYNM=; b=Ca/FrsOkW1iH8Ma573qfQg2vZ ZTy+DzouYivDDjKr+mJb35whQs4TnYzxYE6phdDgahWDKORLfk66tOmfYFADdx85VFl33Gq3/2HII oDG30UVO3WOixhXfZg6lfphzbNPjQ0v//rZ6kXJOtehORBXg6ZXWM58KdhVKMvcz0ZjwaSEwnY6H6 vUeAUys+1Nul4PwUK3i5W2UoDeCrDNe3ml8a6bR+5GNFyBsgZAiT73vhWM32NQciBH6ZqHqMMvPLg r9cKcd/cUjurDo3kWb8DKftWmrh/kla5682zfKAQT0G24SdbM1DjQyDkepkXCkkPxNyMgrDu7JW2S 1lNFcIRLw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lf2HK-007P6i-DW; Fri, 07 May 2021 15:20:34 +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 1lf2HH-007P6A-TI for linux-arm-kernel@desiato.infradead.org; Fri, 07 May 2021 15:20:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=ZkGeTUEAKBO08rb9KF3t1bgdoda2RV7ah1ty+Jk5bMg=; b=bYKXpyAYtO0IVMzTAx+TGVYHCQ sIz/1uQCGfbSRHQFFi7pKDY0MijdZSb8SAjKxFDO9/VU4hzdIMiF5citt55XXik0FD7bH1lE46f+W mOSt7TS6ONP78eTl/gw9Z4sLVU1+CaVH8waxgJjJBwZ2/9/0ViThmgfVUuG24qZxhhBjl5IHr18jy Jd3vHIP2HVkUe3ZXEJK28LhVWsOZmVwXg/+QlKn1R/oOHomAIxOsVyCQQM/VQBAbISJu5xvZ3Nbd6 GqeJWjJav+SRyjtywDYkztpbn2VdRsVeVopC+eqWqQvW7Yh4dZgKGuplRnZNJsvc9pQsru2Tbl3Om aL36wrDQ==; Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lf2HE-006xUv-5x for linux-arm-kernel@lists.infradead.org; Fri, 07 May 2021 15:20:29 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 147FDCsu005115; Fri, 7 May 2021 17:20:10 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=ZkGeTUEAKBO08rb9KF3t1bgdoda2RV7ah1ty+Jk5bMg=; b=wQxmP3g3Q/kGPs8FlI/MoDyQrPMbAxqIggmGeMPWoSCbtjTKPBx/HWQR/Fnbu0JR9adO lllu4GbanYSd+MBa5xO9LoJIBmhk91ccrvh6fQ3Qn8gRG/HldBaHaYgRV49YzKmcFbkU nRbjgpW1Vm096elOMSu4LOYDiw2/7dwN4mKy9UK0xYGdkXE/EEI6c8e6jeeRKzqJjyyi vWPgODyz6wMKUE9khgYy0sTc5acElgYN0+6m3u76vAivHMlUnznku4aCJPu3HNXYJJD5 gNooGZb8NTRHS1G71gncugwLnd/0MsVkadardp3jJ2elZzb5ehSnDwCB/aAdtnhUOZwq 9Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 38csqbw15d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 May 2021 17:20:10 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D7D7A1000D7; Fri, 7 May 2021 17:15:22 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9072422B9D7; Fri, 7 May 2021 17:15:22 +0200 (CEST) Received: from lmecxl0912.lme.st.com (10.75.127.51) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 7 May 2021 17:15:21 +0200 Subject: Re: [v5.4 stable] arm: stm32: Regression observed on "no-map" reserved memory region To: Quentin Perret , Florian Fainelli CC: Ard Biesheuvel , Rob Herring , 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 References: <4a4734d6-49df-677b-71d3-b926c44d89a9@foss.st.com> <001f8550-b625-17d2-85a6-98a483557c70@foss.st.com> From: Alexandre TORGUE Message-ID: Date: Fri, 7 May 2021 17:15:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-05-07_06:2021-05-06, 2021-05-07 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210507_082028_686821_983A31E8 X-CRM114-Status: GOOD ( 20.51 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Quentin On 4/22/21 2:59 PM, Quentin Perret wrote: > On Wednesday 21 Apr 2021 at 07:33:52 (-0700), Florian Fainelli wrote: >> It is not, otherwise I would have noticed earlier, can you try the same >> thing that happens on my platform with a reserved region (without >> no-map) adjacent to a reserved region with 'no-map'? > > I just tried, but still no luck. FTR, I tried to reproduce your setup > with the following DT: > > memory@40000000 { > reg = <0x00 0x40000000 0x01 0x00>; > device_type = "memory"; > }; > > reserved-memory { > #address-cells = <2>; > #size-cells = <2>; > ranges; > > foo@fdfff000{ > reg = <0x00 0xfdfff000 0x0 0x1000>; > }; > bar@fe000000{ > reg = <0x00 0xfe000000 0x0 0x2000000>; > no-map; > }; > }; > > And with 5.4.102 and 5.10.31 I get the following in /proc/iomem > > <...> > 40000000-fdffffff : System RAM > 40080000-412cffff : Kernel code > 412d0000-417affff : reserved > 417b0000-419f8fff : Kernel data > 48000000-48008fff : reserved > f7c00000-fdbfffff : reserved > fdfff000-fdffffff : reserved > fe000000-ffffffff : reserved > 100000000-13fffffff : System RAM > <...> > > which looks about right. I'll keep trying a few other things. Did you get time to continue some tests on this issue ? On my side this DT is not working: memory@c0000000 { reg = <0xc0000000 0x20000000>; }; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; gpu_reserved: gpu@d4000000 { reg = <0xd4000000 0x4000000>; no-map; }; }; Let me know if I can help. regards Alex > Thanks, > Quentin > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel