Index | Thread | Search

From:
Jan Stary <hans@stare.cz>
Subject:
Re: Initial Raspberry Pi CPU frequency driver (apm -A)
To:
tech@openbsd.org
Date:
Wed, 21 Jan 2026 17:14:47 +0100

Download raw body.

Thread
On Jan 21 12:59:05, mvs@openbsd.org wrote:
> On Mon, Jan 19, 2026 at 01:47:37AM +0000, Ron Manosuthi wrote:
> > Hi,
> > 
> > Here's a one-diff version with
> > - style(9) fixes
> > - better comments
> > - earlier error handling in bcmclock(4) get/set freq
> > - removed unused imports in rpicpu(4) (not used yet)
> > 
> > - Ron
> >
> 
> I tried your diff on this RPI4:
> 
>     mainbus0 at root: Raspberry Pi 4 Model B Rev 1.2
>     efi0 at mainbus0: UEFI 2.11
>     efi0: Das U-Boot rev 0x20250700
>     smbios0 at efi0: SMBIOS 3.7.0
>     smbios0: vendor U-Boot version "2025.07" date 07/01/2025
>     smbios0: raspberrypi Raspberry Pi 4 Model B Rev 1.2
>     cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3
>     cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
>     cpu0: 1024KB 64b/line 16-way L2 cache
>     cpu0: CRC32,ASID16
> 
> I see the temperature is much higher with your diff. Even while my RPI
> does nothing and hw.perfpolicy is set to 'auto' I see the lowest
> temperature is about 49 degrees. Without your diff this idling RPI is
> around 42 degrees. I don't think this is an expected behavior.
> 
>    hw.sensors.bcmtmon0.temp0=48.69 degC
>    hw.cpuspeed=600

Is the 49 and the 42 one sample, or an average of thousands?
Same time of day? Same sun in the office?

I see anything between 47 and 52 on my idle RPI4B with no cooling,
both with and without this diff.

Jan