Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2392608rdg; Mon, 14 Aug 2023 00:28:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxSEqLrl/1HQUD7ato2cqGm4UqiD1+7xogn7RyuAR6Zy3Ogzo3hiUx3HOsLE6JTDYQJ5Gw X-Received: by 2002:a05:6a20:3d0a:b0:13f:13cb:bc50 with SMTP id y10-20020a056a203d0a00b0013f13cbbc50mr12542224pzi.25.1691998083207; Mon, 14 Aug 2023 00:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691998083; cv=none; d=google.com; s=arc-20160816; b=BffB8uiqyA1lWpYPL5x+IicFL0Lqt9i7GyLnAF3Q4Z4XekbMNMg52aXhtCq0pDHAVI XlcgurWM+Fe2iXzQkiouVUk0GH76lvjzp6MFWaujhoOZsOSgsK2ezSR8gskxlKQAcSpd Hdo19iiEotoSO0QVkDNxTPiV6tO8JTMNXs984S0u1yRZDzrc5ijZQcrcgqpqkGsUiU5C /PycD6E0ZZUlMBSNyiDu6wfNSRnqXqBSfR+ZnHy2We915O84Tn9o64AyrO9aa6uO35C2 l8V4mHjI1DwKF3Mi2Q7clmIrn1AIxAt7yIB/X7PcN2ysY30bWXrg82rgbKykhPhgVICt M5IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZwuSZdj9UqWjAmgGZ6tAfbCaUt/hHjJWCDx6nN0pxoY=; fh=eSIspBAozIlr0QSFa7bBh4+ycPs3m2zFyi4RzPgx930=; b=JB5zkwE2+AYoB5VpT17flOkpejpzp2pTwB4Qt6mj/p+KPY/TI+KMEc+n9hDgteFjhF AhrzcIyF0Vdl5fWwilrjIrXAG8AabZf/EtFT5qEUF4Mp8LltVsUmKSBrQETsipGDTiRi bi9cu7yNTENrhTBvGEk5AOWbxExw6DB3M3SFYg5Xo77CtdxFxmPUqLj3BT8K/C/zervx ECS3UPKcFXQChQRCVoT867vnMO5Q2pqGSSndex2hEJRv+szUhUpjERWCnCzHshBM8lvH vbQvvspfT+w6Y7GjBFsGpv+hzhqMitLCVBZyh+ArW6kIujQ4B1qTzvhnKAk96plVR/Cd LgIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iPgNcXpI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cv7-20020a056a0044c700b00687080947e0si7679605pfb.42.2023.08.14.00.27.51; Mon, 14 Aug 2023 00:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=iPgNcXpI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233910AbjHNG7J (ORCPT + 99 others); Mon, 14 Aug 2023 02:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbjHNG6l (ORCPT ); Mon, 14 Aug 2023 02:58:41 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9CCDE6A; Sun, 13 Aug 2023 23:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1691996320; x=1723532320; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZwuSZdj9UqWjAmgGZ6tAfbCaUt/hHjJWCDx6nN0pxoY=; b=iPgNcXpIiBAAMEIFaM8oVel+vfLpzL1CKMvEQL1F2RJIrvMJx1CQ6VMG FJrotH5fgbUqQQxr15TLDCJKA0DqLZrDV5yghPAsx69iYpEt51YNqwqul QaGUtEy3BD1z/N6tBrJdUdQKW0Bw2T4FkZ5lUh1iwvvLdmatgq5F36khs B1I3M9yUamsDtpoYvcddeO/o3+f/7UdFLmmjHOjJLnqNX79atrmJ3kGM3 3YpQ6YbGwNdfxvzvznWIapZDALno4F8UictyIQOAcXoZTcqf9M86hDmJP p5uu2Gpb9Y1d9fuDWsVEA1+mUW4+xcmUPH1aY8O9clAbwNcFpC8XFcV/9 A==; X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="asc'?scan'208";a="225265556" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Aug 2023 23:58:39 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Sun, 13 Aug 2023 23:58:31 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Sun, 13 Aug 2023 23:58:30 -0700 Date: Mon, 14 Aug 2023 07:57:51 +0100 From: Conor Dooley To: Xingyu Wu CC: Michael Turquette , Stephen Boyd , Emil Renner Berthing , Conor Dooley , Hal Feng , , Subject: Re: [PATCH v1] clk: starfive: jh7110-sys: Set PLL0 rate to 1.5GHz Message-ID: <20230814-relieving-brisket-9a8c38e817a4@wendy> References: <20230811033631.160912-1-xingyu.wu@starfivetech.com> <20230811-jiffy-nebula-a8ea5ef15eee@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RojBI9Zo7R/mgEe2" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RojBI9Zo7R/mgEe2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 14, 2023 at 11:06:05AM +0800, Xingyu Wu wrote: > On 2023/8/11 14:43, Conor Dooley wrote: > > On Fri, Aug 11, 2023 at 11:36:31AM +0800, Xingyu Wu wrote: > >> Set PLL0 rate to 1.5GHz. > >=20 > > Why are you doing that though? >=20 > Because the CPU frequency scaling is based on 1.5GHz rate on JH7110 SoC. > And now the PLL clock driver has been accepted and PLL0 is just 1GHz[1]. > [1] https://github.com/starfive-tech/VisionFive2/issues/55 >=20 > We should set the PLL0 rate to a correct rate (1.5GHz) and then > the CPUfreq will work normally. Please include an explanation in the commit message of the problem this is addressing. Also, a Fixes: tag + reported-by? > Best regards, > Xingyu Wu >=20 > >=20 > >=20 > >> Change the parent of cpu_root clock > >> and the divider of cpu_core before setting. > >>=20 > >> Signed-off-by: Xingyu Wu > >> --- > >>=20 > >> Hi Stephen and Emil, > >>=20 > >> This patch sets PLL0 rate to 1.5GHz. In order not to affect the cpu=20 > >> operation, the cpu_root's parent clock should be changed first. > >> And the divider of the cpu_core clock should be set to 2 so they > >> won't crash when setting 1.5GHz without voltage regulation. > >>=20 > >> This patch is based on linux-next which has merge PLL driver on > >> StarFive JH7110 SoC. > >>=20 > >> Thanks, > >> Xingyu Wu >=20 --RojBI9Zo7R/mgEe2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZNnQXwAKCRB4tDGHoIJi 0qJMAP4kZmzrUwCXni8fgSgkuHudobkp5DySRNfylKsWb967qQD+NOCVhXJk98tx PBr+FTU1J98r09xigNcFP3qzFziehgU= =bcON -----END PGP SIGNATURE----- --RojBI9Zo7R/mgEe2--