From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AJLUJRRb0WKC1wAAbAwnHQ (envelope-from ) for ; Fri, 15 Jul 2022 14:18:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4ELpJRRb0WL9VwAA9RJhRA (envelope-from ) for ; Fri, 15 Jul 2022 14:18:28 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5F31419A6C for ; Fri, 15 Jul 2022 14:18:28 +0200 (CEST) Received: from localhost ([::1]:37930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCKH4-0006iO-CP for larch@yhetil.org; Fri, 15 Jul 2022 08:18:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCIwH-0005Aj-G6 for guix-devel@gnu.org; Fri, 15 Jul 2022 06:52:53 -0400 Received: from araneo.si ([2001:15c0:2110:3400::2]:45574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCIwF-0006cI-J7 for guix-devel@gnu.org; Fri, 15 Jul 2022 06:52:53 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id de23baa5; Fri, 15 Jul 2022 10:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type:content-transfer-encoding; s=20180623; bh=oL9wujtZ EjNs9AEfn+Eu83ODzUw=; b=SLFXyAfoeNli/Mn65pC5nGAc9jnnAT9ei45I9HEv Rybky/Fl04A1RTdbk36zYo0pCGrXzcjOi8Ob41YSX5/ruMrPAd835HkzjaiAlFLA HZ+JYiKNQfByWkGW+SFviLF5BXd9AVmQVJbsPDZ2VoQ12F89VybqITzuHbFTiD4h ersBOOxpUA4i0gbzVeptUnqcIPuuyLn7z9lhK0x/mDmZ2s7t7irMkTqQCo6NCOGk n/VyRysqDDac+JZg2YgDHALBuL7poZouY38vzQ7fmgRcgHMuAP5HYsvlM+nUWoEI l5Nmhzsma/9A/GYV8qrGpDGQc5NErRgk47UcNmuSbFTGiw== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 0c9b1dd4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 15 Jul 2022 10:52:47 +0000 (UTC) From: Timotej Lazar To: "pelzflorian (Florian Pelz)" Cc: Guix Devel Subject: Re: Rock64 segfaults (was: Merging =?utf-8?B?4oCYc3RhZ2luZ+KAmT8p?= In-Reply-To: <20220609171930.q66ow7dxzgt4jcqt@pelzflorian.localdomain> References: <86bkvckcgr.fsf@gmail.com> <87y1yditsq.fsf@gnu.org> <8735ghbif8.fsf_-_@gnu.org> <20220609171930.q66ow7dxzgt4jcqt@pelzflorian.localdomain> Date: Fri, 15 Jul 2022 12:52:45 +0200 Message-ID: <874jziejgi.fsf@araneo.si> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:15c0:2110:3400::2; envelope-from=timotej.lazar@araneo.si; helo=araneo.si X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 Jul 2022 08:16:09 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657887508; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=gckB/wK06WhM7fpDBR1i8qXdeuuFko2tHnJbBmbHjIw=; b=A7+oTYYwOD5VLlc+Wm3TF6kUdm18sivWwmM2AgqlxQp/WgV6zd02z3Mkh5UDyHM1MjFYOs GNroRzeIdZc/MMO95m8l3L7D/oEPkgcx1rjXmV+0yCPYZQPFzzy8aE1OgodX4WHkTf1CHj wxhIoWSfZMrO6RmWeCU5hrBoG8Lz9oV6eDhuKKBAzYRbTVd3hLiF2qndUjC30mX6udFl9j 05wAAP3xF6lZo9TU0U+i5AvzOuclc2f7NDI/HnnuS8N6+s1gPhh/r8El0WL0qr/lUkpoRm +XjXm2vqiZiN6H5UzIE+zwJjRcS9/7sarbjHaAgrwEN/HojKOlJM2MnH3nqCbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657887508; a=rsa-sha256; cv=none; b=FKBP7SRqlbzZWUykeWLGgKzwBly0fICTbWo2JYMVxVWJDb8T+tGp/JHRouKboSNMRgwQdI FtwbHLnSItSDMErNHOWtGxi5y1SP6zBpuozqMxcKq7sLgFWaaC1w1gyXkaPYV3TYk1iDUN 4o7amUatK+za2tAEGCP+7IUDNt+O4QxGDV7+RK4QBKEUwLhbPpCtgGCS/y5QEyvCgfEfjo ZlcwVGoC5BwhqVMzQkXtlfGX0DGw/NzO2hj9WMNsDd3b2kTFM6zkh4l6AbQ83RO9FEb1ex 0zKZcJvVgqOKaXzTbTe3xdQdguZSh87J/NYrFGeUn15DrD4FNiANFhYcRt3j/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=araneo.si header.s=20180623 header.b=SLFXyAfo; dmarc=pass (policy=none) header.from=araneo.si; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.25 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=araneo.si header.s=20180623 header.b=SLFXyAfo; dmarc=pass (policy=none) header.from=araneo.si; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5F31419A6C X-Spam-Score: -5.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0F2GGYiG/HEr Hi, sorry to hijack the thread =E2=80=93 I found your post when debugging random segfaults on the rock64, and just wanted to post a possible solution for anyone having the same problem. "pelzflorian (Florian Pelz)" [2022-06-09 19:19= :30+0200]: > (The build of llvm@11 also needed a few retries because gcc randomly > fails sometimes (once with a segfault). That is not a Guix bug > though, I think, but peculiarities of the rock64.) This seems to be a hardware issue that can be fixed by downclocking the memory=C2=B9. Mainline u-boot has two variants of the rk3328-sdram-lpddr3 .dtsi file, so I just did (define u-boot-rock64-rk3328/666 (package (inherit u-boot-rock64-rk3328) (arguments (substitute-keyword-arguments (package-arguments u-boot-rock64-rk3= 328) ((#:phases phases) `(modify-phases ,phases (add-after 'unpack 'change-ddr-clock (lambda _ (substitute* "arch/arm/dts/rk3328-rock64-u-boot.dtsi" (("rk3328-sdram-lpddr3-1600.dtsi") "rk3328-sdram-lpddr= 3-666.dtsi")))))))))) and used that for the bootloader: (bootloader (bootloader-configuration (bootloader (bootloader (inherit u-boot-rock64-rk3328-bootloader) (package u-boot-rock64-rk3328/666))) =E2=80=A6 With this I was able to compile both gcc and llvm several times; before, compilation would reliably crash within an hour unless it was done using a single core. I assume performance with the lower memory rate is considerably worse, but I haven=E2=80=99t done any measurements. It=E2=80=99s very nice that I can include this in my OS configuration and t= hen pretty much forget about it. Big thanks to all guix for a system where making such changes is so simple! Regards, Timotej =C2=B9 https://forum.armbian.com/topic/15082-rock64-focal-fossa-memory-freq= uency/