From owner-freebsd-arm@freebsd.org Sat Jun 6 20:01:30 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 BC8CC33CBF2 for ; Sat, 6 Jun 2020 20:01:30 +0000 (UTC) (envelope-from crowston@protonmail.com) Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49fVlF5BVPz3Vvj; Sat, 6 Jun 2020 20:01:29 +0000 (UTC) (envelope-from crowston@protonmail.com) Date: Sat, 06 Jun 2020 20:01:15 +0000 To: Kyle Evans From: Robert Crowston Cc: =?UTF-8?Q?Klaus_K=C3=BCchemann?= , "freebsd-arm@freebsd.org" Reply-To: Robert Crowston Subject: Re: Report: FreeBSD on Rpi4 8 GB model Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 49fVlF5BVPz3Vvj X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.46 / 15.00]; HAS_REPLYTO(0.00)[crowston@protonmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; DKIM_TRACE(0.00)[protonmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-1.38)[-1.377]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.18:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.989]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-0.996]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.40.18:from]; FREEMAIL_CC(0.00)[googlemail.com,freebsd.org] 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: Sat, 06 Jun 2020 20:01:30 -0000 To reinstate some additional confusion, I only changed the SPIN_PAGE variab= le to 2 (didn't touch NR_DRAM_BANKS) and I see all 8 GB (well, 7.84 GB) in = htop. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Saturday, 6 June 2020 20:55, Kyle Evans wrote: > On Sat, Jun 6, 2020 at 2:45 PM Robert Crowston crowston@protonmail.com wr= ote: > > > > No, SPIN_PAGES=3D2 is fine > > > > I confirm that CONFIG_RPI_EFI_NR_SPIN_PAGES 2 is sufficient. > > Thanks for confirming. :-) > > > > Even without this setting, it should still largely boot; > > > you'll just only have half the memory you wanted. > > > > Without raising the spin pages limit, the kernel panics while trying to= start the secondary CPUs. I don't have a working JTAG so I can't diagnose = exactly why, but the spin table thing seemed like an obvious thing to check= . > > Sorry, that was specifically referring to raising CONFIG_NR_DRAM_BANKS > -- an unmodified sysutils/u-boot-rpi4 (which uses > CONFIG_RPI_EFI_NR_SPIN_PAGES=3D2) should boot with half the RAM > recognized, and bumping CONFIG_NR_DRAM_BANKS in our fragment should > correct that.