From nobody Tue May 16 16:19:27 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 4QLLzc2zGyz4BBv6 for ; Tue, 16 May 2023 16:19:40 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (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 4QLLzb493bz3vwp for ; Tue, 16 May 2023 16:19:39 +0000 (UTC) (envelope-from dfr@rabson.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rabson-org.20221208.gappssmtp.com header.s=20221208 header.b=uFuc3f8H; spf=pass (mx1.freebsd.org: domain of dfr@rabson.org designates 2607:f8b0:4864:20::1135 as permitted sender) smtp.mailfrom=dfr@rabson.org; dmarc=none Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-561a33b6d63so8548597b3.1 for ; Tue, 16 May 2023 09:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rabson-org.20221208.gappssmtp.com; s=20221208; t=1684253979; x=1686845979; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=8qpbQpLTL1OhUGbAnsqnhONNVH8Ln0wHbfpy4emJteY=; b=uFuc3f8HilnxqfMUiOfNUY3AdarV4qbDcLebJRlXprqTvNpY6MIRyPMidWnPufiykp nW5G7cd0j4QKvNbnBQ+HS/mK1pdnyrTK5mABWHFIuFPROuHqrdmKW6MnBcN34BmEgYZv BbSr6UD3SCxF53MAp4qhTKdiDb4ZetFx+0+ZqlrspTKR8PRtFASvnQKkWSl2LbnMtMae rdO4VlXkDPum7UJ9rAAO8HMTCgjIkw+L3HlV+Fm3/fOdmd19U2PWXPvd8z4y1h1q0ay+ E1aJIDC6+E/s62yBcmfeejai0pu+XneO/ORJnxz8Z7S11fQvtAaIYPzIQ56Mx2JYaZAT WANw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684253979; x=1686845979; 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=8qpbQpLTL1OhUGbAnsqnhONNVH8Ln0wHbfpy4emJteY=; b=Kf1r/f9PAbbsi2WrzDl2mC+sVuFBU37SPy0IRIKLU4fbEG+K9IR15QNru0/1dUH22C sVRAG16ouSDv8tImTi9XQDNkNS2HnIF6uPvjcIPauwvoa4q1Ah1+aRhivUmZaYPrhdU0 liKccXjPsNB2a0NN8UGdNM93cjmze7dw9+YwqsCjALGAjuJPIH+YCmyu6wNwQvhP1ZmF 4WecinUxFDryhmYcTUBq1+nDyiRtY0ZTfQYVV7EeRFmJwEwlJ5nKmUC6WKsO3wgNV/OZ Ca37O7rMa6lfFrdZ/5946UGw/iUWmxMLjcU1Mutg3+Qgs5ujnQZASflKvmmSrRmPrK0f z0qg== X-Gm-Message-State: AC+VfDzsH6bC5CLp0E/u+GdbYWkNW5jk/ndLY1O3jtE3Qbrp49hHOoQF fitq8Wt2iYSwRJajJlU13ayTyneIZxRE8so5j7RKpCtIt8g0Ma0TO2CmNA== X-Google-Smtp-Source: ACHHUZ4vQ1oq7I1lCXffym4nPzYKmqOxE1yUBHiWEklwA9JQ8sTUJjmGD4raaIv/SFZ45Za9UlDSfFZa+Zx1D9VqUQk= X-Received: by 2002:a81:490b:0:b0:55d:6dd4:e635 with SMTP id w11-20020a81490b000000b0055d6dd4e635mr30018564ywa.30.1684253978881; Tue, 16 May 2023 09:19:38 -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: Tue, 16 May 2023 17:19:27 +0100 Message-ID: Subject: Re: Raspberry Pi POE+ hat overlay To: Mark Millard Cc: freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="0000000000001f89a605fbd1f07e" X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[rabson-org.20221208.gappssmtp.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FREEMAIL_TO(0.00)[yahoo.com]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1135:from]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[dfr]; DKIM_TRACE(0.00)[rabson-org.20221208.gappssmtp.com:+]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[rabson.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4QLLzb493bz3vwp X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --0000000000001f89a605fbd1f07e Content-Type: text/plain; charset="UTF-8" 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 the cpu temperature below 65 degrees which is nice, especially since I set arm_boost=1 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? --0000000000001f89a605fbd1f07e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sat, 13 May 2023 at 13:45, Doug Rabson= <dfr@rabson.org> wrote:
I was able to build an updated rpi-fir= mware 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 o= f a fan driver which works with the 1.20210805 firmware (actually, I substi= tuted rpi-poe-plus.dtbo from 1.20210831 which just changes the fan levels f= or the POE+). I'm testing with an rpi4B rev 1.5 with 'make -j4 buil= dworld' and the fan is keeping the cpu temperature below 65 degrees whi= ch 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? Wo= uld it make any kind of sense to try to get the fix into releng/13.2 as an = errata?

--0000000000001f89a605fbd1f07e--