Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1034410pxb; Wed, 6 Apr 2022 07:11:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCbDrK2P4oo/nc3C4qwBMqAaQuFReyaIYqAvZ3Tr07HpS67d+KYmsHOChcpuvCndohZWxE X-Received: by 2002:a63:330a:0:b0:398:22e4:3e34 with SMTP id z10-20020a63330a000000b0039822e43e34mr7312812pgz.349.1649254293800; Wed, 06 Apr 2022 07:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649254293; cv=none; d=google.com; s=arc-20160816; b=LbXn9gZkuR+RkROUKuUGy5R8KiSi0PiDW0lTBd2j4rf54xAEBEqK3BiKZaNuVIA4cX q4ocMXmwneIHxlmxUpYNgGK3I5HDYSs32RsxVuJETVCPUPCsUWaQeF8zowyRFvAao/fp yx2/1MVweYaioEiYf/m4/xw8lsmYVt25R8liO33hzM3pv89sUcqgXoMUz4AOA6HJyKiB ajb6ErTw9tRuLsAUqNx3ThzPnPgpqAUGqqSx7ld915ote5HH8FJhQJ3dU2VWeYPIc/Rr gwFgb1H8nnuVh39pirhlnwP2KoE91UGoVKp1xgq1QiuUKaSs9q9PkPV67HHhEhLwx58Y qqCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pWA9rhfIvXi7xQfjs4g7YC0QlPKyAhkJQh/gCQIhuSQ=; b=ljTFLM/H9VcLaNkMHn8gh7CTPmKAn6qZucC7tPhoVDLg23TugXlrBhXHoZC4s9AzqZ uYkAF7oUGqB+P9x2EGvo4lL/FHSR3e/u/93xikSDE8H11tljw1Or2q6ABuWmN9zh8ukA +NvrbRn2Z46DMbfYvs+7McQav6eAaxcmJy+Lwo9dDYoc5IG4Onk5NPbTbkozHGJkbkDm GKbJNxGxUlrY52FajGMEpbDM39IBpgRrOzP/NAt51I3l8ZqSNBN7e0J1TVEl3R0wuHjG 0/dIbHo52jMwfNR9sJO/NZ8zY90S9aef1uWGIyiwje1mom8fkXrwRmydUMFgW6b9KNmk olSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=3ae4B4bs; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k19-20020a170902ba9300b001549d3bcb46si15231146pls.584.2022.04.06.07.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:11:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=3ae4B4bs; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B58FF3CDB70; Wed, 6 Apr 2022 04:58:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359684AbiDFJll (ORCPT + 99 others); Wed, 6 Apr 2022 05:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241745AbiDFJh0 (ORCPT ); Wed, 6 Apr 2022 05:37:26 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE976D4F2; Tue, 5 Apr 2022 23:20:59 -0700 (PDT) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2365XrT0013557; Wed, 6 Apr 2022 08:20:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=pWA9rhfIvXi7xQfjs4g7YC0QlPKyAhkJQh/gCQIhuSQ=; b=3ae4B4bsrbgI+RMWdVXpkMVfL6X7hfGzUxfB/h6a+ge23AUTQuieyQQF4LRK0R5o856b m//EtojJyA74H64+/uXZBc2LXfyhNKrOymAUrLFCTgxQPmREo/3K2GV21xzj+5w/zmmk 6GfonvT7x3CvOezuQyv5ZK4FbdbBG7d2QxyQQbqxwCEqgVF3pcCm4uneKQ8B0MIqV2nP ZeJy/EnOjsmf81aPqltE4iDGq1fBJimV9PyjCMU9k9XHrD9uRnZgqreJTyP//lDCkUw6 k9zHPMErHezC0pp3tSpYlgZDKxxyA2/tRjgV3yG01KGzzxeqQaV/PjB1tnygnOSdwFb5 hA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3f6bwk3np1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Apr 2022 08:20:38 +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 B8556100034; Wed, 6 Apr 2022 08:20:36 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A3BC921FE86; Wed, 6 Apr 2022 08:20:36 +0200 (CEST) Received: from [10.201.21.201] (10.75.127.48) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Wed, 6 Apr 2022 08:20:36 +0200 Message-ID: <30882dc7-c187-9d7c-726e-117a22dca4e9@foss.st.com> Date: Wed, 6 Apr 2022 08:20:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Regression with v5.18-rc1 tag on STM32F7 and STM32H7 based boards Content-Language: en-US To: Hugh Dickins CC: , , , , , , , , Alexandre TORGUE - foss , Valentin CARON - foss , , Linux Kernel Mailing List , , References: <481a13f8-d339-f726-0418-ab4258228e91@foss.st.com> <95a0d1dd-bcce-76c7-97b9-8374c9913321@google.com> From: Patrice CHOTARD In-Reply-To: <95a0d1dd-bcce-76c7-97b9-8374c9913321@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-04-06_02,2022-04-05_01,2022-02-23_01 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hugh On 4/5/22 21:59, Hugh Dickins wrote: > On Tue, 5 Apr 2022, Patrice CHOTARD wrote: >> >> We found an issue with last kernel tag v5.18-rc1 on stm32f746-disco and >> stm32h743-disco boards (ARMV7-M SoCs). >> >> Kernel hangs when executing SetPageUptodate(ZERO_PAGE(0)); in mm/filemap.c. >> >> By reverting commit 56a8c8eb1eaf ("tmpfs: do not allocate pages on read"), >> kernel boots without any issue. > > Sorry about that, thanks a lot for finding. > > I see that arch/arm/configs/stm32_defconfig says CONFIG_MMU is not set: > please confirm that is the case here. Yes i confirm, CONFIG_MMU is not set. > > Yes, it looks as if NOMMU platforms are liable to have a bogus (that's my > reading, but it may be unfair) definition for ZERO_PAGE(vaddr), and I was > walking on ice to touch it without regard for !CONFIG_MMU. > > CONFIG_SHMEM depends on CONFIG_MMU, so that PageUptodate is only needed > when CONFIG_MMU. > > Easily fixed by an #ifdef CONFIG_MMU there in mm/filemap.c, but I'll hunt > around (again) for a better place to do it - though I won't want to touch > all the architectures for it. I'll post later today. I did a quick test on my side, and yes, adding #ifdef CONFIG_MMU around SetPageUptodate(ZERO_PAGE(0)); allows to boot the boards. Thanks Patrice > > Hugh