From nobody Tue Jan 10 11:05:05 2023 X-Original-To: freebsd-arm@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 4Nrnz405btz2pByM for ; Tue, 10 Jan 2023 11:05:20 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nrnz35NWsz3JJv for ; Tue, 10 Jan 2023 11:05:19 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x634.google.com with SMTP id gh17so27629870ejb.6 for ; Tue, 10 Jan 2023 03:05:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=5LLnVkipFzKL9Z79mPQVntduYDpCqE0KWUhHcgiau2A=; b=K7Cuwp8iSEpSsG20KQthRD8F/iq0NZakQTCGSIbtJJjU6Mxpw39cPwZSMYzspaRhZF olptDFK8X0WiAdEri2MWTRrWpQqLPsAVQSFk1AzuOT9whg8xPCG2w1FcTnyGjGoQgqmk c672+hj7UvGXf+qrnlgMeMo9GmmeOgKg1WrevnQrxUKCDPNaWy8x/ISB1wzZ2xHKYuqx CxXUv5Ifr6ghTYLWcKwPdYeuttdTJ5Tf7k9l6+0J455NUQExiK/5aI/UOrqnzrDJLAnq zshuwo7005I9ez16IX57iMjNVU3oi5EVIQMfrzuqNii2LMLUNgwR8VwF1dJEghuhbyVB j5DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5LLnVkipFzKL9Z79mPQVntduYDpCqE0KWUhHcgiau2A=; b=FcVSb0YQIv2MkgbvndhtvXhCHoCos0QN3F6InPq05/UAlwp5va6skeJzJGCs6Pb4XC lLCKLZ2h/qGdNJVK8NXkXxmyUx5f0icdTOPSFEPEstevVyPMnG1Akxz3TRa5wFKq/UWU O+mdLPoxCiD4SJNMR3sn/6BN4OUCBTDzBuJqMRr/rbLyl1haXmoIlME/iOlQVxAgb3Jc XEYhCPpB9Gyj6LO9LptSoEp2v6KwOGa7b08uSXeGhLRFmN1hoSW3k6SIoH8IqF9eg6f2 r9i5FsuYdIR5nrP2jlPcbQmEp3fSsm52aVKHi2orXkyair44c9rRSeAKS3wXZrFop5KT 8MQw== X-Gm-Message-State: AFqh2krxvdQbAvZS8xRw6kND2jFpl0UiM7DEG0KXQx8C/IJNMDUqKwgB JSjEn4tYh8RsO/bOB31TJmDRp/ocZ0g= X-Google-Smtp-Source: AMrXdXulWc5YaCuPXJ0pw9SFEQLNLnXdVhnNffwvb8lLKFl7rr7nlpfC49vvKrXwORZoyGVH2xbXnA== X-Received: by 2002:a17:906:fad5:b0:847:410:ecf0 with SMTP id lu21-20020a170906fad500b008470410ecf0mr58865837ejb.20.1673348718381; Tue, 10 Jan 2023 03:05:18 -0800 (PST) Received: from smtpclient.apple (dynamic-046-114-061-069.46.114.pool.telefonica.de. [46.114.61.69]) by smtp.googlemail.com with ESMTPSA id k23-20020a17090632d700b00837ac146a53sm4794327ejk.23.2023.01.10.03.05.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2023 03:05:17 -0800 (PST) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) Subject: Re: FreeBSD and CM4: use pftf/RPi4 (the EDK2 implementation)? Date: Tue, 10 Jan 2023 12:05:05 +0100 References: <9C037D3F-A440-4708-993D-117F313691BB@yahoo.com> <374EC3E5-4CB4-4336-A8B9-7A9CF6151691@yahoo.com> <9E9C739E-8308-472A-B797-05A37559DD00@googlemail.com> <217ACD33-A466-4A01-AD36-5D4A0C1B3CF0@yahoo.com> <3BE72ED7-8787-45E8-8341-FE9CF4CFB84F@googlemail.com> <1EE321BB-6738-4931-BA75-4675C0D297E2@googlemail.com> <56924C76-58FE-4164-8832-441665E3C11E@yahoo.com> To: Mark Millard , freebsd-arm@freebsd.org, Robert Crowston In-Reply-To: <56924C76-58FE-4164-8832-441665E3C11E@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Rspamd-Queue-Id: 4Nrnz35NWsz3JJv X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi Mark, for the CM4 FreeBSD edkII would be the same as with the = firmware-upstream: you fix one thing and import the next dysfunctionality :-) Currently in fbsd the CM4 is working like the 4b,=20 except that the pcie-driver(which wouldn`t have edkII ACPI-logic inside)=20= fails.=20 The story is longer and in the end of it I can say: It would need a dedicated Developer with very deep knowledge=20 of very complex things.. and I sometimes saw others temporarily failing = on other platforms who have that knowledge.. The way to go, as far as I can estimate, is to fix the memory = computation in the pcie -driver, to say it in simple words while that task is not simple ;-)=E2=80=A6. Regards K. =20 > Am 10.01.2023 um 03:15 schrieb Mark Millard : >=20 > You may have an alternative for the CM4, not that I know the > details of the status. >=20 > The firmware from https://github.com/pftf/RPi4/releases/tag/v1.34 >=20 > includes bcm2711-rpi-cm4.dtb --and they only bother to include > .dtb files for what they support in EDK2. (But there is still > the questions of just what the support spans.) >=20 > So, if it turned out that UEFI/ACPI from EDK2 would > happen to be useful, it might avoid incomplete/inaccurate > Device Tree handling for the CM4 in teh FreeBSD kernel, > at least for some issues. >=20 > But there is also the possibility of incomplete/inaccurate > UEFI/ACPI handling in FreeBSD's kernel in ways that would > be important to you. But it is separate code in the FreeBSD > kernel generally so what works vs. not may well be different > from Device Tree based booting. >=20 > I'll note that the crash that I worked out how to avoid is > Device Tree boot-style specific. Any crash for UEFI/ACPI > would be separate, if any exists. >=20 > But if you try UEFI/DeviceTree then the firmware vintage > issue might be involved in that case. >=20 > Just something to possibly explore for/with your CM4. >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com >=20