From nobody Wed May 17 10:10:55 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QLplx0Sngz49wCB for ; Wed, 17 May 2023 10:11:09 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QLplx02T0z45TM for ; Wed, 17 May 2023 10:11:09 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684318269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qvzOvO2FqryHMbkC9pLkulOAxiyuQHHOR7vHMnhVdBM=; b=ZNrrLlw1t2tIdimlGnMbOAwYzLDHo6MTJckbOlMtBh4WBb1PyjB5lG0Y8IjM4RV1ccPSuc AADcGJvOPhCwaIj61guw1AmVmb26SBv9YOyZjUD6w068nzi0pqPcFgKSmF/LniKXU/zcv5 av+jS+SE7pPcKYDR3KMnFp+fXiNlkY6UKbiHJIRh+Bj/pefcTL96PuGDkN8LgX0/Q1k+jX CLCMgKDDcVMlWHqpKifyOLuUEBrcHk3JcWOJChrH2yp8BXuoUiqV+cWqnMBPzK8OarK3RE N4jlMJFmb24n3vOiV6sMONdtpIb7YgdKoef+uRFwtIbUkxKE5RMXuqAV2FVo0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684318269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qvzOvO2FqryHMbkC9pLkulOAxiyuQHHOR7vHMnhVdBM=; b=YCi3cOr/zhHdG3mYhXgWx8qFWRLHY0H/E+Ko64g2eu3PAeV6RzSQo1uYWx4cTfLWb/lTRY 7Y2f2pKZ+jbh9B63SLFLpDtcEFSkD2THoSEMnctYf/lPFmUFkeSQFnB0xDO2wVmqAqGsMz b9rJrmxKLYb4N8o4v10L7wZUJSFshL70jl9+iCQBXqMNqsEMTF2NGgDM2Xf727w3I8lp5H Cr8DgpnvMVRH6+9/gsIruKvxg6kBVkhRHLGjAzNDy0LbykPoRu2AULLJur1xImDOOcXMaO GPKXrEty6wBwNcHFyYU7c/2KDLXEG4QxtQxcLf2FTl+SffWf0vjskcrjgEgUlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684318269; a=rsa-sha256; cv=none; b=vXpFUxCzm4MGSRKj35JmaZwhq969ZPhPZ+/CAFQni0r5saRF+C3QoifKDkjeAJj+fPD9Vc XQVnLhCXwYucxpy1SbTxZANbOnKeq75iU4ZxN7K+x9J0ubD0rlUnlV+Mw6VD9l4+/cqrJ4 XE9KmBH04e7poGosu0jWjjvvrX2QUs4JvkfdMx3u39WkNwJQvE7NiImFTEfRE1JPzh9mSp 2qsyRoYzxNYarTfo61f0HGFmiQ61imI9h32LULAlXWnNMjCixOJLFGRpVkfPY2P+a3nZOw RPC1wN8Gk3kRI4kzMsoCYH9JBHUl0Xk1L12Sqwmd/3H//0AFQ2C9Df6vud2Pmg== Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QLplw5jv2zstb for ; Wed, 17 May 2023 10:11:08 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1ab01bf474aso5426375ad.1 for ; Wed, 17 May 2023 03:11:08 -0700 (PDT) X-Gm-Message-State: AC+VfDxwlQf1ySaS45g/8gM1FvQjkidJ2suPRCnXploccRCG9MIJKyNr L5teAGfnxE7U1NvtjO3SZ+6IN/ZYTJl4zdf2ZqM= X-Google-Smtp-Source: ACHHUZ5hD3f/wOUSuu6IXbFvJmPxu0wC1XFQsppL+Bn6lDHsGoMGTKvtM7m+NNlCY1JjUcxq/9wYznNfBJhKQUos7wY= X-Received: by 2002:a17:903:1247:b0:1ab:afd:903a with SMTP id u7-20020a170903124700b001ab0afd903amr52868990plh.24.1684318267403; Wed, 17 May 2023 03:11:07 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <77CD0716-3BC8-47EB-8743-F2BD9CA43D31@yahoo.com> <432A1A16-9FE5-4339-AB38-8F3E03A5D4EF@yahoo.com> In-Reply-To: From: Nuno Teixeira Date: Wed, 17 May 2023 11:10:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Raspberry Pi POE+ hat overlay To: Doug Rabson , freebsd-arm@freebsd.org Content-Type: multipart/mixed; boundary="0000000000000531e805fbe0e835" X-ThisMailContainsUnwantedMimeParts: N --0000000000000531e805fbe0e835 Content-Type: multipart/alternative; boundary="0000000000000531e605fbe0e833" --0000000000000531e605fbe0e833 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Doug, I have too a 1.5 rpi but arm_boost=3D1 isn't doing anything, htop shows 1500Mhz when doing something intensive. I'm running 13.2 stable Do I missing something? Could you take a look at my setup? Thanks, Doug Rabson escreveu no dia ter=C3=A7a, 16/05/2023 =C3=A0(= s) 17:19: > > On Sat, 13 May 2023 at 13:45, Doug Rabson wrote: > >> I was able to build an updated rpi-firmware port based on 1.20210805 and >> this boots successfully on pi400 as well as rpi4. With this, I can load = the >> rpi-poe-plus overlay and I just need to try and reverse engineer the >> undocumented mailbox API by reading the Linux code. >> > > I have a first approximation of a fan driver which works with the > 1.20210805 firmware (actually, I substituted rpi-poe-plus.dtbo from > 1.20210831 which just changes the fan levels for the POE+). I'm testing > with an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is keeping t= he > cpu temperature below 65 degrees which is nice, especially since I set > arm_boost=3D1 in config.txt which boosts the cpu frequency up to 1800 for > this board. > > Does anyone have a pointer to the problem with firmware later than > 20210805? Would it make any kind of sense to try to get the fix into > releng/13.2 as an errata? > > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000000531e605fbe0e833 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Doug,

