From owner-freebsd-arm@freebsd.org Thu Mar 8 05:18:15 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11E3DF33A55 for ; Thu, 8 Mar 2018 05:18:15 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 76F24859D3 for ; Thu, 8 Mar 2018 05:18:14 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id b59aad4e; Thu, 8 Mar 2018 06:18:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=bS6g6ovSGHh++ZJKorIbU+NMYvk=; b=TP4OZ37YdNFjcQa0tCsoJI+OZdqH E9yR0LSC4d9BTN80hnRxqTJzHg7ROA0IHvNvJddp+xs+5iYZ6KZtOiZSi+9NhUJe GAYODTLFkern0eVZ+2BfZIIvzILdyNqctqqYGGxkcbHGDX6R66QRkIOxSgQARLLp shRQSbfOZ6ao7Xc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=rFhwU4jngehD3s2+n18fdQoSO8ku2V0Av4nO2qBxNKu2TQBkA+yk0uXz k0emm6k4FeIY2I/1CNCbkAlTk+Yw8YdwPiiNj0tM0LKScNBYtIX8ISY+Ey41OoB8 rYqN5re3NdlTgn444OddZCoCMsQ5GG9xiK00b9ro82gulkqkNNE= Received: from arcadia (ai126160036254.39.access-internet.ne.jp [126.160.36.254]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 261b9e6e TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 8 Mar 2018 06:18:11 +0100 (CET) Date: Thu, 8 Mar 2018 06:18:06 +0100 From: Emmanuel Vadot To: Luc Hondareyte Cc: Luc Hondareyte via freebsd-arm Subject: Re: cpufreq support on Allwinner H3 Message-Id: <20180308061806.d9c9c7282d1a956d86b6bb22@bidouilliste.com> In-Reply-To: <5332936b-f38b-ca7a-03d9-dfc7c92e2727@laposte.net> References: <5332936b-f38b-ca7a-03d9-dfc7c92e2727@laposte.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 05:18:15 -0000 On Tue, 6 Mar 2018 20:59:37 +0100 Luc Hondareyte via freebsd-arm wrote: > Hi, >=20 > I've just build 12-current for Allwinner H3=A0 (armv7) and it seems that= =20 > cpufreq support is missing (orangepi or nanopi): There is no opp table (freq<->voltage table) in the DTS that's why it's not working. I think I've seen patches on the linux-arm kernel mailing list to add them but even with thoses we will need support for the v2 opp. > root@allwinner-h3:~ # service powerd onestart > Starting powerd. > powerd: no cpufreq(4) support -- aborting: No such file or directory > /etc/rc.d/powerd: WARNING: failed to start powerd >=20 > So, on nanopi neo, it's slowdown (not on orange-pi that seems to run at=20 > full speed). I am using a custom kernel conf that just contains: >=20 > include GENERIC > nooptions=A0=A0=A0=A0=A0=A0 INVARIANTS > nooptions=A0=A0=A0=A0=A0=A0 INVARIANT_SUPPORT > nooptions=A0=A0=A0=A0=A0=A0 WITNESS > nooptions=A0=A0=A0=A0=A0=A0 WITNESS_SKIPSPIN > nooptions=A0=A0=A0=A0=A0=A0 BUF_TRACKING > nooptions=A0=A0=A0=A0=A0=A0 DEADLKRES > nooptions=A0=A0=A0=A0=A0=A0 FULL_BUF_TRACKING >=20 You can use the GENERIC-NODEBUG for that --=20 Emmanuel Vadot