From nobody Thu Dec 28 19:11:42 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 4T1J5z2KV1z54QMr for ; Thu, 28 Dec 2023 19:11:51 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T1J5y2JNmz4Nbg for ; Thu, 28 Dec 2023 19:11:50 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=karels.net header.s=mail2 header.b="aU+/y3B/"; spf=pass (mx1.freebsd.org: domain of mike@karels.net designates 3.19.118.201 as permitted sender) smtp.mailfrom=mike@karels.net; dmarc=none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.17.1/8.17.1) with ESMTP id 3BSJBhhf021615 for ; Thu, 28 Dec 2023 13:11:43 -0600 (CST) (envelope-from mike@karels.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karels.net; s=mail2; t=1703790703; bh=5XtPxnxyOsjgtAAr6yi4pc9qzhDwuAsVcsWsi4STXzw=; h=From:To:Subject:Date; b=aU+/y3B/R6e+S6aKssAl1iIclXz6+ft5z8ajhZ+re++WySpliEWAwj4Plplzh37QW RGtYB1phRLf5GPeZMXR6qRVoX1uUA6mak459qCZHc1btTZ9dndQQ6bLcydJppJKirZ IVFARI7TWgICF0E88X6kywsRVLeC90VwxH8ICRA7hLjnOw5BbiNsAJRncjchmk/5sF Ql2UM7vVi62k7MCNGRa9b3xru+RxQ3pl+FAMzgb4FV5REMwXDye6IJ1gE/JlDAAMvT b1KubF3emOXqMnMSqO2BfYdTTDGiwE9AOrY8g6lwGpjFdg/DRZV6/7es+gRY4xvr6y mfXxJOKrrX2KQ== Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id gK9ECW/IjWVtVAAAs/W3XQ (envelope-from ) for ; Thu, 28 Dec 2023 13:11:43 -0600 From: Mike Karels To: freebsd-arm Subject: enabling powerd on RPi Date: Thu, 28 Dec 2023 13:11:42 -0600 X-Mailer: MailMate (1.14r6015) Message-ID: 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 Content-Type: text/plain 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.996]; R_DKIM_ALLOW(-0.20)[karels.net:s=mail2]; R_SPF_ALLOW(-0.20)[+ip4:3.19.118.201]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[karels.net:+]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_ALL(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.16.0.0/14, country:US]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[mike]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[karels.net]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4T1J5y2JNmz4Nbg X-Spamd-Bar: --- 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=256836. 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. 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. If no one objects, I will make changes to enable powerd on RPI snapshots for 15-current, and we can see what happens. Mike