Received: by 10.223.176.5 with SMTP id f5csp1796wra; Fri, 2 Feb 2018 15:16:40 -0800 (PST) X-Google-Smtp-Source: AH8x2265CwQSkIzeQLW4dkYUtdOF4d+K2V1VLvl8Ms5ZuqRP/cbUN6eCrR90BKucNj8Osu8yZ9dk X-Received: by 2002:a17:902:6e8c:: with SMTP id v12-v6mr37225825plk.14.1517613400563; Fri, 02 Feb 2018 15:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517613400; cv=none; d=google.com; s=arc-20160816; b=NEWtaCKvE5pbsIu/YEuIERsZuzY7Vm5HtU7Z/ZDBirZRFBr7EE2dCW6Wq3g2rKtrQw UoCihzl5IUAliECVWIIkxvvWkkpT6/qUAog6aEZHoFp7MJlbW57saCX886K2iSnvNQhP 9oqyy3zh9gjXTEUE/7q7FtD8xjQVC7MXFSQkegJuRJIgBkiytxMBs6DGmqVMafFqLYfS CHMnaUx0Q6+CLCF8KPVlr1cHclcnZyh/4uKngRAcgJK5ZO8Noovyc9twn1kBcbH288ud 06AntJKcUQFDbMc0wt9tTFsJlokmNmtezQTWDke/rAm4O1mSL222cQVvtCNOiQCgWT5d jE1w== 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=pfSRvFX0o6OZXzWsvLAZeV+zuI14MYTqKY1aWPzKbP8=; b=ZqV43FCWhkX2FaYqsRcDfk5GylRIFYXdAhakDZXO0qyjYCkIy4isB7Flt05raoOE5d svwXZ9SSJ+sQF8UCabWV4cbfebfG5TRk+KBVvvJhY+CW0vy9X/uW6iEejyvLsAD6wN6i JNZxR2YTN/dKskZ03jreaXwHbBLGXv5MfjnLXWABzWyVEyPEgY2mLY1ONHLuBl9Aq8Fq Yyw527G2O62sOvs9X/GB6ysLZfs70mmXdn+L57UX5xP4Rk24Ta/P4Myol1UxanX7QXvP vv3X33oR7I29Ioyk4aD2rAhhKMNNlOXznZwv5bKanbj6FrLVhSK3ySaM/Ycl6fSPYGb0 8jiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=DrQpml+e; 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 v12-v6si2607425plk.577.2018.02.02.15.16.25; Fri, 02 Feb 2018 15:16:40 -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=DrQpml+e; 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 S1752182AbeBBWqa (ORCPT + 99 others); Fri, 2 Feb 2018 17:46:30 -0500 Received: from mail.micronovasrl.com ([212.103.203.10]:60956 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbeBBWqX (ORCPT ); Fri, 2 Feb 2018 17:46:23 -0500 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id D539CB00BC7 for ; Fri, 2 Feb 2018 23:46:21 +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= 1517611580; x=1518475581; bh=PhH5shOY+awUa/4v8UhD2egZfnKOlRRcY4g 2EXKbM4U=; b=DrQpml+eICB5TlAj/C7FKLZYVcR+HnmRol5SkCuzejmD8uy8CgC UliuZf5XNt1grMRTt6ciXV+U/UKmP+XJWfA/Hv/X04mVXFSl8r/L6ePUBv0x92Bv q2pmlw/bDGVznFT//kngWGiI837yvr0pzxa0WTkFkFMdOPPN7V9N0/X8= 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 fdZdHX1glTze for ; Fri, 2 Feb 2018 23:46:20 +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 F1114B00707; Fri, 2 Feb 2018 23:46:19 +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: <20180131084349.du2ijvhh5rxa5vvt@flea.lan> <7be1e297-4fac-a7a2-a8cc-54061d4e2fde@micronovasrl.com> <20180201124551.kfyz6frx4lcx4wbz@flea.lan> <8c2fef37-8eb6-38c6-de3d-547edafac8b7@micronovasrl.com> <20180202105304.gow2znzgxqmuxgol@flea.lan> <1b3d96ae-c6e6-4f58-b140-7b1738c12adc@micronovasrl.com> <20180202133516.uoy7ppuozd6cnldm@flea.lan> <20180202155252.vhlih33ju6zh26oh@flea.lan> <20180202215952.fockc3b3vvs7nu4o@flea.lan> From: Giulio Benetti Message-ID: Date: Fri, 2 Feb 2018 23:46:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180202215952.fockc3b3vvs7nu4o@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 Il 02/02/2018 22:59, Maxime Ripard ha scritto: > On Fri, Feb 02, 2018 at 06:21:18PM +0100, Giulio Benetti wrote: >> Hi, >> >> Il 02/02/2018 16:52, Maxime Ripard ha scritto: >>> On Fri, Feb 02, 2018 at 04:38:13PM +0100, Giulio Benetti wrote: >>>> Hi, >>>> >>>> Il 02/02/2018 14:35, Maxime Ripard ha scritto: >>>>> On Fri, Feb 02, 2018 at 11:57:20AM +0100, Giulio Benetti wrote: >>>>>> Il 02/02/2018 11:53, Maxime Ripard ha scritto: >>>>>>> Hi, >>>>>>> >>>>>>> On Thu, Feb 01, 2018 at 05:17:11PM +0100, Giulio Benetti wrote: >>>>>>>>>>> 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. >>>>>>> >>>>>>> The point is that we really don't care about which PLL is actually >>>>>>> being used, as long as the rate is correct and we don't break anything >>>>>>> else. If the GPU rate is accessible through one of the other PLL, it >>>>>>> makes even more sense to not use the GPU PLL and keep it disabled, >>>>>>> since it will result in some power savings. >>>>>> >>>>>> Ah! I see the point now, very clever system for power saving. >>>>>> I'm going to check if it's resolutive, >>>>>> but it sounds good. >>>>>> >>>>>>> >>>>>>>> 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)? >>>>>>> >>>>>>> You can add it to the DTSI without a board using it (and actually, >>>>>>> nothing should be in the board DTS, everything in the DT for the Mali >>>>>>> applies to all boards). >>>>>> >>>>>> Sure. So I would also add the patch you've addressed me: >>>>>> http://code.bulix.org/1kitrq-268936?raw >>>>>> as a commit. Can I submit it in patchset to complete the whole job? >>>>> >>>>> I already sent that patch quite some time ago, I'll just apply it. You >>>>> can send the DT patch :) >>>> >>>> Thanks. Sorry for my ignorance, but where are you applying patches? >>>> Because I've tried to check sunxi-next and a lot of other Repo but I can't >>>> find this and neither "Re: [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali >>>> changing dclk frequency" >>> >>> Usually, in the git tree listed in MAINTAINERS :) >> >> Please don't laugh at me! :) >> >> I've tried to check for your patch(drivers/gpu/drm/sun4i/sun4i_tcon.c) on: >> https://cgit.freedesktop.org/drm/drm-misc/ >> according to MAINTAINERS file and nothing found. > > I haven't applied that one yet, so it's not suprising :) Ah ok! > >> For the other one(arch/arm/boot/dts/sun7i-a20.dtsi), I've checked >> on: >> https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/ >> https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/ >> https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/ >> >> Nothing neither here! >> >> In MAINTANERS file there's no arch/arm/boot/dts/sun* association. > > I forgot to push that one: > https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/log/?h=sunxi/dt-for-4.17 Thank god! I haven't gone nut!! :)) I think I've understood how it works this part. Thanks!!! Thanks > > 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