Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp543292rwe; Wed, 31 Aug 2022 07:06:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR6m4c85GShVhAVDScLXHkx0COtfuK/S3JCB3UdiZo8ojswJ0eI09sk/JTobsqkWiBupS9Da X-Received: by 2002:a17:906:8a4e:b0:730:9fcd:d988 with SMTP id gx14-20020a1709068a4e00b007309fcdd988mr20425894ejc.636.1661954767023; Wed, 31 Aug 2022 07:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661954767; cv=none; d=google.com; s=arc-20160816; b=QYZJ8+WSIl75cGNdn6inwAdk8gLGfEf7dpKuTM5Hyue4YBrSsd+znpC/pxN3oGCnr1 c4h3erJ9U6kiKHcN50mWN13rQzx5VZu7rOAI+2h3xm3BwP+5bg7ieggUJe8zyCDFGXf3 vIVQJJ8FwFkTRvSMZIkmsko6N0AhBNSMQjU5rX2p3++REbtoGCGvNQnPpl7f43kRDq+o x0nPfySsX+B9uVNB2pd0Ls+vzXkwiyoBqXsRSchSMUPIHJQ24+Bi245+f8Htldny0reb ZfyAqIzsKM/lB3UdgyvrcGHGMl49I+FK4tq2curWQdrZxM+wNzXQVu0sjoDQfEyl/ceu PgTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9jNNNZj2QWLvrPf5qUgDVYXz8CN/57+L72lv9cMQiTw=; b=aDrl9yYLEas9g/TmeHzkKDpFJHjse1cN/rzdBeNb3uJseWLutfsM/rtVWNfnY9hjK3 oAKTReRZMYzkDn6pdQmg1bu4Dvcznfo3y/pS/S1iRLAq5VzagKMTe3kO1Duc+YhNq4w3 C44ElR423xqaBn725XISp2uEGxyR7Pam4DBlb7J0zLApBjqMaReNDx1X5fqxIxOjjQDi GWqea2P246rsj8oZjdlsBA3MR4HSgCFdFw6qO32Z2AJDtwqk2fuFT3l84hGrtkFxKZ5+ mQX/r+v4Ap0H4jsTLXGnyd4aoywSlozQFyDppgCnKxknwy+Wn3rLhr0b0WGfTzHyRzUj Bf9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="qjR/COqn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di15-20020a170906730f00b007307d552a96si9215836ejc.359.2022.08.31.07.05.41; Wed, 31 Aug 2022 07:06:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="qjR/COqn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbiHaNvn (ORCPT + 99 others); Wed, 31 Aug 2022 09:51:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231939AbiHaNvk (ORCPT ); Wed, 31 Aug 2022 09:51:40 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EEF0D34F7 for ; Wed, 31 Aug 2022 06:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9jNNNZj2QWLvrPf5qUgDVYXz8CN/57+L72lv9cMQiTw=; b=qjR/COqnuEQu8DH0tE2MDA+c/r FT6d4i7N6AXTHOLxrOSrr51/tFxiVCanz6N/HhV0xLa57+GHdGFQTaLGe8aCRheWtmrWV83Lg0FXp XCEi1cIIpKu46bqGTmc0xs2l8q9sRFUz1D82oeIH9iL7GMoDEhZ0oTQLqKqz/xlhfVwg9AQUb6gV+ 0fmchRiq0AA6/EKTu9Q2rqClhmCUdqrXLF/Ru6Dq/UZe6g11yZvtUICtV1Vtuhr4322n7OsGz1IZE jWXivZBnbS/5KZ9xj02/482oOR+6vQmlWqwCwwaV4Ymwtc9KbivUiBbAavEnayXXChN+6AbcLPkk/ v7Uou4vg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34020) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oTO7h-0004PK-94; Wed, 31 Aug 2022 14:51:17 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oTO7X-0002Yx-8l; Wed, 31 Aug 2022 14:51:07 +0100 Date: Wed, 31 Aug 2022 14:51:07 +0100 From: "Russell King (Oracle)" To: Marek Szyprowski Cc: Victor Hassan , linus.walleij@linaro.org, yanfei.xu@windriver.com, ardb@kernel.org, tglx@linutronix.de, mirq-linux@rere.qmqm.pl, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, allwinner-opensource-support@allwinnertech.com Subject: Re: [PATCH] ARM: mmu: fix access to illegal address when using earlycon & memblock=debug Message-ID: References: <20220316023356.120595-1-victor@allwinnertech.com> <9a425a51-9460-6c4d-e331-5cd5873f8a43@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9a425a51-9460-6c4d-e331-5cd5873f8a43@samsung.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, Aug 31, 2022 at 01:52:57PM +0200, Marek Szyprowski wrote: > Hi Victor, > > On 16.03.2022 03:33, Victor Hassan wrote: > > earlycon uses fixmap to create a memory map, > > So we need to close earlycon before closing fixmap, > > otherwise printk will access illegal addresses. > > After creating a new memory map, we open earlycon again. > > > > Signed-off-by: Victor Hassan > > This patch landed in linux next-20220831 as commit a76886d117cb ("ARM: > 9223/1: mmu: fix access to illegal address when using earlycon & > memblock=debug"). Unfortunately it breaks booting of all my test boards > which *do not* use earlycon. It can be easily reproduced even with QEMU. > > With kernel compiled from multi_v7_defconfig the following setup boots: > > $ qemu-system-arm -nographic -kernel arch/arm/boot/zImage -append > "console=ttyAMA0 earlycon" -M virt -smp 2 -m 512 > > while this one doesn't: > > $ qemu-system-arm -nographic -kernel arch/arm/boot/zImage -append > "console=ttyAMA0" -M virt -smp 2 -m 512 That's the second patch to drop from my merge yesterday... not good. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!