NetBSD Problem Report #57139
From www@netbsd.org Tue Dec 27 20:57:46 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6D67E1A9239
for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Dec 2022 20:57:46 +0000 (UTC)
Message-Id: <20221227205745.954F21A923A@mollari.NetBSD.org>
Date: Tue, 27 Dec 2022 20:57:45 +0000 (UTC)
From: cryintothebluesky@gmail.com
Reply-To: cryintothebluesky@gmail.com
To: gnats-bugs@NetBSD.org
Subject: CPU frequency setting does not seem to work on Raspberry Pi 4
X-Send-Pr-Version: www-1.0
>Number: 57139
>Category: port-arm
>Synopsis: CPU frequency setting does not seem to work on Raspberry Pi 4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-arm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Dec 27 21:00:01 +0000 2022
>Closed-Date:
>Last-Modified: Wed Dec 24 08:50:01 +0000 2025
>Originator: Sad Clouds
>Release: 10.0_BETA
>Organization:
>Environment:
NetBSD rp4-netbsd 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #0: Fri Dec 23 11:21:46 GMT 2022
>Description:
Setting CPU frequency to 600 does not seem to be supported, as the current frequency is still reported as 1500
# sysctl -w machdep.cpu.frequency.target=600
machdep.cpu.frequency.target: 1500 -> 600
# sysctl machdep.cpu.frequency
machdep.cpu.frequency.target = 1500
machdep.cpu.frequency.current = 1500
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: gdt@NetBSD.org
State-Changed-When: Tue, 23 Apr 2024 13:04:29 +0000
State-Changed-Why:
works in 10.0; asked for retesting
From: Sad Clouds <cryintothebluesky@gmail.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-arm/57139
Date: Wed, 20 Nov 2024 07:59:19 +0000
You can probably close this bug now.
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 20 Nov 2024 12:41:38 +0000
State-Changed-Why:
Closed on submitter's request.
From: Sad Clouds <cryintothebluesky@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org
Subject: Re: port-arm/57139
Date: Mon, 8 Dec 2025 18:22:45 +0000
Is it possible to reopen this bug?
On 10.1_STABLE and using the latest UEFI bootloader this issue has
reappeared again:
Check current CPU frequency:
rp4-4g# sysctl machdep.cpu
machdep.cpu.frequency.target = 1500
machdep.cpu.frequency.current = 1500
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
Set CPU frequency to 600:
rp4-4g# sysctl -w machdep.cpu.frequency.target=600
machdep.cpu.frequency.target: 1500 -> 600
Check current CPU frequency:
rp4-4g# sysctl machdep.cpu
machdep.cpu.frequency.target = 1500
machdep.cpu.frequency.current = 1500
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
Maybe there have been regressions since this bug was closed?
State-Changed-From-To: closed->open
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Tue, 09 Dec 2025 08:07:53 +0000
State-Changed-Why:
Requested by submitter.
Please provide full dmesg.
From: Sad Clouds <cryintothebluesky@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org
Subject: Re: port-arm/57139
Date: Tue, 9 Dec 2025 08:33:31 +0000
I wonder if there is a difference in behavior depending on whether
NetBSD kernel is booting via UEFI or some other bootloader.
I'm using UEFI firmware v1.50:
https://github.com/pftf/RPi4/releases/download/v1.50/RPi4_UEFI_Firmware_v1.50.zip
and can reproduce the issue with NetBSD-10.1_STABLE.
Instructions on installing UEFI and NetBSD can be found here:
https://cryintothebluesky.blogspot.com/2025/12/installing-netbsd-10-on-raspberry-pi-4.html
From: Nick Hudson <nick.hudson@gmx.co.uk>
To: gnats-bugs@netbsd.org, port-arm-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, cryintothebluesky@gmail.com
Cc:
Subject: Re: port-arm/57139
Date: Tue, 9 Dec 2025 08:46:47 +0000
On 09/12/2025 08:35, Sad Clouds via gnats wrote:
> The following reply was made to PR port-arm/57139; it has been noted by GNATS.
>
> From: Sad Clouds <cryintothebluesky@gmail.com>
> To: gnats-bugs@NetBSD.org
> Cc: gnats-admin@netbsd.org
> Subject: Re: port-arm/57139
> Date: Tue, 9 Dec 2025 08:33:31 +0000
>
> I wonder if there is a difference in behavior depending on whether
> NetBSD kernel is booting via UEFI or some other bootloader.
absolutely. This is why I asked for full dmesg.
From: Sad Clouds <cryintothebluesky@gmail.com>
To: Nick Hudson <nick.hudson@gmx.co.uk>
Cc: gnats-bugs@netbsd.org, port-arm-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: port-arm/57139
Date: Tue, 9 Dec 2025 09:51:55 +0000
This is a multi-part message in MIME format.
--Multipart=_Tue__9_Dec_2025_09_51_55_+0000_aWaxIfmSP8MHbTUy
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On Tue, 9 Dec 2025 08:46:47 +0000
Nick Hudson <nick.hudson@gmx.co.uk> wrote:
>
> On 09/12/2025 08:35, Sad Clouds via gnats wrote:
> > The following reply was made to PR port-arm/57139; it has been noted by GNATS.
> >
> > From: Sad Clouds <cryintothebluesky@gmail.com>
> > To: gnats-bugs@NetBSD.org
> > Cc: gnats-admin@netbsd.org
> > Subject: Re: port-arm/57139
> > Date: Tue, 9 Dec 2025 08:33:31 +0000
> >
> > I wonder if there is a difference in behavior depending on whether
> > NetBSD kernel is booting via UEFI or some other bootloader.
>
> absolutely. This is why I asked for full dmesg.
>
Sorry I missed that request. It should be now attached with this email.
--Multipart=_Tue__9_Dec_2025_09_51_55_+0000_aWaxIfmSP8MHbTUy
Content-Type: text/plain;
name="dmesg.txt"
Content-Disposition: attachment;
filename="dmesg.txt"
Content-Transfer-Encoding: 7bit
[ 1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.000000] 2024, 2025
[ 1.000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.000000] The Regents of the University of California. All rights reserved.
[ 1.000000] NetBSD 10.1_STABLE (GENERIC64) #0: Mon Dec 8 09:25:45 UTC 2025
[ 1.000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64
[ 1.000000] total memory = 3926 MB
[ 1.000000] avail memory = 3783 MB
[ 1.000000] entropy: ready
[ 1.000000] timecounter: Timecounters tick every 10.000 msec
[ 1.000000] Kernelized RAIDframe activated
[ 1.000000] armfdt0 (root)
[ 1.000000] armfdt0: using EFI runtime services for RTC
[ 1.000000] simplebus0 at armfdt0: Raspberry Pi Foundation Raspberry Pi 4 Model B
[ 1.000000] simplebus1 at simplebus0
[ 1.000000] acpifdt0 at simplebus0
[ 1.000000] acpifdt0: SMBIOS rev. 3.3.0 @ 0x39d00000
[ 1.000000] ACPI: RSDP 0x0000000038DAB018 000024 (v02 RPIFDN)
[ 1.000000] ACPI: XSDT 0x0000000038DABF18 000074 (v01 RPIFDN RPI4 00000200 01000013)
[ 1.000000] ACPI: FACP 0x0000000038DAB098 000114 (v06 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: DSDT 0x0000000038861018 0022D9 (v02 RPIFDN RPI 00000002 INTL 20230628)
[ 1.000000] ACPI: CSRT 0x0000000038DABB18 000169 (v00 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: DBG2 0x0000000038DABD98 000061 (v00 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: GTDT 0x0000000038DAB898 000068 (v03 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: IORT 0x0000000038DAB998 0000B7 (v00 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: APIC 0x0000000038DAB218 000184 (v05 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: PPTT 0x0000000038DAB498 000184 (v02 RPIFDN RPI4 00000200 EDK2 00000300)
[ 1.000000] ACPI: SSDT 0x0000000038880018 000277 (v02 RPIFDN RPI4EMMC 00000002 INTL 20230628)
[ 1.000000] ACPI: SSDT 0x0000000038880418 000244 (v05 RPIFDN RPI4XHCI 00000002 INTL 20230628)
[ 1.000000] ACPI: BGRT 0x0000000038DABE98 000038 (v01 INTEL EDK2 00000002 01000013)
[ 1.000000] ACPI: 3 ACPI AML tables successfully acquired and loaded
[ 1.000000] acpi0 at acpifdt0: Intel ACPICA 20221020
[ 1.000000] acpi0: X/RSDT: OemId <RPIFDN,RPI4 ,00000200>, AslId < ,01000013>
[ 1.000000] cpu0 at acpi0: Arm Cortex-A72 r0p3 (v8-A), id 0x0
[ 1.000000] cpu0: package 0, core 0, smt 0
[ 1.000000] cpu0: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[ 1.000000] cpu0: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[ 1.000000] cpu0: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
[ 1.000000] cpu0: L1 48KB/64B 3-way (256 set) PIPT Instruction cache
[ 1.000000] cpu0: L1 32KB/64B 2-way (256 set) PIPT Data cache
[ 1.000000] cpu0: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
[ 1.000000] cpu0: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[ 1.000000] cpu0: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[ 1.000000] cpu1 at acpi0: Arm Cortex-A72 r0p3 (v8-A), id 0x1
[ 1.000000] cpu1: package 0, core 1, smt 0
[ 1.000000] cpu1: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[ 1.000000] cpu1: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[ 1.000000] cpu1: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
[ 1.000000] cpu1: L1 48KB/64B 3-way (256 set) PIPT Instruction cache
[ 1.000000] cpu1: L1 32KB/64B 2-way (256 set) PIPT Data cache
[ 1.000000] cpu1: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
[ 1.000000] cpu1: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[ 1.000000] cpu1: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[ 1.000000] cpu2 at acpi0: Arm Cortex-A72 r0p3 (v8-A), id 0x2
[ 1.000000] cpu2: package 0, core 2, smt 0
[ 1.000000] cpu2: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[ 1.000000] cpu2: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[ 1.000000] cpu2: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
[ 1.000000] cpu2: L1 48KB/64B 3-way (256 set) PIPT Instruction cache
[ 1.000000] cpu2: L1 32KB/64B 2-way (256 set) PIPT Data cache
[ 1.000000] cpu2: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
[ 1.000000] cpu2: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[ 1.000000] cpu2: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[ 1.000000] cpu3 at acpi0: Arm Cortex-A72 r0p3 (v8-A), id 0x3
[ 1.000000] cpu3: package 0, core 3, smt 0
[ 1.000000] cpu3: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled
[ 1.000000] cpu3: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B
[ 1.000000] cpu3: Dcache line 64, Icache line 64, DIC=0, IDC=0, LoUU=1, LoC=2, LoUIS=1
[ 1.000000] cpu3: L1 48KB/64B 3-way (256 set) PIPT Instruction cache
[ 1.000000] cpu3: L1 32KB/64B 2-way (256 set) PIPT Data cache
[ 1.000000] cpu3: L2 1024KB/64B 16-way (1024 set) PIPT Unified cache
[ 1.000000] cpu3: revID=0x0, PMCv3, 4k table, 64k table, 16bit ASID
[ 1.000000] cpu3: auxID=0x10000, FP, CRC32, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add
[ 1.000000] gic0 at acpi0: GIC
[ 1.000000] armgic0 at gic0: Generic Interrupt Controller, 256 sources (247 valid)
[ 1.000000] armgic0: 16 Priorities, 224 SPIs, 7 PPIs, 16 SGIs
[ 1.000000] gtmr0 at acpi0: irq 27
[ 1.000000] armgtmr0 at gtmr0: Generic Timer (54000 kHz, virtual)
[ 1.000000] timecounter: Timecounter "armgtmr0" frequency 54000000 Hz quality 500
[ 1.000004] PEPD (BCM2854) at acpi0 not configured
[ 1.000004] CPU0 (ACPI0007) at acpi0 not configured
[ 1.000004] CPU1 (ACPI0007) at acpi0 not configured
[ 1.000004] CPU2 (ACPI0007) at acpi0 not configured
[ 1.000004] CPU3 (ACPI0007) at acpi0 not configured
[ 1.000004] USB0 (BCM2848) at acpi0 not configured
[ 1.000004] GPU0 (BCM2850) at acpi0 not configured
[ 1.000004] bcmmbox0 at acpi0 (RPIQ, BCM2849-0): mem 0xfe00b880-0xfe00b8a3 irq 65
[ 1.000004] vcmbox0 at bcmmbox0
[ 1.000004] vchiq0 at acpi0 (VCIQ, BCM2835-0): mem 0xfe00b840-0xfe00b84f irq 66
[ 1.000004] VCSM (BCM2856) at acpi0 not configured
[ 1.000004] GPI0 (BCM2845) at acpi0 not configured
[ 1.000004] bsciic0 at acpi0 (I2C1, BCM2841-1): mem 0xfe804000-0xfe80401f irq 149
[ 1.000004] iic0 at bsciic0: I2C bus
[ 1.000004] bsciic1 at acpi0 (I2C2, BCM2841-2): mem 0xfe805000-0xfe80501f irq 149
[ 1.000004] iic1 at bsciic1: I2C bus
[ 1.000004] SPI0 (BCM2838) at acpi0 not configured
[ 1.000004] SPI1 (BCM2839) at acpi0 not configured
[ 1.000004] PWM0 (BCM2844) at acpi0 not configured
[ 1.000004] plcom0 at acpi0 (URT0, BCM2837-4): mem 0xfe201000-0xfe201fff irq 153
[ 1.000004] com0 at acpi0 (URTM, BCM2836-0): mem 0xfe215000-0xfe21506f irq 125
[ 1.000004] com0: BCM AUX UART, 1-byte FIFO
[ 1.000004] BTH0 (BCM2EA6) at acpi0 not configured
[ 1.000004] RHPX (MSFT8000) at acpi0 not configured
[ 1.000004] sdhc0 at acpi0 (SDC1, BCM2847-0): mem 0xfe300000-0xfe3000ff irq 158
[ 1.000004] genet0 at acpi0 (ETH0, BCM6E4E-0): mem 0xfd580000-0xfd58ffff irq 189,190
[ 1.000004] genet0: GENETv5.0
[ 1.000004] genet0: Ethernet address dc:a6:32:31:71:32
[ 1.000004] brgphy0 at genet0 phy 1: BCM54213PE 1000BASE-T media interface, rev. 2
[ 1.000004] brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 1.000004] EC00 (PNP0C06) at acpi0 not configured
[ 1.000004] acpitz0 at acpi0 (TZ00): cpu0 cpu1 cpu2 cpu3
[ 1.000004] acpitz0: levels: critical 90.0 C, hot 85.0 C, passive 80.0 C, passive cooling
[ 1.000004] sdhc1 at acpi0 (SDC3, BRCME88C-1): mem 0xfe340000-0xfe3400ff irq 158
[ 1.000004] xhci0 at acpi0 (XHC0, PNP0D10-0): mem 0x600000000-0x600000fff irq 175
[ 1.000004] xhci0: 64-bit DMA
[ 1.000004] xhci0: xHCI version 1.0
[ 1.000004] usb0 at xhci0: USB revision 3.0
[ 1.000004] usb1 at xhci0: USB revision 2.0
[ 1.000004] sdhc0: SDHC 3.0, rev 153, caps <01210000/00000000>, PIO, 250000 kHz, HS 3.3V, re-tuning mode 1, 1024 byte blocks
[ 1.000004] sdmmc0 at sdhc0 slot 0
[ 1.000004] sdhc1: SDHC 3.0, rev 16, caps <45ee6432/0000a525>, PIO, 100000 kHz, embedded slot, HS 3.3V, re-tuning mode 3, 2048 byte blocks
[ 1.000004] sdmmc1 at sdhc1 slot 0
[ 1.000004] genfb0 at simplebus1: Simple Framebuffer (1920x1200 32-bpp @ 0x3e1f9000)
[ 1.000004] genfb0: framebuffer at 0x3e1f9000, size 1920x1200, depth 32, stride 7680
[ 1.000004] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
[ 1.000004] wsmux1: connecting to wsdisplay0
[ 1.000004] wsdisplay0: screen 1-3 added (default, vt100 emulation)
[ 1.000004] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[ 1.184933] uhub0 at usb0: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.184933] uhub0: 4 ports with 4 removable, self powered
[ 1.184933] uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.184933] uhub1: 1 port with 1 removable, self powered
[ 1.204934] cpu0: PMU interrupting on irq 48
[ 1.204934] cpu1: PMU interrupting on irq 49
[ 1.204934] cpu2: PMU interrupting on irq 50
[ 1.204934] cpu3: PMU interrupting on irq 51
[ 1.204934] IPsec: Initialized Security Association Processing.
[ 1.356160] sdmmc1: autoconfiguration error: couldn't enable card: 60
[ 1.416160] sdmmc0: 4-bit width, 50.000 MHz
[ 1.416160] sdmmc0: SDIO function
[ 1.426161] bwfm0 at sdmmc0 function 1
[ 1.426161] (manufacturer 0x2d0, product 0xa9a6) at sdmmc0 function 2 not configured
[ 1.426161] (manufacturer 0x2d0, product 0xa9a6, standard function interface code 0x2) at sdmmc0 function 3 not configured
[ 1.646164] uhub2 at uhub1 port 1: vendor 2109 (0x2109) USB2.0 Hub (0x3431), class 9/0, rev 2.10/4.21, addr 1
[ 1.646164] uhub2: single transaction translator
[ 1.646164] uhub2: 4 ports with 4 removable, self powered
[ 1.666165] umass0 at uhub0 port 2 configuration 1 interface 0
[ 1.666165] umass0: Samsung (0x04e8) PSSD T7 (0x4001), rev 3.20/1.00, addr 2
[ 1.666165] umass0: using SCSI over Bulk-Only
[ 1.666165] scsibus0 at umass0: 2 targets, 1 lun per target
[ 1.666165] sd0 at scsibus0 target 0 lun 0: <Samsung, PSSD T7, 0> disk fixed
[ 1.666165] sd0: fabricating a geometry
[ 1.666165] sd0: 1863 GB, 1907729 cyl, 64 head, 32 sec, 512 bytes/sect x 3907029168 sectors
[ 1.676165] sd0: fabricating a geometry
[ 1.676165] sd0: GPT GUID: 8093753a-7594-4410-80f2-e831b2da3002
[ 1.676165] dk0 at sd0: "EFI-system", 262144 blocks at 2048, type: msdos
[ 1.676165] dk1 at sd0: "NetBSD-root", 16777216 blocks at 264192, type: ffs
[ 1.676165] dk2 at sd0: "NetBSD-swap", 8388608 blocks at 17041408, type: swap
[ 1.676165] dk3 at sd0: "NetBSD-var", 8388608 blocks at 25430016, type: ffs
[ 1.676165] dk4 at sd0: "NetBSD-opt", 3873210368 blocks at 33818624, type: ffs
[ 1.986170] swwdog0: software watchdog initialized
[ 1.996172] WARNING: 1 error while detecting hardware; check system log.
[ 1.996172] boot device: dk1
[ 1.996172] root on dk1 dumps on dk2
[ 2.006171] root file system type: ffs
[ 2.006171] kern.module.path=/stand/evbarm/10.1/modules
[ 2.006171] WARNING: clock lost 17 days
[ 2.006171] WARNING: using filesystem time
[ 2.006909] WARNING: CHECK AND RESET THE DATE!
[ 2.006909] vchiq: vchiq_init_state: slot_zero = 0xffffc001825be000, is_master = 0
[ 2.006909] vchiq: local ver 8 (min 3), remote ver 8.
[ 2.006909] vcaudio0 at vchiq0: auds
[ 2.006909] notice: vchiq_get_state: g_state.remote->initialised != 1 (0)
[ 2.006909] vchiq: vchiq_initialise: videocore initialized after 1 retries
[ 2.006909] bwfm0: Firmware file default: brcmfmac43455-sdio.bin
[ 2.006909] bwfm0: Firmware file model-spec: brcmfmac43455-sdio.Raspberry Pi 4 Model B.bin
[ 2.006909] audio0 at vcaudio0: playback
[ 2.006909] audio0: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for playback
[ 2.006909] spkr0 at audio0: PC Speaker (synthesized)
[ 2.006909] wsbell at spkr0 not configured
[ 2.016171] bwfm0: Found Firmware file: brcmfmac43455-sdio.bin
[ 2.016171] bwfm0: NVRAM file default: brcmfmac43455-sdio.txt
[ 2.016171] bwfm0: NVRAM file model-spec: brcmfmac43455-sdio.Raspberry Pi 4 Model B.txt
[ 2.016171] bwfm0: autoconfiguration error: NVRAM file not available
[ 2.016171] bwfm0: CLM file default: brcmfmac43455-sdio.clm_blob
[ 2.016171] bwfm0: CLM file model-spec: brcmfmac43455-sdio.Raspberry Pi 4 Model B.clm_blob
[ 3.656214] ZFS filesystem version: 5
--Multipart=_Tue__9_Dec_2025_09_51_55_+0000_aWaxIfmSP8MHbTUy--
From: Sad Clouds <cryintothebluesky@gmail.com>
To: gnats-bugs@netbsd.org, port-arm-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: port-arm/57139
Date: Wed, 24 Dec 2025 08:47:12 +0000
I think I found a workaround for this issue.
It appears the issue is related to how NetBSD interacts with UEFI. If I
go into the following UEFI configuration:
"Device Manager" -> "Raspberry Pi Configuration" -> "CPU Configuration"
For "CPU Clock" there are 4 options: Low, Default, Max, and Custom.
Low selects 800MHz, Default and Max select 1500MHz. I had the
default setting which was Default. However I noticed when I select Low
then NetBSD command "sysctl -w machdep.cpu.frequency.target" can
increase CPU frequency above 800MHz but cannot decrease to anything
below 800MHz.
To work around it in UEFI I select the following options:
"CPU Clock" = Custom and "CPU Clock Rate" = 600 then press F10 to save.
Now I can change CPU frequency between 600MHz and 1500MHz
rp4-4g# sysctl machdep.cpu.frequency
machdep.cpu.frequency.target = 600
machdep.cpu.frequency.current = 600
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
rp4-4g# sysctl -w machdep.cpu.frequency.target=1500
machdep.cpu.frequency.target: 600 -> 1500
rp4-4g# sysctl machdep.cpu.frequency
machdep.cpu.frequency.target = 1500
machdep.cpu.frequency.current = 1500
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
The UEFI "CPU Clock" setting clearly states that an operating system
can override those settings. I'm not sure why on NetBSD it is only
possible to override above the minimum of what is set by UEFI and not
below it.
>Unformatted:
With 10.0 RELEASE, it seems to work for me. Please update, re-check and comment if fixed or still troubled.
[8GB RPI4, booted with traditional boot code]
# sysctl machdep.cpu
machdep.cpu.frequency.target = 1500
machdep.cpu.frequency.current = 1500
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
# sysctl -w machdep.cpu.frequency.target=600
machdep.cpu.frequency.target: 1500 -> 600
# sysctl machdep.cpu
machdep.cpu.frequency.target = 600
machdep.cpu.frequency.current = 600
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
# sysctl -w machdep.cpu.frequency.target=1500
machdep.cpu.frequency.target: 600 -> 1500
# sysctl machdep.cpu
machdep.cpu.frequency.target = 1500
machdep.cpu.frequency.current = 1500
machdep.cpu.frequency.min = 600
machdep.cpu.frequency.max = 1500
machdep.cpu.frequency.available = 600 1500
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.