From nobody Wed May 17 13:08:11 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 4QLthS6zGGz4B701 for ; Wed, 17 May 2023 13:08:24 +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 4QLthS6QtMz3CgV for ; Wed, 17 May 2023 13:08:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684328904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pdwSK5oG0GmiQdIy3+RN3VIfT/9l7SNf1CR52+MyTKw=; b=HFO02iQFbOqgQonz3zQV1uc9myMKe4mFVLUAmPNTJQt0GoZ4vCyU3Xk94RRmppHvfjqf+4 M1hsqT45yLvUW7TtzC4QUzFrU/ZNqxx6hfZYME9RZyXmv08NhdJpjuCQBAy/rYQexdRWNw 8LUEbveHOnvwlRHMME0nV5AdNQn8BFOvQY9fzJ9F4t+73631q0RwiVr7tgQgfNlxr3FC15 EQb2QdRo/b+KZ5RS2L7yc+GFZ+7NfyhBKKKTtyJDIMzVhCSPXE7I8rfyJVpegwLYWQxmvf be/FWwJrL7n8F9hOt9OTYDrTfhhuWFa7UUkejvJhb8L6UmtwbZlLpq3GFYgQ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684328904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pdwSK5oG0GmiQdIy3+RN3VIfT/9l7SNf1CR52+MyTKw=; b=x5xq3ts8qS1WDR9Cj3fVnq40K1iZB87Houw6C7J4HJ7T74mBImPL0CyC+tqWCJLfHAOW4q UqddMBDFYMmOToT5KTMiOO8cllZQITnafRIdT1rCd0mYO9oID6E8cJCifIlNeUbs/8efi4 /bzS1spTFeKK0KfhC3uNd1KkJA765jm7Z8pmH1lsg7fFc/Xm99ENz9LprWl7v51vaTGxJB kC8kwvK6nL1zZrw1EHWfW/uZNCdr7wLb9XP/I5BD/xM8j1aE5yaxfJI3/TsDnR9agRQxUp PSzv2L12YUbAR4BvfCXAa1YCIdKPsponiPtSy7MCwZB7okjPs2PdiCtUeCx4JA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684328904; a=rsa-sha256; cv=none; b=uy8zNTpVIDordwBqtMjXAFt7Ue2sD8b+8eZkYLQa1VMkiF+2Etisc/V8Uqw5Jo5ua4WoVm ESzb9yA2OVSbwWnYQo/KpDozwLJHMFQqIIM5daXGjnv02KhadHIt/qfkXsq4alWCvtcTx9 vSJ2GJaN3p5xM+5oVdwfUwMi/cZZZ/HMEL3NxzpQpECv7qo+yZewyK182KaW1GeHWWrkQx 7iOM6k2tvUW7s49SOYJrxu/fQ9m8ENz+ZB8w2qG6COU0nGWoP6stGBzaHCIGnFf1PbCYdH amKCKxc+McK6+2KflpmZGQ1Z7nbHul/GkXJVam3ztFpf3xmZDh57jKRuuc0fHQ== Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 4QLthS5MHczwrN for ; Wed, 17 May 2023 13:08:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-24df4ecdb87so595488a91.0 for ; Wed, 17 May 2023 06:08:24 -0700 (PDT) X-Gm-Message-State: AC+VfDyBab6iNbbs7m8rYjvoR+t6en2CoS/3MeqXCu27bd8zOAKLpGZB DeeCd+7SwmyCZBlr1qVLLWt/uIlbIxApf/vY1VU= X-Google-Smtp-Source: ACHHUZ6AB8xh1YvnaXDdNGm5e7mQNUP5fzTQZbWU4gE8peK4xD8pCOs6xU4s1Tgnz0ZlAdaN/FOgfWwgsX5GuH18pRk= X-Received: by 2002:a17:90a:4d8f:b0:253:3662:9825 with SMTP id m15-20020a17090a4d8f00b0025336629825mr4157826pjh.8.1684328903617; Wed, 17 May 2023 06:08:23 -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 14:08:11 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Raspberry Pi POE+ hat overlay To: Doug Rabson Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000fc356d05fbe3614b" X-ThisMailContainsUnwantedMimeParts: N --000000000000fc356d05fbe3614b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) I was meant using 13.2 not 12.3 :) Doug Rabson escreveu no dia quarta, 17/05/2023 =C3=A0(s) 1= 3:47: > I'm not sure about 12.3 either - you could try with 13.2 and see if that > makes a difference. > > On Wed, 17 May 2023 at 13:45, Nuno Teixeira wrote: > >> Hey, >> >> Ok. I'm new to rpi4 and arm in general but tomorrow I will force >> 'arm_freq=3D1800' again just to see it it crashes again. >> I will check too what values linux shows. >> >> I don't know if firmware/uboot version included in 12.3 supports this >> feature. >> >> Cheers, >> >> Doug Rabson escreveu no dia quarta, 17/05/2023 =C3=A0(s= ) >> 13:11: >> >>> Hi Nuno, >>> >>> I'm not sure where to start - I just happened to notice in the >>> documentation here: >>> https://www.raspberrypi.com/documentation/computers/config_txt.html >>> that the cpu frequency Pi4B R1.4 was listed as 1800 if arm_boot=3D1 so = I >>> tried it. >>> >>> Doug. >>> >>> >>> >>> On Wed, 17 May 2023 at 11:11, Nuno Teixeira wrote= : >>> >>>> Hello Doug, >>>> >>>> I have too a 1.5 rpi but arm_boost=3D1 isn't doing anything, htop show= s >>>> 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 c= an 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 testi= ng >>>>> with an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is keepi= ng the >>>>> cpu temperature below 65 degrees which is nice, especially since I se= t >>>>> 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? >>>>> >>>>> >>>> >>>> -- >>>> Nuno Teixeira >>>> FreeBSD Committer (ports) >>>> >>> >> >> -- >> Nuno Teixeira >> FreeBSD Committer (ports) >> > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000fc356d05fbe3614b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)

