From owner-freebsd-arm@freebsd.org Wed Sep 21 11:22:18 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3F36BE338B for ; Wed, 21 Sep 2016 11:22:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id CDB101E5C for ; Wed, 21 Sep 2016 11:22:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id CD154BE338A; Wed, 21 Sep 2016 11:22:18 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CCBE1BE3389 for ; Wed, 21 Sep 2016 11:22:18 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82CBE1E5B for ; Wed, 21 Sep 2016 11:22:17 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.81.13]) by kabab.cs.huji.ac.il with esmtp id 1bmfbT-0004aI-62; Wed, 21 Sep 2016 14:22:15 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: ALL WINNER high temp. stop From: Daniel Braniss In-Reply-To: <7BFD291A-E619-4DE4-9BBB-C1F40E81F12A@cs.huji.ac.il> Date: Wed, 21 Sep 2016 14:22:15 +0300 Cc: arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20160917171911.a2ec80da747ba373ba3d1b4a@bidouilliste.com> <5ADFE16E-FD60-45B1-8CF1-6FFC10BABBDE@cs.huji.ac.il> <20160917195544.a2a8bbdb113029700fa7642d@bidouilliste.com> <588E44BB-40BF-40B8-9C5A-BA025AB87E00@cs.huji.ac.il> <4F7891B0-FBD7-451C-BA42-50F872804C95@cs.huji.ac.il> <08E5651B-A28E-4BE8-803B-650CD2434979@cs.huji.ac.il> <01D85517-15ED-46FF-8C11-5A774EC1262F@cs.huji.ac.il> <7BFD291A-E619-4DE4-9BBB-C1F40E81F12A@cs.huji.ac.il> To: Jared McNeill X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2016 11:22:19 -0000 > On 21 Sep 2016, at 14:13, Daniel Braniss wrote: >=20 >=20 >> On 21 Sep 2016, at 13:49, Jared McNeill = wrote: >>=20 >> CPU frequency scaling is supported now. Have you added operating = points to the dts? Without a heatsink or fan, you need to set a = reasonable set of operating points. >>=20 >> 64C does seem quite low, the thermal driver uses the power-on default = temperature for the shutdown temperature though (which should be > = 100C). >>=20 >> Are you sure you are using the correct compat string for the thermal = driver in your dts? Different SoCs use a different formula for reading = the temperature. >=20 > I=E2=80=99m using what you sent me :-) > = https://github.com/jaredmcneill/freebsd/blob/allwinner-h3/sys/boot/fdt/dts= /arm/orangepi-plus-2e.dts#L12 = >=20 here is my dts for the orange-one: /*- * Copyright (c) 2016 Jared McNeill * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in = the * documentation and/or other materials provided with the = distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' = AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR = PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE = LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR = CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE = GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, = STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY = WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY = OF * SUCH DAMAGE. * * $FreeBSD$ */ #include "sun8i-h3-orangepi-one.dts" / { clocks { ths_clk: clk@1c20074 { #clock-cells =3D <0>; compatible =3D "allwinner,sun8i-h3-ths-clk"; reg =3D <0x01c20074 0x4>; clocks =3D <&osc24M>; clock-output-names =3D "ths"; }; }; soc { emac: ethernet@1c30000 { compatible =3D "allwinner,sun8i-h3-emac"; reg =3D <0x01c30000 0x104>, <0x01c00030 0x4>; reg-names =3D "emac", "syscon"; interrupts =3D ; resets =3D <&ahb_rst 17>; reset-names =3D "ahb"; clocks =3D <&bus_gates 17>; clock-names =3D "ahb"; #address-cells =3D <1>; #size-cells =3D <0>; status =3D "disabled"; }; =09 sid: eeprom@01c14000 { compatible =3D "allwinner,sun8i-h3-sid"; reg =3D <0x01c14000 0x400>; }; rtp: rtp@1c25000 { compatible =3D "allwinner,sun8i-h3-ts"; reg =3D <0x01c25000 0x400>; interrupts =3D ; clocks =3D <&bus_gates 72>,<&ths_clk>; clock-names =3D "ahb", "ths"; resets =3D <&apb1_rst 8>; #thermal-sensor-cells =3D <0>; }; }; }; &mmc0_pins_a { allwinner,pull =3D ; }; &pio { emac_pins_rgmii_a: emac_rgmii@0 { allwinner,pins =3D "PD0", "PD1", "PD2", "PD3", "PD4", = "PD5", "PD7", "PD8", "PD9", "PD10", "PD12", = "PD13", "PD15", "PD16", "PD17"; allwinner,function =3D "emac"; allwinner,drive =3D ; allwinner,pull =3D ; }; emac_phy_reset_pin: emac_phy_reset_pin@0 { allwinner,pins =3D "PD6"; allwinner,function =3D "gpio_out"; allwinner,drive =3D ; allwinner,pull =3D ; }; }; /* * Board-specific stuff here */ / { /* model =3D "Xunlong Orange Pi One"; compatible =3D "xunlong,orangepi-one", "allwinner,sun8i-h3"; */ reg_gmac_3v3: gmac-3v3 { compatible =3D "regulator-fixed"; pinctrl-names =3D "default"; pinctrl-0 =3D <&emac_phy_reset_pin>; regulator-name =3D "gmac-3v3"; regulator-min-microvolt =3D <3300000>; regulator-max-microvolt =3D <3300000>; startup-delay-us =3D <100000>; enable-active-high; gpio =3D <&pio 3 6 GPIO_ACTIVE_HIGH>; }; }; &emac { phy-supply =3D <®_gmac_3v3>; phy-mode =3D "mii"; phy =3D <&phy1>; allwinner,leds-active-low; status =3D "okay"; allwinner,use-internal-phy; resets =3D <&ahb_rst 17>,<&ahb_rst 66>; reset-names =3D "ahb", "ephy"; clocks =3D <&bus_gates 17>,<&bus_gates 128>; clock-names =3D "ahb","ephy"; phy1: ethernet-phy@1 { reg =3D <1>; }; }; &ehci2 { status =3D "okay"; }; >=20 >>=20 >> Cheers, >> Jared >>=20 >> On Wed, 21 Sep 2016, Daniel Braniss wrote: >>=20 >>> hi all, >>> now that there is thermal control, trying to compile e.g. from ports >>> portmaster, heats up the cpu, which somewhere around 64C >>> decides to halt. >>> Now, I remember some weeks ago, with a kernel version >>> without the thermal stuff compiling python and all went ok, >>> so >>> Q: what is the thermal high water mark? >>> Q: are the latest changes overheating the cpu, or is the thermal = driver over >>> cautious? >>>=20 >>> danny >>>=20 >>>=20 >>>=20 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"