From owner-freebsd-arm@freebsd.org Fri Jan 1 13:26:51 2021 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 CCAB64C8952 for ; Fri, 1 Jan 2021 13:26:51 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 4D6m5R0CSwz4pfh for ; Fri, 1 Jan 2021 13:26:50 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-ej1-x62c.google.com with SMTP id ce23so28033806ejb.8 for ; Fri, 01 Jan 2021 05:26:50 -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=31bNX4t5VnyAZuGYBl+mVVVN4Pbm4WDXEKgu0iAY9Ck=; b=FKqqNzeoxX+qQRWVG1LLjPRPsWNNsNOH+B625IRJ6p1KcA7fWvXZGXEE4v+J03DErm iWL23Gb/lwmt/zJR/MgS5E+hCPLKtm3HwXnlllPVzGmY7hSrur4Sng9UKaP4XrxNjSCm DvmRLcyBqTVS1UcNDcQ0UOBioAEezEqrrZfoWukqk9DgKGtiLDlGsek/gGlhoZdDz9lM HX4eGi2CdkHeM99Y9evA9Kdl47mDbcu8shjdAHuNYVcpszW9C1ifoqoekMnwX68OLm9J pBG8lBjDw466gtbAI9TgTAvtv31rG57iEVds9JnKahNjvKFijRXBku2/AGqYKc7Mi475 wJ8w== 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=31bNX4t5VnyAZuGYBl+mVVVN4Pbm4WDXEKgu0iAY9Ck=; b=XcNI1LA5lSgCrfqwLyMzksQJOxAGBZIk3+URD6cHQxpEI1AMHegRxVqhry/xMvPcTC OFwNFhQwfaNUY7WJaNVafqozZFeWs0HKgQ2iK1CZYOM1GGShLsv59VcyDkBjbhg/2iaE X+9Uskb+jLBc8X8PH4JnBkzfq3WYlvP2Y1z1xsZVGfgyNkRjicx4pAjBYsor3VEMD7iO qfxkcnBsbzZNpNA2rZtKxk7TOeBWBxt8b7O5tByf2NKgANy9Wf4IhezQtQHpf/bpyAeU yB8gm4ktbSPTVM/fpdYo+xMJrFI8TcENU5GyAWVGRRXqKV8tNMe79eQK97iug8BvJ83w vupQ== X-Gm-Message-State: AOAM5310NwrGDVx+bom0yMsDkHFBK0mErZGdz/F5yopjpe1/IGRZGFPC ZCAIvJ0XZFxT02vpoACJn10CdmJID/s= X-Google-Smtp-Source: ABdhPJy+C1zJxTGiZZlWzS9h04jQtOwpjI1+S5poF7Ajn0qK1H6hUHEBzea+9srJHfuy8JxTj1wPww== X-Received: by 2002:a17:907:6e9:: with SMTP id yh9mr56848493ejb.131.1609507609360; Fri, 01 Jan 2021 05:26:49 -0800 (PST) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id s19sm40799002edx.7.2021.01.01.05.26.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jan 2021 05:26:48 -0800 (PST) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: 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: Fri, 1 Jan 2021 14:26:48 +0100 In-Reply-To: <20201231141821.274a45ffa0299cca5a7bb1f1@bidouilliste.com> To: freebsd-arm 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> <23CCE944-C9F0-42C9-8A93-DAC312FE01E2@gmail.com> <20201231141821.274a45ffa0299cca5a7bb1f1@bidouilliste.com> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4D6m5R0CSwz4pfh X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FKqqNzeo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; 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]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::62c:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::62c:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62c: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: Fri, 01 Jan 2021 13:26:51 -0000 > On 31 Dec 2020, at 14.18, Emmanuel Vadot > wrote: >=20 > On Thu, 31 Dec 2020 13:49:19 +0100 > S=C3=B8ren Schmidt > wrote: >=20 >> Hi gang >>=20 >> On my quest on getting the pinebookpro booting again I think I can = rule out u-boot for now. >=20 > I thought it was rockpro64 that gave you problems ? Those where solved with the latest 2021.01rc4 u-boot. I should have changed the subject, or rather I thought I did, got = interrupted 4 times during that mail by wife :) >=20 >> Back on the u-boot-2020.07 where a -current kernel from late = July/early august would boot just fine a current kernel fails to talk to = the SD card, the only change to an up to date current is not setting the = 800Hmz cpll clock and that is known not to make any difference. >=20 > How is it known that it doesn't make any difference ? There is no difference in behaviour, it fails exactly the same way. > cpll is one of the possible parent (and likely the default one) for > sd/emmc/sdio clocks. Doesn=E2=80=99t seem to affect anything but the clock for the display = from my poking around so far.. > Did you tested without this change ? Yes, plain -current with no changes as said above fails exactly the = same. >=20 >> Again the same SDcard works just dandy with net/openBSD also I 50Mhz = mode. 1 in 10 boots finds the card as 25Mhz and then it ?just works?. >>=20 >> Any Ideas ? >=20 > Cna you provide a boot verbose log please ? Sure, rather long though so I=E2=80=99ve uploaded the bits on=20 https://people.freebsd.org/~sos/PinebookPro = Including the odd drivers I=E2=80=99ve done / updated that=E2=80=99s = included in the working boots.. What have me intrigued is this in the early boot stage: --- verbose-success 2021-01-01 12:59:24.624917000 +0000 +++ verbose-fail 2021-01-01 13:03:21.444189000 +0000 @@ -831,7 +824,7 @@ gic0: CPU0 Re-Distributor woke up gic0: CPU0 enabled CPU interface via system registers its0: mem 0xfee20000-0xfee3ffff = on gic0 -rk_iodomain0: mem 0-0xff31ffff,0-0xfff on = rk_grf0 +rk_iodomain0: mem 0xff320000-0xff320fff on = rk_grf0 rk_iodomain1: mem 0-0xff76ffff,0-0xffff on = rk_grf1 rk_pinctrl0: on ofwbus0 gpio0: mem 0xff720000-0xff7200ff irq 71 = on rk_pinctrl0 And a litte later that interrupts are offset by 1 from here on: @@ -1017,7 +1004,7 @@ nvme0: Lazy allocation of 0x4000 bytes rid 0x10 type 3 at 0xfa000000 ofw_pci mapdev: start fa000000, len 16384 nvme0: attempting to allocate 5 MSI-X vectors (16 supported) -nvme0: using IRQs 77-81 for MSI-X +nvme0: using IRQs 78-82 for MSI-X nvme0: CapLo: 0x780100ff: MQES 255, CQR, TO 120 nvme0: CapHi: 0x00100030: DSTRD 0, NSSRS, CSS 1, MPSMIN 0, MPSMAX 1 nvme0: Version: 0x00010300: 1.3 -- S=C3=B8ren Schmidt sos@deepcore.dk / sos@freebsd.org = "So much code to hack, so little time=E2=80=9D