I was meant using 13.2= not 12.3 :)

Doug Rabson <dfr= @rabson.org> escreveu no dia quarta, 17/05/2023 =C3=A0(s) 13:47:
=
I&= #39;m not sure about 12.3 either - you could try with 13.2 and see if that = makes a difference.

On Wed, 17 May 2023 at 13:45, Nuno Teixeira <eduardo@freebsd.org&g= t; wrote:
Hey,

Ok. I'm new to rpi4 and a= rm in general but tomorrow I will force 'arm_freq=3D1800' again jus= t to see it it crashes again.
I will check too what values linux = shows.

I don't know if firmware/uboot version = included in 12.3 supports this feature.

Cheers,

Doug Rabson <= dfr@rabson.org> escreveu no dia quarta, 17/05/2023 =C3=A0(s) 13:11:<= br>
Hi Nuno,

I'm not sure where to start - I just happe= ned to notice in the documentation here:=C2=A0https:= //www.raspberrypi.com/documentation/computers/config_txt.html that the = cpu frequency Pi4B R1.4 was listed as 1800 if arm_boot=3D1 so I tried it.

Doug.



=
On Wed, 17= May 2023 at 11:11, Nuno Teixeira <eduardo@freebsd.org> wrote:
Hello Doug,

I have too a 1.5 rpi but arm_boost=3D1 isn't doi= ng 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 <dfr@rabson.org> escreveu no dia ter=C3=A7a, 1= 6/05/2023 =C3=A0(s) 17:19:

On Sat, 13 May 2023 at 13:45, = Doug Rabson <dfr@rab= son.org> wrote:
I was able to build an updated rpi-firmware port ba= sed on 1.20210805 and this boots successfully on pi400 as well as rpi4. Wit= h this, I can load the rpi-poe-plus overlay and I just need to try and reve= rse engineer the undocumented mailbox API by reading the Linux code.
<= /blockquote>

I have a first approximation of a fan drive= r 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' a= nd the fan is keeping the cpu temperature below 65 degrees which is nice, e= specially since I set arm_boost=3D1 in config.txt which boosts the cpu freq= uency up to 1800 for this board.

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



--
Nuno TeixeiraFreeBSD Committer (ports)


--
Nuno TeixeiraFreeBSD Committer (ports)


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--000000000000fc356d05fbe3614b--