From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D619FC43334 for ; Fri, 8 Jul 2022 16:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ntwgE4v4HvrxWllprTam1rTSYG7lnalKIsAfVNZh4Bo=; b=3sIeCsTCQwj8pD ZGjOuo5cCUS7a7TA9PABeS3guDWKd+Wi3DI5Pd+tpvYPr2QyAXbOSSf8ksUZ/5Q36XQAvoZwSvO8q 4712KeInyVwEcSK2rbiRo5NM3zWHz92VHPIwSu+6/C/gBLcTSonPvELuisplWlz3q0YerMuSqjZBU tzUYBdp65iPwnJvaGMpDsYJ4Hwom3cc8N52jL48wdunKxLYk6aiLu3DJGO4jXpFyxMnq6cnyvkp5o Qo/a0odj1Hxt+aMzFS8O1hzTCwOJ9NHxO8r4rdAGlZSj3/dw1YDJhtx4Tk6W+FKitm+jcqrYtvU29 yFB6evvEGPxE/HuKTj9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9qdh-004Y76-Aa; Fri, 08 Jul 2022 16:15:33 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9qde-004Y5T-J8 for linux-arm-kernel@lists.infradead.org; Fri, 08 Jul 2022 16:15:31 +0000 Received: by mail-ej1-x62d.google.com with SMTP id dn9so33209849ejc.7 for ; Fri, 08 Jul 2022 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SLM5PUwTV31o0kHfGXDzIJFVkz9EnZxECRqe7Eh0GBQ=; b=QOVATOOfBLjHUxfN9QCROHwRyowlMCkwTO0uRvQYtkT7889uWXuqssJomf8UYieCOH rOsyd0Qs1SZpcSisQbGXueVwVgpGfeIgniy7d4JTgKGCnFm7IXyjd34VQ8VDwgnbI34I tHJqi8SnqOf99qKxi7g2sH1R2ZdV1jDmrdRdiHfQVHu3QeplkH6iZ5HP68HWKdebByl0 O08Wy+WH9jN4t84EPDCmr3iqRzhuv21trCJcNgcfVJj4T5sfTdnLpGFnmBHxNXUliXpO 97leioUbrmBwxj9sQK+4jjq3jyuNI6lPxHF5G/FeleG3IBhxIY5hhbZ6hKHPf11Zo7D5 CKCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SLM5PUwTV31o0kHfGXDzIJFVkz9EnZxECRqe7Eh0GBQ=; b=P6mHi4tT7H180UyzVNAHEoTBvvaAwdBNVyefCa3gDeCgh/9wl7/+9i+2eLG99X2NXO iuCmeGpcwNB4moz9AAUyZhObfpMSNWrgkPFSEmXyT8NRN5L/nPXfvCR3o+YV55dsSdO6 5YittBez7WI5zehiZPYziBTCXAtPpEEvZ7/GGtWLJdN5MJ/weakbRD8PIrR1E0PRNpmV a6oDlGbEYIBZnPHzNXTia+fYFUAjIrLRAuQ9tSiVedMptHG/E9FN8zmG1nHa7aIoYKbf 4tlSxxNUH6kM37DC1a+HIxlV9mj7EZ/hrWVg3a3GzkqzW61nTJz29M3zFTXnN0LQZ8l+ deJg== X-Gm-Message-State: AJIora9SKu4VsYDiKhNk7zfcMfjl/fqfamJBTpAbmepqxopR5B9LJhbz Ev3dnoB3TmfGp+NAkIBZijo= X-Google-Smtp-Source: AGRyM1sUnIACkJ+dK6objElcohl7xX5z6IIBO2igjeYRXpiLZCRqJ+I7upZxDk5p8T2cnAhMP/w6wA== X-Received: by 2002:a17:906:9b09:b0:72b:d70:32a6 with SMTP id eo9-20020a1709069b0900b0072b0d7032a6mr4248571ejc.723.1657296928940; Fri, 08 Jul 2022 09:15:28 -0700 (PDT) Received: from kista.localnet (213-161-3-76.dynamic.telemach.net. [213.161.3.76]) by smtp.gmail.com with ESMTPSA id cn22-20020a0564020cb600b0043a896048basm6071727edb.85.2022.07.08.09.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 09:15:28 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: samuel@sholland.org, Roman Stratiienko Cc: peron.clem@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, mripard@kernel.org, wens@csie.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Roman Stratiienko Subject: Re: [PATCH v3] clk: sunxi-ng: sun50i: h6: Modify GPU clock configuration to support DFS Date: Fri, 08 Jul 2022 18:15:27 +0200 Message-ID: <1930698.8hb0ThOEGa@kista> In-Reply-To: <20220705075226.359475-1-r.stratiienko@gmail.com> References: <20220705075226.359475-1-r.stratiienko@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220708_091530_675334_D935D475 X-CRM114-Status: GOOD ( 13.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne torek, 05. julij 2022 ob 09:52:26 CEST je Roman Stratiienko napisal(a): > Using simple bash script it was discovered that not all CCU registers > can be safely used for DFS, e.g.: > > while true > do > devmem 0x3001030 4 0xb0003e02 > devmem 0x3001030 4 0xb0001e02 > done > > Script above changes the GPU_PLL multiplier register value. While the > script is running, the user should interact with the user interface. > > Using this method the following results were obtained: > | Register | Name | Bits | Values | Result | > | -- | -- | -- | -- | -- | > | 0x3001030 | GPU_PLL.MULT | 15..8 | 20-62 | OK | > | 0x3001030 | GPU_PLL.INDIV | 1 | 0-1 | OK | > | 0x3001030 | GPU_PLL.OUTDIV | 0 | 0-1 | FAIL | > | 0x3001670 | GPU_CLK.DIV | 3..0 | ANY | FAIL | > > DVFS started to work seamlessly once dividers which caused the > glitches were set to fixed values. > > Signed-off-by: Roman Stratiienko > Applied, thanks! Best regards, Jernej _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel