From owner-freebsd-arm@freebsd.org Sun Oct 11 16:05:52 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 968DA3F7E03 for ; Sun, 11 Oct 2020 16:05:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C8RVm3LcHz4MJF; Sun, 11 Oct 2020 16:05:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4C22F2226A; Sun, 11 Oct 2020 16:05:52 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qv1-f46.google.com with SMTP id de3so7244144qvb.5; Sun, 11 Oct 2020 09:05:52 -0700 (PDT) X-Gm-Message-State: AOAM533oUvnY8lx10YjCI1Uyt1zoso01UoK1HZu3tIxpulgCGAGj0pZ6 R/zh50YfyYYvcbZ9+q4iECFxmN9DBh9SgEd1noI= X-Google-Smtp-Source: ABdhPJxOH8NTcqoqcgVLZi3iKA9BDPiR+k4bFLnbNRRlbs8kB9JgtcJecqMiLCuag+YHzPdyyNsnOSdUVO9s2jmSLL8= X-Received: by 2002:ad4:4e47:: with SMTP id eb7mr14159846qvb.34.1602432351839; Sun, 11 Oct 2020 09:05:51 -0700 (PDT) MIME-Version: 1.0 References: <2B1B21CB-1A63-42CE-8917-98870C88CACE@yahoo.com> <3E9D015B-5702-4A52-9366-49E20BDDA5F4@googlemail.com> <79AA6AB2-9FE6-4A80-9E72-F6D7B7E6803F@googlemail.com> <3577889D-3102-4B50-955B-798717F93F92@googlemail.com> <0m0EOJpW7j-ziTjqjNz5Ldul7r8DT9bCjmgmsm5-kr9dX5pt2PEoQrZcFJ9nxtB8YXpqdrBk2ecMIjfijv3DEV26M9fzu3nwwQ90msFZBmw=@protonmail.com> In-Reply-To: <0m0EOJpW7j-ziTjqjNz5Ldul7r8DT9bCjmgmsm5-kr9dX5pt2PEoQrZcFJ9nxtB8YXpqdrBk2ecMIjfijv3DEV26M9fzu3nwwQ90msFZBmw=@protonmail.com> From: Kyle Evans Date: Sun, 11 Oct 2020 11:05:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: RPi4B: modern firmware vs. Device tree loaded to 0x4000 (size 0xbe0c) [fails] vs. to 0x1f0000 (size 0xbd90) [works]? To: Robert Crowston Cc: Klaus Cucinauomo , "gonzo@freebsd.org" , Mark Millard , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2020 16:05:52 -0000 On Sun, Oct 11, 2020 at 10:50 AM Robert Crowston wrote: > I guess my point is, either > * we still keep the armstubs file (in some form) so we have a way to inject our CPU spin up logic in privileged mode; or, > * we implement some alternative spin up (like Linux does). > > Just taking it out will not help us unless we turn off SMP. > > I am surprised that you can boot without the armstub. Can you post the dmesg? > mmel@ has mentioned that it may not be terribly hard to implement this with spin tables instead. This would also let us undo a config fragment in U-Boot, as we won't need to reserve any more than the first page if we're following the standardish procedure.