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=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 7419FC433DF for ; Sat, 15 Aug 2020 10:30:01 +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 3D2D623106 for ; Sat, 15 Aug 2020 10:30:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="e2pVnLya"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="j+5o5C/d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D2D623106 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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=dcqC4K9HRQbOUusgORN60/IrhBnxetQ3bYw/j1i6mhw=; b=e2pVnLyaVCXLLNHfedR9L7gGQ kprBETFJGI05zWUrYQ14OtZdsbHHFZhYpDFAutNEtg1DvdPCDsnezpUChtP6KN9DezFKnr/35h9ap Tz3fZ5pcEqyXdCFFvROZWqRG0OXuf3GDqlW1J76KPfrnVgigRdli62PV7eY10EHgYae0L+bMQizC4 9eyVeiXfB7oIf8qY1e49U8kBd7wXW6Mi8OUV3Fi53UKq2aFvtSG8W2AsjexCD1xsv8apNNiBXH4aI ReZ/HFREECceRH6TWzT9aVvXIL2aHl926pK3TnSv8fFNHR9quEoch+XzanZCHjdEMOd27wBGK1zjY zKeMF8OAA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k6tQe-0000a8-Sx; Sat, 15 Aug 2020 10:28:48 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k6tQc-0000Za-0S for linux-arm-kernel@lists.infradead.org; Sat, 15 Aug 2020 10:28:46 +0000 Received: by mail-lj1-x243.google.com with SMTP id h19so12447284ljg.13 for ; Sat, 15 Aug 2020 03:28:44 -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=nkLgD7iEvbBky6d3/oef7jImu+P2rpQPLUTujy6Xnso=; b=j+5o5C/dlrGxkrEuO+EuFQ7sKWq2qNtTZnhtvTmI+Ld4yKE3EF4D2nLwDHrwFQVUSv kbQE7lto6PmlyY0WW8lNSD6i2BZRTcpHNp/m0SeF5EzK4YIS1ShuBcBm6/mSOfe5auCK cmgZgdv+QEQTBtjg36p2zxzkMdug3D6z+2smGaTmKUsj9o9eYmTov12HivIki6SK79xo VvhVU5VZRSvYuF/1i5FJjiE7L05J2GOP6pJm+bnc8HysP8PtYx1GpmJblJBvByUVLQLw yW3OxtDGujv0wcGvX9aeiZ6RVIM5UzLvv5lqOjhKUc1E3104jw1dng7IP5pnAEP10MEa dmhw== 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=nkLgD7iEvbBky6d3/oef7jImu+P2rpQPLUTujy6Xnso=; b=fR5ZUoWmFBCV3+NvPl9ZPkpWYIbLCzJElQN2zPeeNuJ42qhwQolpPYuOUyGNQqKi8D J6YekDZ7spyeId8z/Lyds7ykNeUPJIiALGQX9au2T/exw01DmsX9ZIuGU9J+kSXujtWm LxpWv7710zV+Um8ffNl3rnAl3fbLEncTbW5MOP2U25V95E04ZZPHoTnzzVwxZpWaD/qM 98KEhdzfhNKvX5VTzXtAvLLKj4FGJxhgwQVv6yQjJZnJvBe46MW+Ctixyuf5Pe71Vz+o 4MzXCcgXcfPknGfw95GTEDJfsmAuRV7/w1ZBkcfn2rOeq2e9RNrUABBog0kKuhe2YY+d 9ndw== X-Gm-Message-State: AOAM531g/71gMjvGYbgETqojgRUTJveZeA+hGrR/EkPgn4ChpdfwrDM4 SWsLpFQB/fww+Ey4mO9AKrXHHIJ9J73A8Af3ZPkqZg== X-Google-Smtp-Source: ABdhPJzABDyPO/xmYqNIMR2E89o8T9unT4yPsJuhrVXqrczY/Jat3KJnhjb8zhQgrTcdLhWN0elUL+likKcPWm4te7k= X-Received: by 2002:a2e:8144:: with SMTP id t4mr3429779ljg.100.1597487323671; Sat, 15 Aug 2020 03:28:43 -0700 (PDT) MIME-Version: 1.0 References: <20200706150205.22053-1-geert+renesas@glider.be> <159546718359.3847286.13460778905630969897@swboyd.mtv.corp.google.com> <20200815091620.GV1551@shell.armlinux.org.uk> In-Reply-To: <20200815091620.GV1551@shell.armlinux.org.uk> From: Linus Walleij Date: Sat, 15 Aug 2020 12:28:32 +0200 Message-ID: Subject: Re: [PATCH/RFC v7] ARM: boot: Obtain start of physical memory from DTB To: Russell King - ARM Linux admin X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200815_062846_178392_164E0A1D X-CRM114-Status: GOOD ( 16.69 ) 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: Kumar Gala , Arnd Bergmann , Geert Uytterhoeven , Nicolas Pitre , Stephen Boyd , Masahiro Yamada , Lukasz Stelmach , Bjorn Andersson , Linux-Renesas , Chris Brandt , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Eric Miao , Dmitry Osipenko , Laura Abbott , Ard Biesheuvel , Linux ARM , Marek Szyprowski 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 Sat, Aug 15, 2020 at 11:16 AM Russell King - ARM Linux admin wrote: > On Fri, Aug 14, 2020 at 04:03:41PM +0200, Linus Walleij wrote: > > But TEXT_OFFSET is also used inside the kernel to offset the > > virtual memory. This means that when we set up the virtual > > memory split, the kernel virtual memory is also bumped by > > these 2 MB so the virtual memory starts at 0xC0208000 > > instead of 0xC0008000 as is normal. > > No. Virtual memory starts without the 32KiB offset. The L1 swapper > page table starts 16KiB below (or slightly more if LPAE) for example. Thanks Russell, I am struggling to learn these things. Slow learner. I'm reading through the assembler line-by-line and trying to learn things from the ground up now, let's see if I manage to get these things eventually. Best regards, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel