Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 2020 17:37:42 +0200
From:      =?utf-8?Q?Klaus_K=C3=BCchemann?= <maciphone2@googlemail.com>
To:        Robert Crowston <crowston@protonmail.com>, freebsd-arm@freebsd.org
Subject:   Re: Driver for Raspberry Pi 4 PCI-express controller
Message-ID:  <46519DEB-E96D-43DD-B739-401F9F51371E@googlemail.com>
In-Reply-To: <1RBZ-1AclgkiNDwWUqrWhun8T8YSAX6g64NeSc2DKy9EF1wGsJobselP4UYGflpcmbfUx3sEEM2YplIJOXPmZ6EG_GwiMC1_3GLrqpZxisQ=@protonmail.com>
References:  <Pm_LEzoJP7MAKrZ9L-pRYQ4-qTv7TK1QARu1mwqoNFS5mzra-4zmS_0WYotf7CKSKDoZ2fjC3BSEUGIy-k95Qv1g35Zq0AsfiXwLHXpS0bE=@protonmail.com> <7F058E92-DDD3-4728-9A51-09BF1D47855C@googlemail.com> <1RBZ-1AclgkiNDwWUqrWhun8T8YSAX6g64NeSc2DKy9EF1wGsJobselP4UYGflpcmbfUx3sEEM2YplIJOXPmZ6EG_GwiMC1_3GLrqpZxisQ=@protonmail.com>

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


> Am 28.05.2020 um 16:57 schrieb Robert Crowston =
<crowston@protonmail.com>:
>=20
> Thanks Klaus.
>=20
> I see that the Pi foundation has today released the 8 GB Raspberry Pi =
4. Unfortunately the driver here only provides the controller a 4 GB =
window into system memory, but I believe it should not be too hard to =
tweak.
>=20
> =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 =
Original Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=
=80=90
> On Wednesday, 27 May 2020 08:40, Klaus K=C3=BCchemann =
<maciphone2@googlemail.com> wrote:


Thanks Robert ,
=E2=80=A6. you forced me to order an 8GB-model :-), since we need at =
least=20
2 persons to test your driver.`guess it will arrive here in 2 or 4 days.
Didn=E2=80=99t find the time yet for further testing ...`will do a =
Wiki-entry tonight =E2=80=A6.=20
There=E2=80=99s something special with the RPI4 using QWord , perhaps =
you can take a look at :
=
https://github.com/tianocore/edk2-platforms/blob/master/Platform/Raspberry=
Pi/AcpiTables/Xhci.asl#L118
(and the OpenBSD-xhci-driver which addresses that issue)
(saw your comment in edkII-branch).




>=20
>>=20
>>=20
>>> Am 27.05.2020 um 00:20 schrieb Robert Crowston via freebsd-arm =
freebsd-arm@freebsd.org:
>>> A patch adding support for the pcie controller on the bcm2838 chip =
is available here:
>>> =
https://github.com/RobCrowston/freebsd/commit/3626d1f774a72f2f77feedf10042=
9d0a23ac50c8.patch
>>=20
>> thanks =E2=80=A6.
>>=20
>>> This is still in development, but it is ready for wider testing.
>>=20
>> dmesg :
>> https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5517
>>=20
>>> I have tested this patch on three different Pi4s I have, including a =
2 GB and a 4 GB model. For the most part HIDs like keyboards and mice =
are reliable, but data transfers from mass storage devices can =
sometimes, though not reproducibly, cause the xHCI controller to reset.
>>=20
>> For me keyboard/mouse sometimes worked after reboot/detach<->attach, =
sometimes worked not(using Original RPI4-power adaptor). As seen in =
dmesg I could mount USB thumb drive.
>>=20
>> I suspect the generic_xhci driver(s) for the problems and I guess =
there some =E2=80=9Aquirks=E2=80=98 have to be added there(also for =
ACPI)...
>>=20
>> I will test it in more detail and then publish it in the wiki if you =
don't want to do it yourself in the wiki.
>>=20
>>> I have only tested it against the soldered-on xHCI chip; if anyone =
has desoldered it and replaced it with a pci-pci bridge, that would be =
interesting to hear about.
>>> Before I submit this to phabricator, assuming there is interest, I =
would be interested to hear others' experiences with it, or indeed any =
other feedback.
>>>=20
>>> freebsd-arm@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>>> To unsubscribe, send any mail to =
"freebsd-arm-unsubscribe@freebsd.org"
>=20
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46519DEB-E96D-43DD-B739-401F9F51371E>