From owner-freebsd-arm@freebsd.org Thu May 28 14:57:45 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 537D12F4A10 for ; Thu, 28 May 2020 14:57:45 +0000 (UTC) (envelope-from crowston@protonmail.com) Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49XrQw1txWz4ltl for ; Thu, 28 May 2020 14:57:43 +0000 (UTC) (envelope-from crowston@protonmail.com) Date: Thu, 28 May 2020 14:57:35 +0000 To: =?UTF-8?Q?Klaus_K=C3=BCchemann?= From: Robert Crowston Cc: "freebsd-arm@freebsd.org" Reply-To: Robert Crowston Subject: Re: Driver for Raspberry Pi 4 PCI-express controller Message-ID: <1RBZ-1AclgkiNDwWUqrWhun8T8YSAX6g64NeSc2DKy9EF1wGsJobselP4UYGflpcmbfUx3sEEM2YplIJOXPmZ6EG_GwiMC1_3GLrqpZxisQ=@protonmail.com> In-Reply-To: <7F058E92-DDD3-4728-9A51-09BF1D47855C@googlemail.com> References: <7F058E92-DDD3-4728-9A51-09BF1D47855C@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 49XrQw1txWz4ltl X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.30 / 15.00]; HAS_REPLYTO(0.00)[crowston@protonmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-1.20)[-1.200]; FREEMAIL_TO(0.00)[googlemail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.131:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.005]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.40.131:from] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2020 14:57:45 -0000 Thanks Klaus. I see that the Pi foundation has today released the 8 GB Raspberry Pi 4. Un= fortunately 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. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =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 wrote: > > > > 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 a= vailable here: > > https://github.com/RobCrowston/freebsd/commit/3626d1f774a72f2f77feedf10= 0429d0a23ac50c8.patch > > thanks =E2=80=A6. > > > This is still in development, but it is ready for wider testing. > > dmesg : > https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5517 > > > 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 rel= iable, but data transfers from mass storage devices can sometimes, though n= ot reproducibly, cause the xHCI controller to reset. > > For me keyboard/mouse sometimes worked after reboot/detach<->attach, some= times worked not(using Original RPI4-power adaptor). As seen in dmesg I cou= ld mount USB thumb drive. > > I suspect the generic_xhci driver(s) for the problems and I guess there s= ome =E2=80=9Aquirks=E2=80=98 have to be added there(also for ACPI)... > > 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. > > > 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 interest= ing to hear about. > > Before I submit this to phabricator, assuming there is interest, I woul= d be interested to hear others' experiences with it, or indeed any other fe= edback. > > > > 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"