I have too a 1.5= rpi but arm_boost=3D1 isn't doing anything, htop shows 1500Mhz when do= ing something intensive.
I'm running 13.2 stable
Do I missing something?

Could you tak= e a look at my setup?

Thanks,

<= div class=3D"gmail_quote">
Doug Rabson= <dfr@rabson.org> escreveu no d= ia ter=C3=A7a, 16/05/2023 =C3=A0(s) 17:19:

On Sat, 13 May= 2023 at 13:45, Doug Rabson <dfr@rabson.org> wrote:
I was able to build an updated rpi-= firmware port based on 1.20210805 and this boots successfully on pi400 as w= ell as rpi4. With this, I can load the rpi-poe-plus overlay and I just need= to try and reverse engineer the undocumented mailbox API by reading the Li= nux code.

I have a first approximatio= n of a fan driver which works with the 1.20210805 firmware (actually, I sub= stituted rpi-poe-plus.dtbo from 1.20210831 which just changes the fan level= s for the POE+). I'm testing with an rpi4B rev 1.5 with 'make -j4 b= uildworld' and the fan is keeping the cpu temperature below 65 degrees = which is nice, especially since I set arm_boost=3D1 in config.txt which boo= sts the cpu frequency up to 1800 for this board.

D= oes anyone have a pointer to the problem with firmware later than 20210805?= Would it make any kind of sense to try to get the fix into releng/13.2 as = an errata?



