From nobody Mon Jan 8 07:00:51 2024 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 4T7lMn5C6tz578f0 for ; Mon, 8 Jan 2024 07:01:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-20.consmr.mail.gq1.yahoo.com (sonic310-20.consmr.mail.gq1.yahoo.com [98.137.69.146]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4T7lMn1kd2z4TXp for ; Mon, 8 Jan 2024 07:01:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1704697267; bh=4aJvHEX0QDWoo2DAQJWz9urS9kNekFNE6yY7KmNQfMU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=n/raPYRWrEQJJ7kvW77cZ89yFG3sm/c4dOr1me6TlerN2nSCFRwJPNo/ndyajIfPPPAjb/VOBPAs/gLFtZJMvOnaOdjrXq1qMe7WhsH/g6CA7qHHrN1oj2zakWT5CFAfwEvfsXhQdFg7Ws5yNi4YwtKL1q/IAGXsoVHljgTePX/WpL0FsYeEOFsuBEcVW331CmuZx2SKarV+pi60gio+f+f4YovFgPqT2gxTEFLkkZYNz3mhX4eF6o99IvHIa+cA1bTNZ1N1yoEhWhIUob1jxhkzzCzw1u/41XqbXye5pVpEua0ZZkhH9V9hMlYIlhbeMZ5XXcvimXjICAqBRniLMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1704697267; bh=cgIOw0j66ar8a+G80G4kCkBnYp5iIz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tIddbQ Ky_J4KvLMJAxFuVn7LWgZjnEtcrut8caMeJExrFXaLEA1bpz.PkewavvbSGotH1mZZQbpEO4IUvo HSmIAV9H_wclkRxPpLRfeje2JkBcj4ji4cIUZLl7prBgutznVSiphI9RNCU02Mg_GOdwhnJucgqY 56vjSyayc6IzBfWCxu9G7ljpLpHW70Dcr_3OyDbunLzHSKmQm6ZD4ux6om1vRoUWNhoS3O_CMAx_ 4rgybDEshGN0yQhhrXs.5otUfITdP5E43mS45LgA7tX5ilV15a1T2doYhWpl35nDGPQY97VDcPJu 8cTuVt_uOfxO.VhAQ7WjnQjHuYStsqEvLEEsS6uvZrcckSr3_nv1oR35Nyo5yg5grg2LSz5gUrJX 7C.vPh5Wor0bCWUGHzIT1KTtXMFYjaWx0vA62hMkVy7e4mOKUA3iudpHGDmm_NqBQL2yFCpTR3cI RdiDvML3qG7J1Y7LxEI.9TIDvtFwBTnPoaPBxYywzKD1bQPVsvOvomCu9e8m4Jh9tGCRfqL_Rlu1 scl1QimqyO1IfPVzFja9wFEgTHagbAYzrVL7LkEA53V34B5RfG5Qi1vxdknvjxdFAT6YX_aGiZw- - X-Sonic-MF: X-Sonic-ID: 159038ed-1e1e-4a6d-a8e8-641e69eaea99 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 8 Jan 2024 07:01:07 +0000 Received: by hermes--production-gq1-6949d6d8f9-ghhkt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 663a2f14ea290315e662933ae0950131; Mon, 08 Jan 2024 07:01:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: enabling powerd on RPi From: Mark Millard In-Reply-To: Date: Sun, 7 Jan 2024 23:00:51 -0800 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <136EA428-CC30-4CF4-BE65-30B0CC8656AF@karels.net> To: void X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4T7lMn1kd2z4TXp X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Jan 7, 2024, at 09:26, void wrote: > On Thu, Jan 04, 2024 at 07:53:12AM -0600, Mike Karels wrote: >> On 28 Dec 2023, at 13:11, Mike Karels wrote: >>=20 >>> I am looking at enabling powerd by default on the Raspberry Pi 4 and = maybe >>> others. There is a bug from 2021 on the subject which has gotten = some recent >>> discussion, = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256836. Also, >>> problems come up from time to time about performance problems = because people >>> don't know to enable powerd. It makes FreeBSD look much slower than = Linux. >>>=20 >>> The simplest action is to enable powerd by default on the = arm64-aarch64-RPI >>> images. This would affect RPi 4 and variants, also RPI 3* and later = RPi 2. >>> I enabled powerd on an RPi 3B+, and it seems to have no issues; it = seems >>> to work. Does anyone know of a disadvantage of enabling powerd on = RPI >>> images for all targets? The alternative would be to configure at = the first >>> boot, although I'm not positive of a definitive way to identify the = RPi >>> variants. Maybe just looking for a dev.cpu.0.freq sysctl node would >>> suffice. >>>=20 >>> If no one objects, I will make changes to enable powerd on RPI = snapshots >>> for 15-current, and we can see what happens. >>=20 >> My change to enable powerd for all 64-bit Raspberry Pi systems using = the >> arm64-aarch64-RPI image is in https://reviews.freebsd.org/D43296. = There is >> also a review that splits RPi4 from RPi3 (etc); it is >> https://reviews.freebsd.org/D43141. Comments welcome. >=20 > I think powerd by default would be advantageous in most use cases. It = would be particularly useful in a battery-powered context. Yep. But it may be worth a note mentioning the subject area with the issue once it is isolated: avoiding unnecessary surprises that are messy to track down to a specific type of context. > I used to use powerd a lot, but it's not needed for my own uses right = now, so it's disabled and i overclock by firstly having really efficient = cooling and then setting config.txt like this >=20 > hdmi_safe=3D0 > armstub=3Darmstub8-gic.bin > gpu_mem=3D16 > over_voltage=3D6 > arm_freq=3D2147 > gpu_freq=3D750 > force_turbo=3D1 I do somewhat similarly for RPi4B's but use 2000, not 2147: 2000 works reliably on all the RPi4B's I've access to, Rev 1.1, 1.4, and 1.5 examples involved. 2147 or 2100 does not work on all of them. I also use a power supply that has a little more curremnt margin than the official ones and that contributed to my being able to use 2000 uniformly, given what I plug into the USB3 port as types of boot media. I also control the memory speed to be fixed at the fastest, no matter if the RPi* firmware vintage in use does so automatically or not. Various vintages definitely do not. > # sysctl dev.cpu.0 > dev.cpu.0.temperature: 51.0C > dev.cpu.0.freq_levels: 2147/-1 > dev.cpu.0.freq: 2147 > dev.cpu.0.%parent: cpulist0 > dev.cpu.0.%pnpinfo: name=3Dcpu@0 compat=3Darm,cortex-a72 = dev.cpu.0.%location: dev.cpu.0.%driver: cpu > dev.cpu.0.%desc: Open Firmware CPU >=20 > My context here is permanently connected to the recommended PSU, = headless with serial console > and UPS, and it needs to be responsive, which it is with this = overclock. > If I were to use powerd in this context, it would never realise the = full overclock > and shows dev.cpu.0.freq_levels: 2100/600. >=20 > Connected to it is a usb<>ttl serial cable on the rpi4's pins which is = connected to a rpi2b+ > running 12.2-RELEASE which is used as a "console server". There is no = console scrambling. > Console is invoked on the rpi2b+ with 'cu -l cuaU1 -s 115200' =3D=3D=3D Mark Millard marklmi at yahoo.com