From patchwork Wed Jun 28 08:15:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 1800886 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=icenowy.me header.i=uwu@icenowy.me header.a=rsa-sha256 header.s=zmail2 header.b=cbTltR22; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QrZD63KLsz20bH for ; Wed, 28 Jun 2023 18:16:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 12BC986386; Wed, 28 Jun 2023 10:16:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=icenowy.me Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=icenowy.me header.i=uwu@icenowy.me header.b="cbTltR22"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E685F865FF; Wed, 28 Jun 2023 10:15:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A8281862CB for ; Wed, 28 Jun 2023 10:15:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=icenowy.me Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=uwu@icenowy.me Delivered-To: uwu@icenowy.me ARC-Seal: i=1; a=rsa-sha256; t=1687940144; cv=none; d=zohomail.com; s=zohoarc; b=TlvqgcAlJ9akqDMyENmKfED3n02T01j8j2SV+aAwIOZtp+qhimEDusPEegyT/ZR8AxIa+PVKw2khlxGIkavFDyg4YBNXDwpR2JsYhmISwClUNzIzIMjhq1DfvCZgsQ+ynMPm36dhVfv8tfFnuN0av/hJHGznC9fcuQs3AyFuN48= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687940144; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=03SGR3W4RnD3FSORUQIt3amP1czvXIBH6MK8APR4zXA=; b=hNVtZ6iLOofNIWalU9j5tYQugDDmDR0uQ+4QJHvbG20Y6XQT5wvOLhKMmKId9X94kLLpkcarKO/37GyuBMYOAB/l+X6MmyT9+DSb9+uXk6XWxb/uGDp5yFKMKFpcd7aW0p4dqrEwUik/AqjjT5nQ9G1FCf/WAFzlYcapOWmVZUY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1687940144; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=03SGR3W4RnD3FSORUQIt3amP1czvXIBH6MK8APR4zXA=; b=cbTltR22YeKPsZw494//5l306o0HEhwvGGdoVuWf739Vogcck1lgoYEixy1paiWu 2XO8eTHAenp8IyBnWOxdmdol3JsOFrX+TGuLSs0watj6g53BTwz80NjwpvVFJ3VhuHj PCylCM/vnoWFnJ7QVF5vsVp+Dl64EK67oG9cFxS/OoC/Zsl6YNezmU5VIWOst4nXTdp 8zkCeyxsNQXtFI4O3J+He8ljloiitnk8QNpVSbDz1+BOk27rOhGGTy6Mtit51ZqOaWp EydrOi+izlIcFXIcFeobUAxaZDXmhtUeTRZM8gA5yJtD7mNH8L5BOHgXuW4QLl0WLvo mMDnDmo3lA== Received: from edelgard.fodlan.icenowy.me (120.85.99.114 [120.85.99.114]) by mx.zohomail.com with SMTPS id 1687940143271685.4513926743994; Wed, 28 Jun 2023 01:15:43 -0700 (PDT) From: Icenowy Zheng To: Rick Chen , Leo , Simon Glass , Paul Walmsley , Green Wan Cc: u-boot@lists.denx.de, Icenowy Zheng Subject: [RFC PATCH] riscv: sifive: fu70: downclock CPU clock for stability Date: Wed, 28 Jun 2023 16:15:30 +0800 Message-Id: <20230628081530.3184607-1-uwu@icenowy.me> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-ZohoMailClient: External X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean When building the package `rustc` for AOSC OS on HiFive Unmatched, random SIGSEGV prevents the package from getting correctly built. Downclocking the CPU PLL clock seems to allow rustc to be built, although taking much more time. Downclock the CPU PLL frequency for stability. Signed-off-by: Icenowy Zheng --- arch/riscv/dts/fu740-c000-u-boot.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/dts/fu740-c000-u-boot.dtsi b/arch/riscv/dts/fu740-c000-u-boot.dtsi index 706224b384..6b80cab588 100644 --- a/arch/riscv/dts/fu740-c000-u-boot.dtsi +++ b/arch/riscv/dts/fu740-c000-u-boot.dtsi @@ -8,7 +8,7 @@ / { cpus { assigned-clocks = <&prci FU740_PRCI_CLK_COREPLL>; - assigned-clock-rates = <1200000000>; + assigned-clock-rates = <988000000>; bootph-pre-ram; cpu0: cpu@0 { clocks = <&prci FU740_PRCI_CLK_COREPLL>;