From nobody Mon Feb 06 05:25:09 2023 X-Original-To: uboot@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9F8719Qdz3nXHd for ; Mon, 6 Feb 2023 05:25:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9F853VMJz4LgL for ; Mon, 6 Feb 2023 05:25:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675661109; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KboxGVSrihLAzoNnPY2H5VQBaPk504zy9PhK31uoT+E=; b=S3mm8tz48U4TQhdBsT45yEUs+399vaI1S2JVgYuZ6dVarU0Mq8o53uXudxAMVwVA8u2wXs 02LLfRBwwYTT3wSrK3ehhmbcHG3wpLVl0Jtjfu+5xaYGKFibUTcVlVmHeooTYpFXlOVocX yBa0UjTkJZSBkgFLPHtI7L0Y+OaXdw+l4jieiSwsJHPCWYpMz1m9Xo6dGWueQVcZusNx56 7/KhsBQ2hb7Dk+NcuDxwLN0248SmZB2SL2Xw6UTIE4X0OirGuk1qxHh22LkXpDero+FB3u wA89BF8EH7IrVkc8EumYB8nFofO9IvqHtVYVeY+IpDWNWMVSVCL8yhA8YDJTTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675661109; a=rsa-sha256; cv=none; b=PomrQhTKndgpMTcFlUbH/8yBSo6ohfnUZReujh3rV0s08CNu//VEOPEwgQFr0dwU3eAOiU oc0A2RZpmRVonSAOtsyTRC+XWcRFuHPqVSBZROkfKiY/4zHacr+ulNe+VBXR2Krs/PS0LF Q19UCwrcI/e9AojMHDpMuopfpvSZVBghsQCK0MdqPUuwIFEP/LOI0PeMz7v+nt4abjYhKJ jWH0eDM6E3YLJT5m36uDWPmRzd9YronNloKdXV5xYUOGvodvfJQ2PwRnZdzuTO0et9XQeN ofqRLU5MuhhYlGqXC/mOYfpdlnUJdFLthSt1q+P3+4B5hX8Y4xdDbz2HD7BQTA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P9F852SrlzNSb for ; Mon, 6 Feb 2023 05:25:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3165P96C046361 for ; Mon, 6 Feb 2023 05:25:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3165P9ME046357 for uboot@FreeBSD.org; Mon, 6 Feb 2023 05:25:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: uboot@FreeBSD.org Subject: [Bug 269181] sysutils/u-boot-rpi-arm64: RPi4/8G fails to boot: "** Reading file would overwrite reserved memory **" Date: Mon, 06 Feb 2023 05:25:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: uboot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269181 --- Comment #5 from Mark Millard --- Use of CONFIG_LMB_MAX_REGIONS=3D64 with CONFIG_LMB_USE_MAX_REGIONS=3Dy was not such a great idea for my test. So I explored more reasonable numbers and discovered: Exploring (decreasing decimal number order, not time sequence): 12 worked 10 worked (hmm: 10 =3D=3D 3+7, matching memory.cnt+reserved.cnt below) 9 failed (less than memory.cnt+reserved.cnt below) 8 failed When I looked at the bdinfo just before attempting a boot, what I got was (8 GiByte RPi4B): Hit any key to stop autoboot: U-Boot> bdinfo . . . lmb_dump_all: memory.cnt =3D 0x3 memory[0] [0x0-0x3b2fffff], 0x3b300000 bytes flags: 0 memory[1] [0x40000000-0xfbffffff], 0xbc000000 bytes flags: 0 memory[2] [0x100000000-0x1ffffffff], 0x100000000 bytes flags: 0 reserved.cnt =3D 0x7 reserved[0] [0x0-0x3fff], 0x00004000 bytes flags: 0 reserved[1] [0x39c2b000-0x3b2fffff], 0x016d5000 bytes flags: 0 reserved[2] [0x3ac3b4a0-0x3b0fffff], 0x004c4b60 bytes flags: 0 reserved[3] [0x3ee62be0-0x3ee62fdf], 0x00000400 bytes flags: 4 reserved[4] [0x3ee63020-0x3ee63055], 0x00000036 bytes flags: 4 reserved[5] [0x40000000-0xfbffffff], 0xbc000000 bytes flags: 0 reserved[6] [0x100000000-0x1ffffffff], 0x100000000 bytes flags: 0 devicetree =3D board arch_number =3D 0x0000000000000000 TLB addr =3D 0x000000003b0f0000 irq_sp =3D 0x000000003ac3f940 sp start =3D 0x000000003ac3f940 Early malloc usage: 878 / 2000 (I've not yet seen in the code why memory and reserved are not independent, each with CONFIG_LMB_MAX_REGIONS space available.) Overall, this tends to indicate that the "implicit #else" case's lack of initialization of the 2 max fields is not directly what has been run into here. Note: The "[0x0-0x3fff], 0x00004000" is because I have U-boot reserve more than the first page for armstub8*.bin and related run-time data (e.g., its stack). The standard port just reserves the first page, not covering everything. --=20 You are receiving this mail because: You are the assignee for the bug.=