Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp891702pxb; Wed, 3 Feb 2021 22:59:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpd3o1MVfyT1Fyu7du3PqV+d62G39T44KCKcQaffQaPQNWVjpaHZUim6hM/qg8odgxap8X X-Received: by 2002:a17:906:2ccb:: with SMTP id r11mr6926741ejr.39.1612421987706; Wed, 03 Feb 2021 22:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612421987; cv=none; d=google.com; s=arc-20160816; b=MbmbPnIDRv5uPoatw5H/f0lrt07yOBVupKHUks86bWVe9KDgI8AaBDbaZ6EtX3K1Cf 6PRzo2ZJ1mfYTAMuDDrwbmKJMfVdIzlNijlZHYUBAfmtcJvH5/kv5mYueCyPaxJYYqvC UCc6MzQsi1A6z34Qn4aVuTBEagXnAp5InbJRkOA10wHViwVyVBnAKELXqHhhs9e2+mU6 CoKLqVoxAzLg1hXMnMFP362ooY3sfyjTPV89+bGcJcKZu7ylzHOLpy5wE3ZvgCbtLRlh /l8zlLAf1yBFr8vEU24C0ElIQnfPIaeN6WLAcSa9vCBv9KzqbAMko4cKTaJ4oV+M9VFb BBvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7RG/t0VIp1YIh84HtpnpszNv3Gn4YzPZngUDm90mxto=; b=tlVJCOn9Z3WEz0PNGDfOiwzMY/Ypl07EhfWC/hTovByZTPijOOZNGJv0elb+EZQTTQ 6LEECxK+cJ1UWnd1r43Csnei+fljC/Ryhw4qwsQUBLDyw7514UTGFbMHxMNvHrO0UNgu 3wB+V1Ry1B0si5lt66do1YcwqXCHndbEQ1Vp0qImdHo3wVS46igiXD+RoVrQq3RhIFb1 RL7Q9RxLNFsFo3UQH6CVGYD90meR2+4+GhKJsHKC1LkuLbhYK7lfEjZap+HqVBLEVZFj FtiTF6jyHy5ewtCX1iY125mdLeWu9lSzbr6a+xeM6iMKESxUbrPVeIfTX8ZCpTdjKJHz Qhxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M8FFirN5; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si3191711edy.455.2021.02.03.22.59.23; Wed, 03 Feb 2021 22:59:47 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=M8FFirN5; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233486AbhBDG5G (ORCPT + 99 others); Thu, 4 Feb 2021 01:57:06 -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-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