From owner-freebsd-arm@freebsd.org Wed Dec 30 19:07:19 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 53E394CC77E for ; Wed, 30 Dec 2020 19:07:19 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D5glB2BySz4YD4; Wed, 30 Dec 2020 19:07:18 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-ej1-x62f.google.com with SMTP id g20so23058037ejb.1; Wed, 30 Dec 2020 11:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=bPjKrgOsfWpJJJw8t3LRLxdpKOyiFglBG7R8Cu8cTfs=; b=HJDkDSey3B5RsWnUCgqkW1dTPJCeyA2Fi8RI9MkCizo/BcAx92/ew7RRWmSGspWedt ekDcMbnTp91ATtTSv+E8fmwq1WMg+7ct7UdUOK6AWA3S/yacEtMGznCPtS9gOxqpM3fd f+Cl5JW3TUv1J6T0AdENzfo8Dq9fJsPP/87IQmaosTVvBTNvOAQ3F0C9mFPcRIdsDbZa eB3PLMSP+W2Cib7XPa66EG1TmfzHUU20QmYH+NYU7xJ18rTEN+N6qdHJyI9geWkewlri Tkfya4gQoPRP9tCbGBTTLFjRIKM4X8iZ2a7fP7I911JSEnsDAxONAoUYZumKUoywSR1C OXIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=bPjKrgOsfWpJJJw8t3LRLxdpKOyiFglBG7R8Cu8cTfs=; b=tPzDxg4uoKQOt3oy8MCvuKTrDEKcAahzviI9F8eyw8fKj0Jcg6BEZHtlhUty4DW0Xy 0fSPhPx109mPzKt8w38ZD+tpjX0UF/se6ngkfa3JlB7VJB8ss7nimxPHKupAAa69SFz8 uzaSrmb+tW8G2eKrThDftQoeohiF3EqFpr8KxrDog5YyY+IOLPCqIjiD3h0AJSncDis3 RmBFKK4/MZk1wY9POGcfn/TXmf3gNUsC39NNqEZuRlBmap8zQf5ZAJq3sdE6HwrEI+Op fjCWSpiDW0h65hwT3/ChQt3O+aYGuRoRYwDaGREo9y4rnIo1UsFKAEmZyUoe3G7qDTzW aV6A== X-Gm-Message-State: AOAM532xdjURNv6dQnV6MBSWgkj4aizmtwSfyio4BFo4GfyNHz14LOM9 Jte4QvOv6Hj1D6HTMMFwUJNzd92mk3GNLA== X-Google-Smtp-Source: ABdhPJyNozF0fiLskIxMcmBn07uSxClQpHFwpDLSNrRPV9sANszIzWh90/gsjp2c+kZ1ClOwUsrGvA== X-Received: by 2002:a17:907:1004:: with SMTP id ox4mr49553254ejb.240.1609355236724; Wed, 30 Dec 2020 11:07:16 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id z13sm12028426edq.48.2020.12.30.11.07.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Dec 2020 11:07:15 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <23CCE944-C9F0-42C9-8A93-DAC312FE01E2@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: FreeBSD-13.0-CURRENT-arm64-aarch64-ROCKPRO64-20201210-7578a4862f0 broken ? Date: Wed, 30 Dec 2020 20:07:14 +0100 In-Reply-To: <6784D541-8FED-4753-8631-B36886508165@gmail.com> Cc: Ian Lepore , Daniel Engberg To: freebsd-arm , Emmanuel Vadot References: <4434862ed87c21113fb7f98636fe4694d73856ce.camel@freebsd.org> <0D6FCA87-F101-4AA0-A1BF-6EDBA003BC9F@gmail.com> <87B7940E-119D-4C7F-AB9D-0C78E7F8D3A3@gmail.com> <20201213180746.1224166dffb81cb6770ff80d@bidouilliste.com> <6784D541-8FED-4753-8631-B36886508165@gmail.com> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4D5glB2BySz4YD4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=HJDkDSey; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::62f as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::62f:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::62f:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62f:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2020 19:07:19 -0000 > On 14 Dec 2020, at 22.45, S=C3=B8ren Schmidt > wrote: >=20 > Went to the official u-boot sources and tried the newest shiniest = 2021.01rc3 and it behaves a little bit better, it will boot 1 out of 3 = times :) >=20 > Probe looks like this now: >=20 > U-Boot TPL 2021.01-rc3 (Dec 14 2020 - 23:17:52) > Channel 0: LPDDR4, 50MHz > BW=3D32 Col=3D10 Bk=3D8 CS0 Row=3D16/15 CS=3D1 Die BW=3D16 Size=3D2048MB= > Channel 1: LPDDR4, 50MHz > BW=3D32 Col=3D10 Bk=3D8 CS0 Row=3D16/15 CS=3D1 Die BW=3D16 Size=3D2048MB= > 256B stride > lpddr4_set_rate: change freq to 400000000 mhz 0, 1 > lpddr4_set_rate: change freq to 800000000 mhz 1, 0 >=20 >=20 > The exact same as before. There is no difference in output from the = working boots to the failing ones. > I=E2=80=99ll get on with adding some debug to what parameters get set = during memory setup etc. > However I have this gut felling it is timing related and my board = might just be too slow/fast for some operation that the ayufan version = does slightly different (it boots every time). >=20 > Anyhow, when it boots it runs rock stable, it builds worlds etc with = no issues.. OK, I got a little further, it may not be memory related after all, from = dozens ff boots with same u-boot etc I found that those that fails sees = the SDcard like this: mmcsd0: 16GB at = mmc0 50.0MHz/4bit/2048-block And those boots that works: mmcsd0: 16GB at = mmc0 20.0MHz/4bit/2048-block So it suggests that either our code for setting the SDcard speed I flaky = or marginal or the SD card / my pinebookpro is... However the exact same SD card can boot netbsd/openbsd dozens of times = with no issues at all with 50MHz timings. Back to debugging :) -- S=C3=B8ren Schmidt sos@deepcore.dk / sos@freebsd.org = "So much code to hack, so little time=E2=80=9D