From owner-freebsd-arm@freebsd.org Thu Mar 4 17:49:24 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 87E815531CA for ; Thu, 4 Mar 2021 17:49:24 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (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 4Dryzl2HX5z4byj for ; Thu, 4 Mar 2021 17:49:23 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-qt1-x833.google.com with SMTP id b3so21021921qtj.10 for ; Thu, 04 Mar 2021 09:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=31Q8JIAqnd8mn1MxO+UljUGkqKPh3CxilUIL3hzUklw=; b=QshI1uGNmh8eEhCffiXp/W0NmhTWnHDVcDEzBvdODPXXsZ84c42wNXl3UmGA6H8Kon JhY6LIZmBpsBnfiW3m3zQ6aN+Aq4Y4OymDw3KjN8tB3aRKfqkm9F79WMOQ9r8+73lQTB 8cdl8IifpEJpiVs8xKGN3aUW8U24Zm1N9afEfV2iYCHb6ZaIUXoTsUGm2QEv8ljuamiz YxVCOmT7A+wjsSxpoqqgZYs+J/iLP72TqyTtbRnhyVqxRPbcvN9VqtVouuMNHq5Av5H1 4mHWYuTRa/ihsP/wWLDhwbb7n5GtOxOt2Og4EJoP81uwbQUHEkPIqPMgTjETHPZh0euR 4/8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=31Q8JIAqnd8mn1MxO+UljUGkqKPh3CxilUIL3hzUklw=; b=qkdbB3Ovgv6xM6m10gzluoY+ydQXQO6aamYnMagVlHMaP4KSlJU/oE962CnV5a5+YF eut2as+3++HwIKacJExbn+IXS6XY1Uq8m9eK8JXFD70oGMXLSjupsZ2ojz6yfrhqHpbs nv5Ctdi8/CTSATjhTQtbMPjxxEgbfqDcDsXlOQYuFY2u8ROK2Utwv7c2aFX/+CcuajWG XNiZY1kzdaMlkW8GwZ/DUfRwI+bMnFSalqLrH4i/XkQHlp1hOCmnn/AxcUabWDKF3IXt WcQgAywUgocb799ymMDSqH6tP+bORWt8WO5fQ5ZTKXqZKQl/LFoY6qP63l24nVGQ5NSU aCsA== X-Gm-Message-State: AOAM531V0Eyadvo8bTr/oIn/mZBmYizNr0eHut1Lmopyr7J1VcjPKfhD U4uptf4yxCAtSZjon0mcclRyGt8HdFg3nSBt4qfnR9i9wYg/ozQa X-Google-Smtp-Source: ABdhPJxx1bPJNQq7xgw8VwiiUQ1vBIuCEqilCWRZeFt6GjjXGuxlFfQcmtVDywy27hyjDlSK0MwnddBDVOo58H94Hvs= X-Received: by 2002:aed:2c85:: with SMTP id g5mr5056232qtd.306.1614880162357; Thu, 04 Mar 2021 09:49:22 -0800 (PST) MIME-Version: 1.0 References: <5d4d31c9-4d97-3de8-f50f-a50acd5c5cdf@gmail.com> In-Reply-To: <5d4d31c9-4d97-3de8-f50f-a50acd5c5cdf@gmail.com> From: Marcin Wojtas Date: Thu, 4 Mar 2021 18:49:10 +0100 Message-ID: Subject: Re: Armada 7k8k & U-Boot/Device Tree To: chinting Cc: freebsd-arm , Zyta Szpak , =?UTF-8?Q?Kornel_Dul=C4=99ba?= , Grzegorz Jaszczyk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Dryzl2HX5z4byj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=QshI1uGN; dmarc=none; spf=none (mx1.freebsd.org: domain of mw@semihalf.com has no SPF policy when checking 2607:f8b0:4864:20::833) smtp.mailfrom=mw@semihalf.com X-Spamd-Result: default: False [-1.80 / 15.00]; RCPT_COUNT_FIVE(0.00)[5]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[semihalf-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::833:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[semihalf-com.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[mw]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[semihalf.com]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::833:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::833:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; SUSPICIOUS_RECIPS(1.50)[] 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: Thu, 04 Mar 2021 17:49:24 -0000 czw., 4 mar 2021 o 11:17 chinting napisa=C5=82(a= ): > > On 2021/01/27 =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=88 03:03, Marcin Wojtas = wrote: > > Hi, > > > > I struggled a bit with Armada 7k8k with FreeBSD and U-Boot (more > > general - FreeBSD and device tree) - the experience is not pleasant, > > but unfortunately in this activity switching to EDK2 firmware is not > > an opiton. > > > > On top of HEAD I see following issues (checked on MacchiatoBin, Armada > > 7040 DB, Armada 8040 DB and a custom board). Device tree used is > > aligned with Linux v5.10's. > > - PCIE init hang on MacchiatoBin (it has to be disabled to proceed) > > - CP110 interfaces do cannot operate - the devices such as SD/MMC and > > USB time out. > > KDB shows that no IRQs are received in GIC via ICU-GICP secondary contr= ollers. > > > > Does anyone use MacchiatoBin with U-Boot (and/or Device Tree) and see > > similar issues? > > Yes, the same issues here. I use custom board based on Armada 7K. > These is no Common PHY driver, so the related registers is still > configured by u-boot. This is expected, but not a blocker in any way. > > - SD/MMC on AP bus is working fine. I mount the rootfs on MMC. > - Some I2C devices on SB busis good. > - PCIE controller can be attached, not freezed. But no wifi driver to > test my device. > - USB on SB bus is broken too. Today's main branch comprises a number of GPIO driver improvements that could likely cause boot hangs on certain bords. In order to enable interrupts for SB devices a ICU/GICP rework is needed. Its first working version can be found here: https://reviews.freebsd.org/D28803 however it has to be significantly modified before merge. > > > Was there a pair of FreeBSD - device tree revisions that fully worked? > I modify device tree from the Marvell Linux v4.14.64 > > With above patch whatever is applied on top of the main's sys/contrib/device-tree/src/arm64/marvell/ tree should easily work. Best regards, Marcin