From owner-freebsd-arm@freebsd.org Thu May 28 15:37:52 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 4CF5D2F5B61 for ; Thu, 28 May 2020 15:37:52 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49XsKC1qjkz4q8r for ; Thu, 28 May 2020 15:37:51 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x443.google.com with SMTP id l11so28466399wru.0 for ; Thu, 28 May 2020 08:37:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=pvJcFDXG01CdZvTngIBsCAdFvOZkF1zbBIBlGXaBPuI=; b=M2S0ymGlv/Ww7Fjzl0sthMtlIG9yM0SI/SkM/QAkKKfw79+s6eacF/3+pYXm4CZCOD WMH7P+1mmYZcH8UipX+IBmc3ugVJZ0EyfPiktjSm+MjkkD9Olowl87cQZjlyDDpNRVca 5tihguWqgWjF8C7W3vTZGXniIXZh52TRS4xwzJGzY8n5NabUdRdeBXV35uY7KTIqYL7N OfGr2beWH1FM/N6Ktqoa5MhtGqivTrT++R3yiVk3BcV5nBTMptNc8iLNT9ltyxWee/FP 5pBJhXqV2gJ3ni6l1sRuQhY5QMVyoBEsR3Ziu6rT03QZnIcIvkj7vC+OirG5ZehQj1zJ DhaQ== X-Gm-Message-State: AOAM530pbGNgd5/0bR/5joAzVSmmnqx1Ls4QQyklDy5T9hzzwoQJ1uu8 bMbgkiSf0SKdXZxTT5l5kIw= X-Google-Smtp-Source: ABdhPJwyExSb4Cj3Qr3SBGk++xI0S3cuxM3jh4MgU3ya9rMUBLao/vqNRpYGCJRpto2IBV+cgCkF0A== X-Received: by 2002:adf:ec03:: with SMTP id x3mr4050177wrn.297.1590680268850; Thu, 28 May 2020 08:37:48 -0700 (PDT) Received: from [192.168.1.167] ([46.114.109.77]) by smtp.googlemail.com with ESMTPSA id z132sm7744951wmc.29.2020.05.28.08.37.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2020 08:37:47 -0700 (PDT) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Driver for Raspberry Pi 4 PCI-express controller Date: Thu, 28 May 2020 17:37:42 +0200 References: <7F058E92-DDD3-4728-9A51-09BF1D47855C@googlemail.com> <1RBZ-1AclgkiNDwWUqrWhun8T8YSAX6g64NeSc2DKy9EF1wGsJobselP4UYGflpcmbfUx3sEEM2YplIJOXPmZ6EG_GwiMC1_3GLrqpZxisQ=@protonmail.com> To: Robert Crowston , freebsd-arm@freebsd.org In-Reply-To: <1RBZ-1AclgkiNDwWUqrWhun8T8YSAX6g64NeSc2DKy9EF1wGsJobselP4UYGflpcmbfUx3sEEM2YplIJOXPmZ6EG_GwiMC1_3GLrqpZxisQ=@protonmail.com> Message-Id: <46519DEB-E96D-43DD-B739-401F9F51371E@googlemail.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49XsKC1qjkz4q8r X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.21 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; NEURAL_HAM_SHORT(-0.72)[-0.723]; FREEMAIL_TO(0.00)[protonmail.com,freebsd.org]; RECEIVED_SPAMHAUS_PBL(0.00)[46.114.109.77:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.009]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.981]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::443:from]; RCVD_TLS_ALL(0.00)[] 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 15:37:52 -0000 > Am 28.05.2020 um 16:57 schrieb Robert Crowston = : >=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 = 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