Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jan 2023 19:58:55 +0100
From:      =?utf-8?Q?Klaus_K=C3=BCchemann?= <maciphone2@googlemail.com>
To:        Mark Millard <marklmi@yahoo.com>, freebsd-arm@freebsd.org
Subject:   Re: How to make FreeBSD's kernel boot a RPi4B with modern RPi* firmware
Message-ID:  <E1A6057C-4E0F-45B7-9278-86A09426DE49@googlemail.com>
In-Reply-To: <EAD84A57-E8F0-4149-BCFC-8A06FF03B11B@yahoo.com>
References:  <9C037D3F-A440-4708-993D-117F313691BB@yahoo.com> <374EC3E5-4CB4-4336-A8B9-7A9CF6151691@yahoo.com> <BCCBE0D7-8BEB-4D6D-A017-9A59000F1E2B@yahoo.com> <9E9C739E-8308-472A-B797-05A37559DD00@googlemail.com> <EAD84A57-E8F0-4149-BCFC-8A06FF03B11B@yahoo.com>

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

> Am 07.01.2023 um 11:18 schrieb Mark Millard <marklmi@yahoo.com>:
>=20
>=20
> =E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=E2=80=A6=
...
>>>=20
>>>=20
>>> stable/13's source code changes are ( similarly for
>>> releng/13.1 ):
>>>=20
>>> # git -C /usr/13S-src/ diff sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> diff --git a/sys/arm/broadcom/bcm2835/bcm2835_dma.c =
b/sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> index cab8639bb607..6d521d6dcace 100644
>>> --- a/sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> +++ b/sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> @@ -766,5 +766,6 @@ static driver_t bcm_dma_driver =3D {
>>>=20
>>> static devclass_t bcm_dma_devclass;
>>>=20
>>> -DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, bcm_dma_devclass, =
0, 0);
>>> +EARLY_DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, =
bcm_dma_devclass,
>>> +    0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
>>> MODULE_VERSION(bcm_dma, 1);
>>>=20
>>>=20
>>> main's [so: 14's] source code changes are:
>>>=20
>>> # git -C /usr/main-src/ diff sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> diff --git a/sys/arm/broadcom/bcm2835/bcm2835_dma.c =
b/sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> index 5f9ecb0b7981..d901447df1e9 100644
>>> --- a/sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> +++ b/sys/arm/broadcom/bcm2835/bcm2835_dma.c
>>> @@ -764,5 +764,6 @@ static driver_t bcm_dma_driver =3D {
>>>       sizeof(struct bcm_dma_softc),
>>> };
>>>=20
>>> -DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, 0, 0);
>>> +EARLY_DRIVER_MODULE(bcm_dma, simplebus, bcm_dma_driver, 0, 0,
>>> +    BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
>>> MODULE_VERSION(bcm_dma, 1);
>>>=20
>=20
>=20
> =3D=3D=3D
> Mark Millard
> marklmi at yahoo.com
>=20


=E2=80=A6=E2=80=A6.on the other hand : if your =
EARLY_DRIVER_MODULE(bcm_dma=E2=80=A6 doesn=E2=80=99t do anything wrong,
you could give it in phabricator review, why not?!..


Regards

K.=20=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1A6057C-4E0F-45B7-9278-86A09426DE49>