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=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 7D99CC433DB for ; Thu, 4 Feb 2021 06:57:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2E10664F58 for ; Thu, 4 Feb 2021 06:57:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233510AbhBDG5H (ORCPT ); Thu, 4 Feb 2021 01:57:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232917AbhBDG5G (ORCPT ); Thu, 4 Feb 2021 01:57:06 -0500 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1588C0613D6; Wed, 3 Feb 2021 22:56:25 -0800 (PST) Received: by mail-il1-x136.google.com with SMTP id p15so1623585ilq.8; Wed, 03 Feb 2021 22:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7RG/t0VIp1YIh84HtpnpszNv3Gn4YzPZngUDm90mxto=; b=M8FFirN5QdkpH7EsV4KpqXBO8of1/P+RSj5BsBbXtDN/uwyv+vvCt7dLmNzJTJ7R8k E+BiNUGRUoDtxf+1IslNuGUgjdL4MYaj0sfhc6UWtZK9kke48oZ44JpjHyr5qa8zk+WE l3Fr3zVvEg6Qae5S3IY5qTtDrjDsaP6rKA0yNZOaED1Lx2pFHfQZC0lzZQmgFaUNwyip 21bBEI6RgQclXbZIxKGzPnYNC3ZXK9wowmoeVyypI7FGoCzkQp5Ja8CebnT0NzKsKfQD vOaBrILmb9dDylcqzsNfGxCUT4U5Q1NsQmB6CyySEhHS5Fm+nGQTxh2NbLlBcO+gOCGh 5EZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7RG/t0VIp1YIh84HtpnpszNv3Gn4YzPZngUDm90mxto=; b=GZVCwMNWEGCq3rCChx9mGUOBYyFr4dNIN8tRwtWSipGj5kV2mQ6NzW3Pfx8XmtTVL2 +dGCzot+fS7ci48cdkfNgq2vw5WPEQMqLAVhOw9IIhZVFkC2XqkiXDpMeZx5fOmbhH++ su7Myq5tJ0QBoV/NLPEdKIOv+fQ9V/rg2TQIbtpAN1HOMMdF2JgceSPPSwwjZ+vSzCIU bJjByZ09IKQVC/3lh88qkFIJsoQwfTPFeYBqs8vOZkUdhdISC9XyaqjZS7CRbvIOnVAw f7Raf3bjNz9ACyU3ocuOcu49fHJ22xsSIFjktR9FeK6Uu0TLGaKxWp6hMWZ0iwsZ5NPV FElw== X-Gm-Message-State: AOAM530s0j85NhN7fHECk/0axcn4CWEbMRs/dBEC4c+9/YSEgzZ/aOsR X9ekP0nW2RzXTgb17ob2deIGtlkyzOT6iHN4Ngo= X-Google-Smtp-Source: ABdhPJzjMjHgBVpgg/0wfoFoO6F7n7PlmdrvzqcGqbUl812vPWli4bl8uZqkgy02WdYLkmkstRmBUdJO3l9YGaUnQUE= X-Received: by 2002:a92:4b06:: with SMTP id m6mr5903984ilg.177.1612421785418; Wed, 03 Feb 2021 22:56:25 -0800 (PST) MIME-Version: 1.0 References: <20210117180301.1956-1-alistair@alistair23.me> <20210117180301.1956-3-alistair@alistair23.me> <20210129071341.GH4356@dragon> In-Reply-To: From: Alistair Francis Date: Wed, 3 Feb 2021 22:55:58 -0800 Message-ID: Subject: Re: [PATCH v2 3/3] arch/arm/configs: Enable VMSPLIT_2G in imx_v6_v7_defconfig To: Arnd Bergmann Cc: Shawn Guo , Alistair Francis , Arnd Bergmann , Olof Johansson , Rob Herring , Sascha Hauer , Sascha Hauer , Fabio Estevam , dl-linux-imx , linux-arm-kernel , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 2, 2021 at 11:50 PM Arnd Bergmann wrote: > > On Wed, Feb 3, 2021 at 3:37 AM Alistair Francis wrote: > > > > On Thu, Jan 28, 2021 at 11:13 PM Shawn Guo wrote: > > > > > > On Sun, Jan 17, 2021 at 10:03:01AM -0800, Alistair Francis wrote: > > > > The reMarkable2 requires VMSPLIT_2G, so lets set this in the > > > > imx_v6_v7_defconfig. > > > > > > Hmm, why is VMSPLIT_2G required by reMarkable2? > > > > I'm not too sure. It's difficult to debug problems as I only have a > > UART but without this I don't see any kernel prints so it seems like > > the kernel doesn't get very far. I haven't had any luck with earlycon > > on the device so I don't know how I can get more information. > > In the dts file, I can see that the machine has 1GB of RAM at > contiguous addresses. My first guess would be a problem with > highmem, as this configuration means that with VMSPLIT_3G > there are 768MB of lowmem and 256MB of highmem. > > Can you try these two things to narrow the problem down > further? > > a) disable CONFIG_HIGHMEM when using VMSPLIT_3G > b) use VMSPLIT_3G_OPT Thanks Arnd, I was working on testing the config changes you mentioned, but it seems like all of them work now. VMSPLIT_2G: Boots to userspace VMSPLIT_3G && HIGHMEM: Boots to userspace VMSPLIT_3G && !HIGHMEM: Boots to userspace VMSPLIT_3G_OPT && HIGHMEM:Boots to userspace > > If both of them solve the problem, then highmem is likely > the root cause. One possible issue might be that the boot > loader loads the initramfs or the dtb into a location outside > of the first 768 MB of lowmem where it is unreachable > in the VMSPLIT_3G configuration. It boots with u-boot, which I am building so I can change these addresses. I'm guessing that I have changed the addresses at some point and now it works. I'm going to drop this patch. Alistair > > Arnd 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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 BA54BC433E6 for ; Thu, 4 Feb 2021 06:57:36 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 4DB4864E35 for ; Thu, 4 Feb 2021 06:57:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4DB4864E35 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HSOC5JIpDvUg00luOYRSJDwciiEbHjTxOtMGGkJ1H+U=; b=eNbEH8Lzviebzqh/ZxqUBYDsp WSrwjv3LwHcDd7WuAB9LzkD4TNADmonlstFFXs0xJJ6+KjI12mKVOrg1+21ErZSgZHNiJp/TQakA2 Ol6TbaKq5A/pC7PE6Mr3A1v5XIziS51Cku+7VRsYO2KtJgmINybseK2hoedkVO1rYTJTR/66tM+CN IN0DMRrKRvoKkhcmo0b1szyPJ+AfWYzjTobF2TPvgNzkrooDsfHEgHxWrFJ1JuaMiUUjMFObcZScd fGBHKK9ngFxHq45SlXg5BRYxt0VQZMRhUJPFjTCrzMyUzvZFFL9QdVFMH++xXCirCmSeWrTOUAQ3N RZmH35rgA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7YZ5-0002A1-EH; Thu, 04 Feb 2021 06:56:31 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7YZ2-00029C-VH for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 06:56:29 +0000 Received: by mail-il1-x132.google.com with SMTP id m20so1602716ilj.13 for ; Wed, 03 Feb 2021 22:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7RG/t0VIp1YIh84HtpnpszNv3Gn4YzPZngUDm90mxto=; b=M8FFirN5QdkpH7EsV4KpqXBO8of1/P+RSj5BsBbXtDN/uwyv+vvCt7dLmNzJTJ7R8k E+BiNUGRUoDtxf+1IslNuGUgjdL4MYaj0sfhc6UWtZK9kke48oZ44JpjHyr5qa8zk+WE l3Fr3zVvEg6Qae5S3IY5qTtDrjDsaP6rKA0yNZOaED1Lx2pFHfQZC0lzZQmgFaUNwyip 21bBEI6RgQclXbZIxKGzPnYNC3ZXK9wowmoeVyypI7FGoCzkQp5Ja8CebnT0NzKsKfQD vOaBrILmb9dDylcqzsNfGxCUT4U5Q1NsQmB6CyySEhHS5Fm+nGQTxh2NbLlBcO+gOCGh 5EZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7RG/t0VIp1YIh84HtpnpszNv3Gn4YzPZngUDm90mxto=; b=Y7gScG4AgUVn8vYxlbaBZDTd3PzW5r32YluZNOHNEBWRRLqnEPcE5r/kw5V9jsHdlh T10JCNxrOir6vV9Qb2TJtguwWyYnqKCYQeFCBH7coIq1M4aRv4um9mE8u7ykkm/gt1wo ZKoY0R5Kzxlf2mcC5MiYb5cgixOGvJ1YwQv5iiqJDxGvoYo9Wba/wgoGn8tcb7NMjz4Z sl6xm28K9/2s9qWpRViWyA8Sclk1fQMsdj+r2H0qGD/ZrA2dmqSvg59w/GDcW2wDP7+B ev6gZ6b6pMWH6Q4wO3UQv2fXrbVvtvr608hqGlePt0R71JzLLJWfgo54gSqrQ49z7o0k WOmQ== X-Gm-Message-State: AOAM531jObP9tkhmiJzCnFpTApWrsJcuPVtFM+a6hKpFnJI56Qi7j/RZ /GknmWxesoO2lwQDM1MbN09zVEbp312hiArM8/Y= X-Google-Smtp-Source: ABdhPJzjMjHgBVpgg/0wfoFoO6F7n7PlmdrvzqcGqbUl812vPWli4bl8uZqkgy02WdYLkmkstRmBUdJO3l9YGaUnQUE= X-Received: by 2002:a92:4b06:: with SMTP id m6mr5903984ilg.177.1612421785418; Wed, 03 Feb 2021 22:56:25 -0800 (PST) MIME-Version: 1.0 References: <20210117180301.1956-1-alistair@alistair23.me> <20210117180301.1956-3-alistair@alistair23.me> <20210129071341.GH4356@dragon> In-Reply-To: From: Alistair Francis Date: Wed, 3 Feb 2021 22:55:58 -0800 Message-ID: Subject: Re: [PATCH v2 3/3] arch/arm/configs: Enable VMSPLIT_2G in imx_v6_v7_defconfig To: Arnd Bergmann X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210204_015629_076114_B1A1642E X-CRM114-Status: GOOD ( 29.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , Arnd Bergmann , Fabio Estevam , Sascha Hauer , Alistair Francis , Linux Kernel Mailing List , Rob Herring , dl-linux-imx , Sascha Hauer , Olof Johansson , Shawn Guo , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 2, 2021 at 11:50 PM Arnd Bergmann wrote: > > On Wed, Feb 3, 2021 at 3:37 AM Alistair Francis wrote: > > > > On Thu, Jan 28, 2021 at 11:13 PM Shawn Guo wrote: > > > > > > On Sun, Jan 17, 2021 at 10:03:01AM -0800, Alistair Francis wrote: > > > > The reMarkable2 requires VMSPLIT_2G, so lets set this in the > > > > imx_v6_v7_defconfig. > > > > > > Hmm, why is VMSPLIT_2G required by reMarkable2? > > > > I'm not too sure. It's difficult to debug problems as I only have a > > UART but without this I don't see any kernel prints so it seems like > > the kernel doesn't get very far. I haven't had any luck with earlycon > > on the device so I don't know how I can get more information. > > In the dts file, I can see that the machine has 1GB of RAM at > contiguous addresses. My first guess would be a problem with > highmem, as this configuration means that with VMSPLIT_3G > there are 768MB of lowmem and 256MB of highmem. > > Can you try these two things to narrow the problem down > further? > > a) disable CONFIG_HIGHMEM when using VMSPLIT_3G > b) use VMSPLIT_3G_OPT Thanks Arnd, I was working on testing the config changes you mentioned, but it seems like all of them work now. VMSPLIT_2G: Boots to userspace VMSPLIT_3G && HIGHMEM: Boots to userspace VMSPLIT_3G && !HIGHMEM: Boots to userspace VMSPLIT_3G_OPT && HIGHMEM:Boots to userspace > > If both of them solve the problem, then highmem is likely > the root cause. One possible issue might be that the boot > loader loads the initramfs or the dtb into a location outside > of the first 768 MB of lowmem where it is unreachable > in the VMSPLIT_3G configuration. It boots with u-boot, which I am building so I can change these addresses. I'm guessing that I have changed the addresses at some point and now it works. I'm going to drop this patch. Alistair > > Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel