Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3481706ybz; Mon, 20 Apr 2020 03:43:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKRFX2sq9K22gr3c+f5icimc6H2yj0kFFcf4FjfmP4hz4lnMZblzgHaJBemtjMyCGHMOFMX X-Received: by 2002:a17:906:5958:: with SMTP id g24mr15940632ejr.58.1587379390280; Mon, 20 Apr 2020 03:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587379390; cv=none; d=google.com; s=arc-20160816; b=IHpL9uWbVeoCpeKlpX37BuOsFFGdVuUpChDiNJcZBMY82QwH9YlbTT1VjX3fBJKNKZ 2NHLylUHuFlzzVXPY5OuKPVohMurnbq3kqhOa1PHiZve2/ZhT7WAhpqQXnQXqGSPi6k9 B7BDULEF7LOcFomNJR7fcrNnX3AYCetTRSAga9tVZftf798pDYkZL5NZgIFNrko5QOdY L3u5WggAyroEIKltfMSca5tQwwFbqyQGNbpVjOwjGLKZqF/TdH56U0FuzjhLqRbQsHoy 2l4vGlEck2WbI03btzdzgWgMyNRoaY+y6IxLv7rdA0P4K7Q+jO2sEfLIr/i1vHvqm8UJ Kwrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=XmrtQWL6ADr5xu9et3agAadkPjibIposAcoa3gQmZgk=; b=ysU0DxVFvoV3ZBkGi7x7NBEiRZ9NalTrEUzXZN4uwmOeLHaIICwsC65s1D8Fz2kj8+ 4Rcz/x1qdx9tK6Ra3kWfDn7G34AcInOQygeVg4Ub94iw6BTDyNIF0RXCzf4bUlkEZlHd UU64SRm7cXRbEbqNdNHtvxqDK/r6aTdWiKBSVAFO0tHBarRJWNZUfTDV+NUqHx6gNoni 62pctDbUYuLBDGvlDcI6LILzSZbxY2hLNA7eNmk3QWdkdpyhc2S4/BwJE3+HGvR/2uZ2 5uc6lhc8S9RyG0bHPvEPbwTDAvwPjiYRn7gPsDUPY6f2eAtRj3NkzFdJklv+IOcWRF9e PXZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="lo/nsXDi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca25si274602edb.389.2020.04.20.03.42.47; Mon, 20 Apr 2020 03:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="lo/nsXDi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726100AbgDTKja (ORCPT + 99 others); Mon, 20 Apr 2020 06:39:30 -0400 Received: from vps.xff.cz ([195.181.215.36]:53552 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgDTKja (ORCPT ); Mon, 20 Apr 2020 06:39:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1587379168; bh=3JRQF0O3I0HdGeUd7K/NKhUR4du8lhknE+/rA7T8Zt8=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=lo/nsXDihOXxSgFONiiZSxKacqThKmQwRJzPH0c9i82cpOUg6AA8DobDnPl907DXK yag95t79gqoJpHulcgLzU5mBN6LR7Acrlg3e5O7p9y+bYhah0hO+0DEIxnHVRIgI/F 83UqnrTkPe1NSo+6/f22xh4cx95o+JhPzwC2S29E= Date: Mon, 20 Apr 2020 12:39:27 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Maxime Ripard Cc: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi Subject: Re: [PATCH v3 0/7] Add support for Allwinner H6 DVFS Message-ID: <20200420103927.uvzotrolz2inz6q2@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Maxime Ripard , =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi References: <20200419135011.18010-1-peron.clem@gmail.com> <20200420084547.q5xqlbnmug7l45p2@gilmour.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200420084547.q5xqlbnmug7l45p2@gilmour.lan> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Mon, Apr 20, 2020 at 10:45:47AM +0200, Maxime Ripard wrote: > Hi, > > On Sun, Apr 19, 2020 at 03:50:04PM +0200, Clément Péron wrote: > > Now that required drivers are merged we can contibute on DVFS > > support for Allwinner H6. > > > > This serie is based on Yangtao Li serie[0] and Ondřej Jirman work[1]. > > > > Most of the OPP tables are taken from original vendor kernel[2]. > > Plus there are new CPU frequencies at 1.6GHz, 1.7GHz and 1.8GHz. > > > > I wrote a simple script to randomly set a frequency during > > a random time[3]. This script is quite stressfull and set some high > > frequency without checking temperature. This can result on behavior > > that whould not occurs with the real cpufreq framework. > > As Maxime point out I also tested with cpufreq-ljt-stress-test > > (found here https://github.com/ssvb/cpuburn-arm). > > This script doesn't trigger any issue. > > I also test that that offlining CPU0 and doing DVFS on other CPUs > > works. As CPU regulator is only set for CPU0. > > > > The GPU devfreq was drop as the regulator is still not properly > > drive by panfrost driver[4]. > > I will re-introduce it later. > > > > Ondřej Jirman has an Orange Pi 3, Jernej has a PineH64 and a Tanix > > TX6 boards and I have a Beelink GS1 board so I have enable these > > boards. But CPU Devfreq is really touchy has it depends on: > > board design, SoC speed_grade and environement which can affect > > thermal cooling and have different behavior for different user. > > > > If people can test this serie and give feedback, I will try to > > introduce this in LibreElec tree, so LE community can test it. > > Applied all of them, thanks! Please also apply "[PATCH v2 1/7] arm64: dts: allwinner: h6: Add clock to CPU cores" from the v2 series, otherwise cpufreq will not work. I can also send a missing patch adding the trip points, and cpu as a cooling device, that I linked in my other reply to this patch series afterwards, if Clément wants. regards, o. > Maxime