From nobody Wed May 17 12:47:02 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 4QLtD30vQ6z4B5Hw for ; Wed, 17 May 2023 12:47:15 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (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)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QLtD265N2z4M0K for ; Wed, 17 May 2023 12:47:14 +0000 (UTC) (envelope-from dfr@rabson.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-561a41db2c0so7942877b3.3 for ; Wed, 17 May 2023 05:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rabson-org.20221208.gappssmtp.com; s=20221208; t=1684327634; x=1686919634; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1oR2dLnoVZnLv9ZsGQNRwSF3GxNDj8i0OfF5hRnPf28=; b=JaJ5CZEpEoJSmLO79UYTWDzG5sX/BEqA7O/eSd/W4MAWHW4srPWZw2E99COp56Jt5L xcZRtnWFeO/gVttxhsg72AjStuht/zHWmvbgoTZjHLGfOgxMby/aJDA8tQziSkxd7ifb MvMDPdTCH+WmbWv83U9P++m9vL+LKi5ZvxzEApR1J008Awg+wpbhp+bswXCOom4C+laf laPDSuWa4MaqYpRPFjQu3Ayqv8S1vhPfm1j9be9ZYNo64WKM91cKcBLXf663AWXq7CUH C74QYsz7BEIpy/smeEMXfsfipjtkOd0FicNR0GdPN0ZhwJbltQ/oiQK5XVW93yp+8T1F TpBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684327634; x=1686919634; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1oR2dLnoVZnLv9ZsGQNRwSF3GxNDj8i0OfF5hRnPf28=; b=dAOfXSZL7WZV/jGa9rtlUDptYllFtfTO6oNLxVrkXawJuOG9MgYQ5Ihez9YH77AC8/ iq307QGQyEqfLwqRF9RPVU8g09ClAV80Uj/gLe3aW6Ik0lGmocMlRjLQKlBMp2nTLbYu FLRVOFuqJrQIMSgqNrq8h/CIvBrr4npxVo47Vb32zOSpSJOLyZP2UDhoOJS5LmYdhxh/ 5+RpiuSudcvKJZv+XQGVKnLUgNj0EQcrk1Cby4axsukOp6PO8cmglANP5lOfDxyVZIQL k8Sl2tDO5BeQFtFNUhLexPYdfIETpxicPm6vct7Gm5f9GgbB+zdi7lZj9KE0HOr23nk+ NjOg== X-Gm-Message-State: AC+VfDxWC8PNt3P7wWY0kCbsCrT4//h2Ftm7uGDJhX8lGTXh9ffzqqgv rWRbQNehYWRtpnD36FwOcqOxE/Ct5Wh0prtvlxQ/ng== X-Google-Smtp-Source: ACHHUZ7vVtHeraUXT/fPsL4nXMz+KEQZapZKaH819O01jQQkap6BMzX9ZaJSURqmd2km92aqJxXwqbnyuCd2GFHLlw4= X-Received: by 2002:a81:834b:0:b0:561:afe7:40bf with SMTP id t72-20020a81834b000000b00561afe740bfmr3529274ywf.5.1684327633778; Wed, 17 May 2023 05:47:13 -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: Doug Rabson Date: Wed, 17 May 2023 13:47:02 +0100 Message-ID: Subject: Re: Raspberry Pi POE+ hat overlay To: Nuno Teixeira Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="0000000000004c0d7e05fbe316c0" X-Rspamd-Queue-Id: 4QLtD265N2z4M0K X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000004c0d7e05fbe316c0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 trie= d 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 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 ca= n 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 testin= g >>>> with an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is keepin= g the >>>> 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? >>>> >>>> >>> >>> -- >>> Nuno Teixeira >>> FreeBSD Committer (ports) >>> >> > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --0000000000004c0d7e05fbe316c0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 Te= ixeira <eduardo@freebsd.org&g= t; 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 fe= ature.

Cheers,

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

I'm not sure where to start - I j= ust happened 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 tr= ied it.

Doug.


<= /div>
O= n 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 stab= le

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> wrote:
I was able to build an updated rpi-firmware port based on 1.202108= 05 and this boots successfully on pi400 as well as rpi4. With this, I can l= oad the rpi-poe-plus overlay and I just need to try and reverse engineer th= e undocumented mailbox API by reading the Linux code.

I have a first approximation of a fan driver which works w= ith 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 testin= g with an rpi4B rev 1.5 with 'make -j4 buildworld' and the fan is k= eeping the 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 180= 0 for this board.

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

=


--
Nuno TeixeiraFreeBSD Committer (ports)


--
Nuno TeixeiraFreeBSD Committer (ports)
--0000000000004c0d7e05fbe316c0--