Received: by 10.223.176.5 with SMTP id f5csp2938324wra; Thu, 1 Feb 2018 08:18:50 -0800 (PST) X-Google-Smtp-Source: AH8x224SDGkZCPLBtZoHhgyAWe4CKZOkvmJLRAxe1+ny9cU9p1XsymxHon9inMPIcwlD/gKwBkhH X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr26842524plp.118.1517501930541; Thu, 01 Feb 2018 08:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517501930; cv=none; d=google.com; s=arc-20160816; b=Sb1CqQjr9cBkQBHMB60jXbp+8g5RmXGmbzo0lypk3K7hb7RRR2pBEuwuygHNOl5k6l YRZUel/r1GYJmOCpM6BJocEyeL6OAmtXfTDgcYQnBvL4yD+ApFtrV4jTSauo1PmHk7zc eBkFURXastLBSISoc+oeR/0eeSiLNZz8KOX9qyOf7GDdYYyXwECkzfPWNScbFun6z9Py YF6V7s8Wq3eReHmGMvDvXkEzD6j8DxLvWHqweWJuw/1QS3zDsaaKkiEMwkSTOyStHO8h YcoNQ4By3SnK6uPL01grE/PLbGeJn3CxxBJVzOv20Ukg9BbdTxA0NZ4h7bzyLVRdD1V8 znmw== 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 :arc-authentication-results; bh=r4m7Wy3nNVr4MnVveZ1Sa5kF3lQSdpsVeXdteV46rCI=; b=JXptc40uOQnXb1ETxIcaBg9ZBd5vqclC3tKXTlaoeSdk0CtrzoqrSn/zOhb1tMNrdU AK8s/P+pFkzeEGCGvMz3qHYHCFLohXdnPsa0T9WNi0auoks6RsJHPs19l9fnBrl6Yf6o M44Z9tMRN1XfkQ3LX9vXwyE2YkCTHx0PATE1A9gjM78D9seyyCdtwIknakl8yXyOcqWK LquWbQD4OD0eIiclztqIIouQVi693qRIVrr5oN5CHMBbRyznkIfcf7cMgdD0eeXGTiFo VcLwZnOTPm+xVzH2SWuAd78eKgSHqHgQjs5xVm+83NPfnGKjdBHGUdee8I9NY92IMRWT MJ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=OTytBzBP; 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 v65si13146017pgb.238.2018.02.01.08.18.35; Thu, 01 Feb 2018 08:18:50 -0800 (PST) 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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=OTytBzBP; 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 S1752814AbeBAQRS (ORCPT + 99 others); Thu, 1 Feb 2018 11:17:18 -0500 Received: from mail.micronovasrl.com ([212.103.203.10]:47240 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718AbeBAQRP (ORCPT ); Thu, 1 Feb 2018 11:17:15 -0500 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id B812CB00BC3 for ; Thu, 1 Feb 2018 17:17:13 +0100 (CET) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1517501832; x=1518365833; bh=483IeFilar27oWOLfGM8tm2orxDky8+Zlw2 FdmJ4srU=; b=OTytBzBP45Eo6njg2BRVoDc9VEKjdRbGQW3Z9B1nq7v93ZoiJSi FQqc8o6sWdQt+MSgYXywCsX9dRm5CBU9/F22lbE9iUxVJVqv2x+bdVkVqDgQERwe pLLzimdZjDg1iqlmwhelmrPqeTYC+HHD8m2xDwK5iTDiXnaNuv8mpI18= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3CVL8dpoSGzd for ; Thu, 1 Feb 2018 17:17:12 +0100 (CET) Received: from [192.168.2.69] (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id E3040B00379; Thu, 1 Feb 2018 17:17:11 +0100 (CET) Subject: Re: [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali changing dclk frequency To: Maxime Ripard Cc: Chen-Yu Tsai , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <1517354639-92978-1-git-send-email-giulio.benetti@micronovasrl.com> <20180131084349.du2ijvhh5rxa5vvt@flea.lan> <7be1e297-4fac-a7a2-a8cc-54061d4e2fde@micronovasrl.com> <20180201124551.kfyz6frx4lcx4wbz@flea.lan> From: Giulio Benetti Message-ID: <8c2fef37-8eb6-38c6-de3d-547edafac8b7@micronovasrl.com> Date: Thu, 1 Feb 2018 17:17:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180201124551.kfyz6frx4lcx4wbz@flea.lan> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Il 01/02/2018 13:45, Maxime Ripard ha scritto: > On Wed, Jan 31, 2018 at 01:05:38PM +0100, Giulio Benetti wrote: >> Hi, >> >> Il 31/01/2018 09:43, Maxime Ripard ha scritto: >>> Hi, >>> >>> On Wed, Jan 31, 2018 at 12:23:59AM +0100, Giulio Benetti wrote: >>>> When mali.ko is inserted, it set default clocks and call all parent >>>> clocks to stay into range, causing pll-video0 to change and >>>> subsequently to change dclk to wrong frequencies. >>> >>> This is what you should fix. >> >> Ok, so it must be patch title(shrinked of course), right? >> >>> >>>> "gpu" clock has lot of parent plls inside driver, but on sun7i >>>> pll8-gpu does not depend on pll-video0, pll-ve, pll-video1. >>>> >>>> It only depends on 24Mhz main clock. >>> >>> I don't really know why you are mentionning that. The GPU clock has >>> all the parents described in the driver. And the parents' parents are >>> irrelevant to this particular issue. >>> >>>> Remove all pll parents from gpu_parents_sun7i except "pll-gpu". >>> >>> However, this is not a proper fix for your issue. >> >> Yes, you're right, now I understand. >> >> It is more complex than I thought. >> I need to dig more and study better A20 CCU. >> >> So this patch can be dropped. >> >>> >>> What kernel version did you use? >> >> Latest mainline. > > I guess this patch could fix it: > http://code.bulix.org/1kitrq-268936?raw This should prevent from modifying parent clock. But my problem was different. On A20, gpu_clk can have different PLL, not I've found out the way to choose right one with assigned-parent-clocks. I have patchset ready for adding A20 mali node, but I need some more time to complete with OPP, then I will submit entire patchset. Now it works correctly, using right pll(dedicated PLL8), setting right frequency. Btw, do I need to add a board using it, or can I add only Mali node to sun7i-a20.dtsi(plus other little patches)? > > Maxime > -- Giulio Benetti R&D Manager & Advanced Research MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale ? 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642