From nobody Thu May 18 08:29: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 4QMNS42D12z3bN2Q for ; Thu, 18 May 2023 08:29: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 4QMNS41mymz3Nxh for ; Thu, 18 May 2023 08:29:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684398564; 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=NHvzPX/1kop++Gu1PJfRekg2jeLuX7x9hVQqnwtn+1A=; b=CwNfVacldWonYXP0Uynkq8amoXcPgT1DBME+c7PBQE3yDjleJQS9/dcHgVumcP7p8ydGG2 qgXg+S2HIAV8kbIBDvNHX1zHICvy3o752d/iTjXRFO9IFAxzTIFCF3GnQKjXMqkAdteAKB 7bqgCBw9O5YxflzL6clZmUS1X06PZ6kuAVQTiWasX6Srtc63Q8Ut3NYNvVCeLE/DVeiPNw POicn15gfd44vL5dADphxNji6tPhAC7zd9z9bkDYsQ2/VMpCC62MJeXXozJDrv2xd9RPal PNsGh9u+VPopnJ9ACNl+pwVEFeR+FNaU+YPLfvbS+ZP+JG2HMuleLiM7XiF16w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684398564; 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=NHvzPX/1kop++Gu1PJfRekg2jeLuX7x9hVQqnwtn+1A=; b=LJsCzVFfG3MEKfn3/kWYz5qAXjaFD+G/3uMyMZ9+zkHUSqb+SiHIBcgYOh/2ZceeiV3xbG MHwrOY0GoddXhOe5UTQFCejRZBKpuUPjjUmGODtbzrSgrqMZaQ13DJeGf2WhbEAvNrfxhd qQ3dUKY7HjprTKITiZqFVtDO6iSFRPujXHT3hd2OnJZxgm9WzjWGmVaSwvosnAFtkpblbQ AsI/gAuHvk94hmeBJE3DfqzNdoC1G0tE16tSmdr7tJKBJdUj6hg+dsMmyJzxv6HmrnuMc9 8tyRhwhf8qEkw+BpSea7a7kAtlkwLsz/i8g3VHV9rU1dTBS+u5S+oVTrhrcZvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684398564; a=rsa-sha256; cv=none; b=Nx3j7w5v09m3eBOYPD2Ebvk97Uwr6n+0mngdLOz9rPy3C3oGdKD7FJbhhYkGBsL37rsCH8 pIdw1OjfZugx6ANgsSUvdrDRwLPnVKes+kZcOvwQFo8FFm/VLZ+IBVtXisjG8BAbVkUmbK cBvWqRMlmbv7juEh6z8hn0UVbW7dncYwusg0SDWTIDJ52f6JBiHoQZKi4TDutptN7vsrll SydrrWfPLfi4sponVjM2s48YS801NG4RtPwhn/AOzzZefwZAHv2gi4bSaRt19mKGOHUp8V N4C0IU+qm0n3v+gWfh2X43ptOKMpiu7kBXXGyXGA/RXCw+7bkfMIfxatKC8ESA== Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (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 4QMNS40cfQzK5P for ; Thu, 18 May 2023 08:29:24 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-24e16918323so1335295a91.2 for ; Thu, 18 May 2023 01:29:24 -0700 (PDT) X-Gm-Message-State: AC+VfDwegZC9N9ooS3EeGj8P7xXEFiymaEzyaIgGuqbay/yPe1Ctjj4c vm+F1AGkyQTEyxuxpIccZ+Bif0We660blnlPB6c= X-Google-Smtp-Source: ACHHUZ4KVaw0OjgVRp1iOzXAPI4JOyUNQbr1GZbjwcyDjgeMj9U0tZhmf3wg7hZ6yfak4gEHNbDKuAsbkER/liTO8P4= X-Received: by 2002:a17:90a:9318:b0:253:61f3:d675 with SMTP id p24-20020a17090a931800b0025361f3d675mr1187531pjo.30.1684398563048; Thu, 18 May 2023 01:29: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: Thu, 18 May 2023 09:29: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="00000000000002c58905fbf39a76" X-ThisMailContainsUnwantedMimeParts: N --00000000000002c58905fbf39a76 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Confirmed that arm_boost is enable by default on rpi4 rev >=3D 1.4 as I checked with htop. Also, tested arm_freq=3D1800 and it crashes FreeBSD around initializing console/video and detecting mouse. As linux config.txt says: --- [pi4] # Run as fast as firmware / board allows arm_boost=3D1 --- firmware must be updated to support this feature for sure. Cheers, Nuno Teixeira escreveu no dia quarta, 17/05/2023 =C3= =A0(s) 14:08: > (...) > > I was meant using 13.2 not 12.3 :) > > Doug Rabson escreveu no dia quarta, 17/05/2023 =C3=A0(s) > 13: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 sho= ws >>>>> 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.2021080= 5 >>>>>>> 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 enginee= r 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 test= ing >>>>>> with an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is keep= ing the >>>>>> cpu temperature below 65 degrees which is nice, especially since I s= et >>>>>> arm_boost=3D1 in config.txt which boosts the cpu frequency up to 180= 0 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) >>> >> > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --00000000000002c58905fbf39a76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Confirmed that arm_boost is enable by default on rpi4= rev >=3D 1.4 as I checked with htop.

Also, tes= ted arm_freq=3D1800 and it crashes FreeBSD around initializing console/vide= o and detecting mouse.

As linux config.txt says:
---
[pi4]
# Run as fast as firmware / board allow= s
arm_boost=3D1
---
firmware must be updated to supp= ort this feature for sure.

Cheers,
=
Nuno T= eixeira <eduardo@freebsd.org&= gt; escreveu no dia quarta, 17/05/2023 =C3=A0(s) 14:08:
(...)

I was meant using 13.2 not 12.3 :)

Doug Rabson &= lt;dfr@rabson.org&g= t; escreveu no dia quarta, 17/05/2023 =C3=A0(s) 13:47:
I'm not sure ab= out 12.3 either - you could try with 13.2 and see if that makes a differenc= e.

On Wed, 17 May 2023 at 13:45, Nuno Teixeira <eduardo@freebsd.org> wrote:
He= y,

Ok. I'm new to rpi4 and arm in general but = tomorrow I will force 'arm_freq=3D1800' again just to see it it cra= shes again.
I will check too what values linux shows.
<= br>
I don't know if firmware/uboot version included in 12.3 s= upports this feature.

Cheers,

<= div class=3D"gmail_quote">
Doug Rabson= <dfr@rabson.org= > 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 t= he 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 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 <dfr@rabson.org> escreveu no dia ter=C3=A7a, 16/05/2023 =C3=A0(s) = 17:19:

On Sat, 13 May 2023 at 13:45, Doug Rabson <dfr@rabson.org> wro= te:
I was able to build an updated rpi-firmware port based on 1.20210805 a= nd 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 un= documented 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.2= 0210831 which just changes the fan levels for the POE+). I'm testing wi= th 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 s= et arm_boost=3D1 in config.txt which boosts the cpu frequency up to 1800 fo= r this board.

Does anyone have a pointer to the pr= oblem 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 TeixeiraFreeBSD Committer (ports)


--
Nuno TeixeiraFreeBSD Committer (ports)


--
Nuno TeixeiraFreeBSD Committer (ports)


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--00000000000002c58905fbf39a76--