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=-14.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 9DDBBC4338F for ; Fri, 30 Jul 2021 22:42:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 5BE2560F42 for ; Fri, 30 Jul 2021 22:42:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5BE2560F42 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=h90NaxVyA7xGmwoTYhtIuEE74FZdwF+roiyFEFcIHZ0=; b=fp+3S9cKp7AzMe BGS0t1BArK/4lu/aA2AQkXHyTkB392D24GAg+lVcxUQE42CNSTUm88g3nbntx5fjhm4rKa2CwN2zr DUMqnKL7QhRMxQ0sIlmtBhroHlOQOU4LFGij184HkhpYN7A2RRyvvbbcPCK9mJ+AJnK6F0XIXloQA 72QC8MWJO0xK/MgbHKxXv53q4/zdZVnlrNbsTkTH3VH43h8j5TFRw7RAIm4Ub1LLa2TswBnpN+uSO MLED6CbXLeUaoLUtHcds9bgLJtXHMz2gkr96r2I50tCHW1uYD9kPjkfmjR1eaCk62bJT2+OzL+EBz +r2bu3ggdix03Gu6+2cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9bBV-00ARYY-00; Fri, 30 Jul 2021 22:40:53 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9bBR-00ARYC-Gl for linux-arm-kernel@lists.infradead.org; Fri, 30 Jul 2021 22:40:51 +0000 Received: by mail-lf1-x129.google.com with SMTP id t9so7844274lfc.6 for ; Fri, 30 Jul 2021 15:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sIDawd+KRancJ+qUIcyhHN8/J4kmzZ0j9Vdy4L8/tJw=; b=zTQhLyBObfERBy0S8YXyUmR3efKr+2YeCXeC+6n4EGME/88vu8qxNX2MajBBWtiX7n g59IwG1MoWmkk5cqxZs84eL6sAvBHO9Ie2UkOsaY5WK4rA8/ZTeESDH6DBSu0g9PBlPz NQZLl1RMvbsqB4A8ApK+lelvX9g7z9CLZ351XELpIcRHF0kioGZEX9ux96XjAvHNUUi+ aQD7IEk0KKsKDRA/xJORCJ0Glj408Hs7qufspK9XS5i9rqbnA6excChkaXuJXdsdMS2h 1A693obDbvBPP3m32eAvVDbNPj0hHPEeXqf5CWk4uU+23VqBNODyN05pXBUlvEX3WpHg lJpA== 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=sIDawd+KRancJ+qUIcyhHN8/J4kmzZ0j9Vdy4L8/tJw=; b=rNy6kivc1UZPhxeGwwKYuGXsOkC6Zh/wjkFEoQC5LZaUYSTOniGw9YjVsHxvNsxls0 HGMRYkyy7XsSA00Bw9WAxH6ZYh0LHInScWDENJiazScWZTVsR3wQSV84QKt3Jz93gSGQ 8F0TD/qosmigKlmNP7VLv9LJDfPKIUjol+jerR5C26EB0VOBUnWQvxmBxJkPrx974Ois Y5rIlxad1G5Rjt+ZVZdAhRBscrbsdF7+gMTOTij0LEJIjDqTMEzT91Ac09a2sdrq1Fsg tQ7SEVCY6MYAsmJ+2V/7BQEb89lc25QWIBptBPxb+MdBeFkIKoqE0KW91F+j0DJT0o8V I0HQ== X-Gm-Message-State: AOAM533iwuCaSJvKQPZGQ4dguaTAneNTphBfwjyaiOsYTuIu4Nk55uKt rPRJrClQkTHx9M5Hcg5Xe3atZo4SOmM1cQ03mvsfFw== X-Google-Smtp-Source: ABdhPJwZOvbSucBn2zgM5QEtk021CzFJXgmLWyq6SYCd5Bg2gh+Ed4C4LCd5DZJB+wi6lZdodenMveXhI5RsMRymxQM= X-Received: by 2002:ac2:5d4a:: with SMTP id w10mr3642799lfd.529.1627684847285; Fri, 30 Jul 2021 15:40:47 -0700 (PDT) MIME-Version: 1.0 References: <20210517145719.110966-1-linus.walleij@linaro.org> <20210517145719.110966-4-linus.walleij@linaro.org> <20210730202259.dbifugsvry5vjdr7@earthen> In-Reply-To: <20210730202259.dbifugsvry5vjdr7@earthen> From: Linus Walleij Date: Sat, 31 Jul 2021 00:40:36 +0200 Message-ID: Subject: Re: [PATCH 3/3] ARM: Map the lowmem and kernel separately To: Nishanth Menon , santosh.shilimkar@oracle.com, Grygorii Strashko , Santosh Shilimkar X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210730_154049_630217_5A9AA806 X-CRM114-Status: GOOD ( 19.17 ) 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: , Cc: Florian Fainelli , Arnd Bergmann , Geert Uytterhoeven , Russell King , Ard Biesheuvel , Linux ARM 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 Fri, Jul 30, 2021 at 10:23 PM Nishanth Menon wrote: > On 16:57-20210517, Linus Walleij wrote: > > Using our knowledge of where the physical kernel sections start > > and end we can split mapping of lowmem and kernel apart. > > > [...] > > > > Signed-off-by: Linus Walleij > > > We noticed a regression in k2g platforms with this patch. > commit 6e121df14ccd ("ARM: 9090/1: Map the lowmem and kernel > separately") > > Boot log: https://pastebin.ubuntu.com/p/Sf3r28D8MR/ > Bisect log: https://pastebin.ubuntu.com/p/6PTYpNVFDy/ Given how invasive the patch is I'm surprised that k2g is the only thing so far complaining about it. Let's fix this! I've had similar reports and in those cases it has been that the boot loader did not turn off the caches before jumping to execute the Linux kernel. So first can you check that cache is off? Next can you turn on DEBUG_LL and enable the debug messages in arch/arm/mmu.c in map_lowmem() in some way that works for you, for example I just add a patch like this: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/patch/?id=d10c46631a6eaef1339e376b878de985143b27ff (Beware of ugly debug habits!) Next is this using the keystone 2 pv fixup thing mdesc->pv_fixup mdesc->pv_fixup in early_paging_init()? I added a special print there to see if that gets called. This code is really scary but I suppose Santosh can explain what is supposed to happen here and what I may have stepped on. (I see Santosh work at Oracle now? Interesting.) Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel