Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3251518yba; Tue, 16 Apr 2019 07:41:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDS30UG+f4SRsIbDnS70kDILiczRAw+8LhmvuUho522Twud8E6eEvsTlGhV7KO8448krA5 X-Received: by 2002:a17:902:9043:: with SMTP id w3mr83111367plz.101.1555425690875; Tue, 16 Apr 2019 07:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555425690; cv=none; d=google.com; s=arc-20160816; b=ofH8YEhX2xi/mbgfBRrEUFlM/kttkT3KuwTetUg9WYx5puXq9mNqWmqtq8I0cL+3UE 6NpwygGdKdEPeI48uBuDeVnF3WLmtWntc1b6ZgbDSLH3hX9L6OlAfKCgWklrK5gRNBeI sef+XCo02/fC/6+8JxifkivW8aOB+Dc5zj71Xr6qZVx+yBejov96efqZs62GvkBRGECd +EugXh8KWD4TtiZWDhe4VUmWkXY9hG7xrX0e5D+9bmt0XnXN7QDdlWjIn2krMar0/xo5 t46K3htoSpRea5vZUfzk7I18e5Je1WBalts0vvzJdwz+1N7J8woWsnVjlEoqOhqT6dm6 kDCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=G2x9v5SgENGnSRUr1tDFEE7imz6Sn30s9pgACIadTQo=; b=0rJqhpj4hbnWEMxXlEg4M1Cz8x1vh9igSQ0mu1bJQzZ1J27gs3znHAM98M7zLYfY6C BVve4IVUdt/DQpCe1pqDpwxHQ5X0DH8yZr7b81i7+32g710AuG/msX3duh0t6DX3DQos UzG0600/9qkxdOMw+FSzKqS652zCb6cLrqvkL7YKmA/xCcbf9NivdFO7n/oaQJers5zG fUFCfRhXAvxRJoul+FGoDnkYlNRWLEgDfo9Fi1s7Oa8xBtNGWSs62XQX5qxBiXq4IJXV 0+3QxJVTMzAFiXkvscDaF7DE5ALU47AoX8fA515dxFJgay/fSpIJRxSv3Em4dMnCg6hc mkYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b="a1Af/8Mj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q197si47768770pgq.411.2019.04.16.07.41.14; Tue, 16 Apr 2019 07:41:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b="a1Af/8Mj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729640AbfDPOir (ORCPT + 99 others); Tue, 16 Apr 2019 10:38:47 -0400 Received: from vern.gendns.com ([98.142.107.122]:39850 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfDPOiq (ORCPT ); Tue, 16 Apr 2019 10:38:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=G2x9v5SgENGnSRUr1tDFEE7imz6Sn30s9pgACIadTQo=; b=a1Af/8MjWfDTnQgwQiBmbDmARG EQtqTvOcrElk3unPWDSnJ4cNuxJg08A1u+Ktt/DDrKIo0Lc+IswfiCMFt/yniUEZkhgU+QheHUNVK OreKerHLZqAcQiq9w7VeLgLbASQ+PKlr6sFhzO+xSr4faKODN3DXxyimYMoZMutFjZdq5vFtwHIZc J4IMlZMqNdmldag79y8kBfuBw2EzjsULAV9C5WVQu4RE4rDijRMJ5PcbRBkHeK041l3bBtct5G/G4 ozfjUXeLxUtEM62p7hVE+E/ardkJEn9cYqUA9tQLzth5kN7zTHvgHTaZ0MaxlU954ZNdotEOZbdus MpTN1RkQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:56076 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1hGPES-00067M-6M; Tue, 16 Apr 2019 10:38:44 -0400 Subject: Re: [PATCH v3 1/3] ARM: dts: da850: add cpu node and operating points to DT To: Bartosz Golaszewski , Sekhar Nori , Adam Ford Cc: Kevin Hilman , Rob Herring , Mark Rutland , Linux ARM , devicetree , Linux Kernel Mailing List , Bartosz Golaszewski References: <20190408075924.2284-1-brgl@bgdev.pl> <20190408075924.2284-2-brgl@bgdev.pl> <5f72a26b-428a-c50e-cb6a-7c888ea22329@ti.com> <3f6c906b-53b0-8284-bf4d-9b404f341e7b@ti.com> <6ff5711c-b607-1f3a-e362-709b53762179@ti.com> From: David Lechner Message-ID: <06d2ab37-1d79-e1d3-b597-e69c99527c94@lechnology.com> Date: Tue, 16 Apr 2019 09:38:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/19 3:37 AM, Bartosz Golaszewski wrote: > pon., 15 kwi 2019 o 12:21 Sekhar Nori napisał(a): >> >> On 12/04/19 9:01 PM, Bartosz Golaszewski wrote: >>> pt., 12 kwi 2019 o 15:53 Sekhar Nori napisał(a): >>>> >>>> On 12/04/19 5:41 PM, Bartosz Golaszewski wrote: >>>>> pt., 12 kwi 2019 o 13:26 Sekhar Nori napisał(a): >>>>>> >>>>>> Hi Bartosz, >>>>>> >>>>>> On 08/04/19 1:29 PM, Bartosz Golaszewski wrote: >>>>>>> From: David Lechner >>>>>>> >>>>>>> This adds a cpu node and operating points to the common da850.dtsi file. >>>>>>> >>>>>>> Additionally, a regulator is added to the LEGO EV3 board along with >>>>>>> some board-specific CPU configuration. >>>>>>> >>>>>>> Regulators need to be hooked up on other boards to get them working. >>>>>>> >>>>>>> Signed-off-by: David Lechner >>>>>>> Signed-off-by: Bartosz Golaszewski >>>>>> >>>>>> I remember you mentioning about some problems using OCHI and cpufreq >>>>>> together. Are those resolved now? CPU PLL on DA850 can affect other >>>>>> peripheral clock frequencies too. So enabling it should really be a >>>>>> per-board decision. >>>>>> >>>>> >>>>> The problems are still there. I've never been able to find the >>>>> culprit, but it also occurs on TI BSP in the same way (a couple >>>>> cpufreq transitions will make the controller unresponsive). >>>> >>>> Is that on LCDK as well? As I recall cpufreq was never enabled on LCDK >>>> in TI BSP. >>>> >>> >>> Yes, I just verified that the bug occurs on LCDK with patches from this series. >>> >>>> If the OHCI problem is present on LCDK, then there is a user visible >>>> regression on mainline after this patch. Lets enable cpufreq in LCDK >>>> only if all working peripherals keep working afterwards. >>>> >>> >>> The OHCI driver doesn't register any cpufreq transition notifier >>> callbacks. I can't really find anything in the datasheet, but I'm >>> wondering if we shouldn't do something similar to what the driver for >>> davinci i2c controller does. I'll try a couple things tomorrow. >> >> Even if OHCI issue is fixed, with a fixed regulator like on LCDK, I am >> not sure the benefits of just frequency scaling will be justifiable enough. >> >> Fixing the OHCI issue may help in other boards like da850-evm use it >> though. So that will be a good thing. >> > > I've been trying different things, like suspending the device before > the transition, resetting the controller or playing with the clock > during transitions but it always results in the same kind of error: > > ohci-da8xx 1e25000.usb: frame counter not updating; disabled > ohci-da8xx 1e25000.usb: HC died; cleaning up > usb 1-1: USB disconnect, device number 2 > > If you have any idea - let me know, otherwise I'll give up. > > If we agree on the direction of these patches, then I can go with a > single enabled OPP for lcdk (456 MHz) and all OPPs up to 375 MHz > enabled for da850-evm. > > David - do you want to keep the lego board as is? Yes, I think so. Even if we can't use CPU frequency throttling because of the USB issue, I think it would still be nice if we could use this to increase the frequency once during early boot so that we can run faster than what the bootloader set. I've actually been running one of my EV3 bricks at 456MHz for almost a year now without noticing any problems. (This is of course out of spec since we only have 1.2V so I'm not saying we should add that operating point to the mainline kernel.) > > Bart > >> How do you feel about keeping all OPPs disabled by default in da850.dtsi >> and enabling only the ones that make sense for a board in .dts? >> >> Empty OPP table is illegal, so this does mean that every board must >> enable at least one OPP. >> >> Thanks, >> Sekhar