From owner-freebsd-arm@freebsd.org Tue Oct 25 19:39: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 7AC7CC22E33 for ; Tue, 25 Oct 2016 19:39:18 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ED44B3EE for ; Tue, 25 Oct 2016 19:39:16 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Tue, 25 Oct 2016 21:39:14 +0200 id 00EC200D.580FB4E2.0000C747 Date: Tue, 25 Oct 2016 21:39:13 +0200 From: Milan Obuch To: Jared McNeill Cc: freebsd-arm@freebsd.org Subject: Re: aw_thermal breakage on Allwinner H3 SoC Message-ID: <20161025213913.310b502e@zeta.dino.sk> In-Reply-To: <20161025202609.0958c55d@zeta.dino.sk> References: <20161024165820.16e6dd6f@zeta.dino.sk> <20161025180314.38ea1e96@zeta.dino.sk> <20161025202609.0958c55d@zeta.dino.sk> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; i386-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Tue, 25 Oct 2016 19:39:18 -0000 On Tue, 25 Oct 2016 20:26:09 +0200 Milan Obuch wrote: > On Tue, 25 Oct 2016 18:03:14 +0200 > Milan Obuch wrote: > > > On Tue, 25 Oct 2016 12:12:15 -0300 (ADT) > > Jared McNeill wrote: > > > > > Does this patch help? It uses the same values as the BSP for > > > sun8iw7p1 found here: > > > https://github.com/friendlyarm/h3_lichee/blob/master/linux-3.4/drivers/thermal/sunxi-temperature.c#L1287 > > > > > > With this patch my NanoPi NEO shows around 39C when idle. > > > > > > Cheers, > > > Jared > > > > > > > Hello, > > > > in my case it shows around 60 degrees now, but I have no heatsink > > attached. So it looks like it helped, thanks. > > > > I will let it run for some time what happens. > > > > ... well, it shuts down itself pretty quickly. Approx. in 15 minutes. > > Milan > One more observation: booting verbose shows following aw_thermal0: mem 0x1c25000-0x1c253ff irq 29 on simplebus0 aw_thermal0: #0: alarm 42C hyst 15C shut 65C which is for me wrong - shutdown temperature 65 degrees is unacceptably low. Milan