--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000000531e605fbe0e833-- --0000000000000531e805fbe0e835 Content-Type: text/plain; charset="US-ASCII"; name="cpuinfo.txt" Content-Disposition: attachment; filename="cpuinfo.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhrjllk11 cHJvY2Vzc29yCTogMApCb2dvTUlQUwk6IDEwOC4wMApGZWF0dXJlcwk6IGZwIGFzaW1kIGV2dHN0 cm0gY3JjMzIgY3B1aWQKQ1BVIGltcGxlbWVudGVyCTogMHg0MQpDUFUgYXJjaGl0ZWN0dXJlOiA4 CkNQVSB2YXJpYW50CTogMHgwCkNQVSBwYXJ0CTogMHhkMDgKQ1BVIHJldmlzaW9uCTogMwoKcHJv Y2Vzc29yCTogMQpCb2dvTUlQUwk6IDEwOC4wMApGZWF0dXJlcwk6IGZwIGFzaW1kIGV2dHN0cm0g Y3JjMzIgY3B1aWQKQ1BVIGltcGxlbWVudGVyCTogMHg0MQpDUFUgYXJjaGl0ZWN0dXJlOiA4CkNQ VSB2YXJpYW50CTogMHgwCkNQVSBwYXJ0CTogMHhkMDgKQ1BVIHJldmlzaW9uCTogMwoKcHJvY2Vz c29yCTogMgpCb2dvTUlQUwk6IDEwOC4wMApGZWF0dXJlcwk6IGZwIGFzaW1kIGV2dHN0cm0gY3Jj MzIgY3B1aWQKQ1BVIGltcGxlbWVudGVyCTogMHg0MQpDUFUgYXJjaGl0ZWN0dXJlOiA4CkNQVSB2 YXJpYW50CTogMHgwCkNQVSBwYXJ0CTogMHhkMDgKQ1BVIHJldmlzaW9uCTogMwoKcHJvY2Vzc29y CTogMwpCb2dvTUlQUwk6IDEwOC4wMApGZWF0dXJlcwk6IGZwIGFzaW1kIGV2dHN0cm0gY3JjMzIg Y3B1aWQKQ1BVIGltcGxlbWVudGVyCTogMHg0MQpDUFUgYXJjaGl0ZWN0dXJlOiA4CkNQVSB2YXJp YW50CTogMHgwCkNQVSBwYXJ0CTogMHhkMDgKQ1BVIHJldmlzaW9uCTogMwoKSGFyZHdhcmUJOiBC Q00yODM1ClJldmlzaW9uCTogZDAzMTE1ClNlcmlhbAkJOiAxMDAwMDAwMDI3NzlkNTQwCk1vZGVs CQk6IFJhc3BiZXJyeSBQaSA0IE1vZGVsIEIgUmV2IDEuNQo= --0000000000000531e805fbe0e835 Content-Type: text/plain; charset="US-ASCII"; name="config.txt" Content-Disposition: attachment; filename="config.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhrjllj80 W2FsbF0KYXJtXzY0Yml0PTEKI2R0cGFyYW09YXVkaW89b24saTJjX2FybT1vbixzcGk9b24KZHRv dmVybGF5PW1tYwpkdG92ZXJsYXk9ZGlzYWJsZS1idApkZXZpY2VfdHJlZV9hZGRyZXNzPTB4NDAw MAprZXJuZWw9dS1ib290LmJpbgphcm1fYm9vc3Q9MQoKW3BpNF0KaGRtaV9zYWZlPTAKYXJtc3R1 Yj1hcm1zdHViOC1naWMuYmluCm1heF9mcmFtZWJ1ZmZlcnM9MgpoZG1pX2ZvcmNlX2hvdHBsdWc9 MQpoZG1pX2dyb3VwPTIKaGRtaV9kcml2ZT0yCmhkbWlfbW9kZT04MgpkaXNhYmxlX292ZXJzY2Fu PTEK --0000000000000531e805fbe0e835 Content-Type: text/plain; charset="US-ASCII"; name="eeprom.txt" Content-Disposition: attachment; filename="eeprom.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhrjllk32 Qk9PVExPQURFUjogdXAgdG8gZGF0ZQogICBDVVJSRU5UOiBxdWEgMTEgamFuIDIwMjMgMTc6NDA6 NTIgVVRDICgxNjczNDU4ODUyKQogICAgTEFURVNUOiBxdWEgMTEgamFuIDIwMjMgMTc6NDA6NTIg VVRDICgxNjczNDU4ODUyKQogICBSRUxFQVNFOiBkZWZhdWx0ICgvbGliL2Zpcm13YXJlL3Jhc3Bi ZXJyeXBpL2Jvb3Rsb2FkZXIvZGVmYXVsdCkKICAgICAgICAgICAgVXNlIHJhc3BpLWNvbmZpZyB0 byBjaGFuZ2UgdGhlIHJlbGVhc2UuCgogIFZMODA1X0ZXOiBVc2luZyBib290bG9hZGVyIEVFUFJP TQogICAgIFZMODA1OiB1cCB0byBkYXRlCiAgIENVUlJFTlQ6IDAwMDEzOGMwCiAgICBMQVRFU1Q6 IDAwMDEzOGMwCg== --0000000000000531e805fbe0e835--