Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2020 20:26:01 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        Kyle Evans <kevans@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: RPi4B: emmc2bus dma-range handling does not track the boot-time-FDT (u-boot based booting)
Message-ID:  <A0916E76-A841-4AAF-8BFE-15355B525654@yahoo.com>
In-Reply-To: <20201009024924.GB24977@www.zefox.net>
References:  <D8BDF95A-D6A8-4E95-A0CE-D53068E8355B.ref@yahoo.com> <D8BDF95A-D6A8-4E95-A0CE-D53068E8355B@yahoo.com> <CACNAnaG3CKTiXdXNUO1Jgr34=XGF4wYRuUnuiJRhNb1J9XaGbw@mail.gmail.com> <CACNAnaEZP=Gxs4cbvCOFzM8MZB6-2Ny0N7KEW-nYoDw22_Jzwg@mail.gmail.com> <CACNAnaFXpJcA5Xyw%2BPR6iem3U2nvpog53hsnCFKiGWiO6OgKKA@mail.gmail.com> <20201009021855.GA24977@www.zefox.net> <CACNAnaGMNwt8QagFBDGGvXttJJjt3P8K65bx%2BZgqpSCDWHsTzA@mail.gmail.com> <20201009024924.GB24977@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2020-Oct-8, at 19:49, bob prohaska <fbsd at www.zefox.net> wrote:

> On Thu, Oct 08, 2020 at 09:27:22PM -0500, Kyle Evans wrote:
>> On Thu, Oct 8, 2020 at 9:18 PM bob prohaska <fbsd@www.zefox.net> =
wrote:
>>>=20
>>> On Thu, Oct 08, 2020 at 01:34:12PM -0500, Kyle Evans wrote:
>>>>=20
>>>> Here's a patch that I hacked out and can't test for quite a while =
yet,
>>>> feel free to give it a shot:
>>>> https://people.freebsd.org/~kevans/bcm2835_vcbus.diff  -- the best
>>>> guarantee I can give you is that it builds. We'll need to test it =
on
>>>> both RPi4 models with the separate bus and the original RPi4s, as =
well
>>>> as an RPi3 and RPi2/0w.
>>>>=20
>>>=20
>>> FWIW, a Pi3B running
>>> FreeBSD www.zefox.org 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r366466M: =
Thu Oct  8 17:18:55 PDT 2020     =
bob@www.zefox.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC  arm64
>>>=20
>>> seems to build, boot and run without immediate problems.
>>>=20
>>> A Pi2 running
>>> FreeBSD www.zefox.com 13.0-CURRENT FreeBSD 13.0-CURRENT #2 r365692: =
Thu Oct  8 16:57:50 PDT 2020     =
bob@www.zefox.com:/usr/obj/usr/src/arm.armv7/sys/GENERIC-MMCCAM  arm

RPi2 <=3D v1.1? (32-bit only, bcm2709-rpi-2-b.dtb from =
https://github.com/Hexxeh/rpi-firmware/ )
RPi2 >=3D v1.2? (64-bit and 32-bit capable, bcm2710-rpi-2-b.dtb )

I've not looked at the differences in the .dtb files.

>>> also built, booted and ran.
>>>=20
>>> Uptime so far is only a few minutes, but so far, so good. If the =
MMCCAM
>>> mismatch is significant let me know and I'll fix it.
>>>=20
>>=20
>> Thanks for testing!
>>=20
>> Can you also confirm the output of `dmesg | grep 'WARNING:'`, please?
>> In particular, I'd like to know if you hit either of:
>>=20
>> WARNING: Improper peripheral attachment ...
>> WARNING: bus for '...' missing dma-ranges
>>=20
>=20
> On the Pi2 I see:
> bob@www:~ % dmesg | grep 'WARNING:'
> WARNING: WITNESS option enabled, expect reduced performance.
> WARNING: Device "openfirm" is Giant locked and may be deleted before =
FreeBSD 13.0.
> WARNING: Device "kbd" is Giant locked and may be deleted before =
FreeBSD 13.0.
> WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD =
13.0.
> WARNING: WITNESS option enabled, expect reduced performance.
>=20
> On the Pi3 I see:
> bob@www:~ % dmesg | grep 'WARNING:'
> WARNING: WITNESS option enabled, expect reduced performance.
> WARNING: Device "kbd" is Giant locked and may be deleted before =
FreeBSD 13.0.
> WARNING: Device "openfirm" is Giant locked and may be deleted before =
FreeBSD 13.0.
> WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD =
13.0.
> WARNING: WITNESS option enabled, expect reduced performance.
>=20
> so the answer seems to be "no".
>=20
> HTH, let me know if I can try anthing else. Both installs are =
expendable.


=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A0916E76-A841-4AAF-8BFE-15355B525654>