From owner-freebsd-arm@freebsd.org Thu Nov 1 01:30:08 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F103F10DA693 for ; Thu, 1 Nov 2018 01:30:07 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 85E217622F for ; Thu, 1 Nov 2018 01:30:07 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-io1-xd2b.google.com with SMTP id d80-v6so11147752iof.1 for ; Wed, 31 Oct 2018 18:30:07 -0700 (PDT) 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=s9KN1mDIMCyko1i26rj/SKPVcyRf44Cvf+euX9t3Mdc=; b=Iv0NlxOm0u0w5oshog0l6PdhMosQq7kKf7oHhh1HSKH7yRTKvhs3IqhYedBe7swAWV L1MlOeU9ghVvYR2PkE6bh4VF3csSDbD5/AztCr4k7jTva5+uKJztSg09vdEBVNziVqLK DCQjG1DUKrjMEFuJWuIhuqx/p+pFEt5Ys1OhtjfPdDatavxIW62WwYgzFZWGf+eAEAGJ KGChVU6zlLgZqLjX0bXJahuxm410vnIytQ8ufOFyK2rtUFAaPikNnMeRZWOjZGDzesIK 4z5y+Wr2/FPhAeEomB8i8Kh27pKVrPyDWTnOXUYiKkPXuJ7qiN+668b51LraM9HFK6q8 iFjA== 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=s9KN1mDIMCyko1i26rj/SKPVcyRf44Cvf+euX9t3Mdc=; b=q5HQ4yt/mWJFuSc3ilqS0/MBPwesueu/ycmyY7z10yULQUZaNo4M/XujOFibBZW3lT 9Ams87unwEbo3jEJI4Sbfys3Hsz3L+rxfm9bOHxmhqI1to/j5N90o5EL0Ot22UHHXDmt wrmY9Lydmc/eMelxv7oujdXE6S1KgmjvxUl0/u1MmSoCYEyka4HwPqtqfqKIXpgMYqum QS2eVfGH9NucJAkSknnKv1r2vrZT9KPPGO+KuUkKjILMQtfclT79RG0rni1qd3Pjnunn T7kamDFIwr+jwEbFz+xqR1WUfur2RCNurJ3c0Gcld0rliIjE0iz33L79MufZ2xgUxVG+ ph3A== X-Gm-Message-State: AGRZ1gJsH7lfd5u6MhubMcEOFGQ/pBBMdsCA9F/BHMaVC1QhiyWnCmrq NoatrfhZV+MgEXu6L39xj3P/ukrcJ5OTx1xJXssdbIIx X-Google-Smtp-Source: AJdET5edA+ENn3PLM5goBLkkOikC0sIc5+ErRJb8C+kfdQy617HPc4bzrhscr85102xhfL4XhH0e4b1G2kSqTQoMDZw= X-Received: by 2002:a6b:8ec9:: with SMTP id q192-v6mr3743785iod.248.1541035806770; Wed, 31 Oct 2018 18:30:06 -0700 (PDT) MIME-Version: 1.0 References: <4DCCA5C9-C156-4080-A8F9-035478AC2FF7@yahoo.com> <1540841879.1781.1@smtp.migadu.com> <20181029204655.73c0895cf2df7245769590fe@bidouilliste.com> <1540843531.1781.2@smtp.migadu.com> <1540939560.20404.0@smtp.migadu.com> In-Reply-To: From: Marcin Wojtas Date: Thu, 1 Nov 2018 02:29:56 +0100 Message-ID: Subject: Re: MACCHIATObin To: greg@unrelenting.technology Cc: Emmanuel Vadot , freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2018 01:30:08 -0000 czw., 1 lis 2018 o 02:27 Marcin Wojtas napisa=C5=82(a): > > wt., 30 pa=C5=BA 2018 o 23:46 Greg V napisa= =C5=82(a): > > > > > > > > On Tue, Oct 30, 2018 at 12:48 AM, Marcin Wojtas wrote= : > > > Hi, > > > > > > pon., 29 pa=C5=BA 2018 o 21:05 Greg V > > > napisa=C5=82(a): > > >> > > >> > > >> > > >> On Mon, Oct 29, 2018 at 10:46 PM, Emmanuel Vadot > > >> wrote: > > >> > On Mon, 29 Oct 2018 22:37:59 +0300 > > >> > Greg V wrote: > > >> > > > >> >> > > >> >> > > >> >> On Sat, Aug 18, 2018 at 10:07 AM, Marcin Wojtas > > >> > > >> >> wrote: > > >> >> > sob., 18 sie 2018 o 08:43 Marcin Wojtas > > >> >> napisa?(a): > > >> >> >> > > >> >> >> sob., 18 sie 2018 o 01:10 Jim Thompson > > >> >> >> napisa?(a): > > >> >> >> > > > >> >> >> > On Aug 17, 2018, at 5:42 PM, Mark Millard via freebsd-arm > > >> >> >> wrote: > > >> >> >> > > > >> >> >> > > Marcin Wojtas mw at semihalf.com wrote on > > >> >> >> > > Fri May 11 07:55:40 UTC 2018 : > > >> >> >> > > > > >> >> >> > >> Short status of the support - last year we enabled > > >> most of > > >> >> the > > >> >> >> > >> platform functionalities (core support, USB, AHCI, > > >> RTC). > > >> >> Three > > >> >> >> big > > >> >> >> > >> items remained left: > > >> >> >> > >> - PCIE root complex (this should work soon with the > > >> work > > >> >> done > > >> >> >> for > > >> >> >> > >> another SoC, not merged yet) > > >> >> >> > >> - Network PPv2 > > >> >> >> > >> - Xenon SD/MMC controller > > >> >> >> > > > > >> >> >> > > > > >> >> >> > > I noticed a check in that deals with that "Xenon" > > >> >> >> > > SD/MMC controller: > > >> >> >> > > > > >> >> >> > > Author: loos > > >> >> >> > > Date: Tue Aug 14 16:33:30 2018 > > >> >> >> > > New Revision: 337772 > > >> >> >> > > URL: > > >> >> >> > > https://svnweb.freebsd.org/changeset/base/337772 > > >> >> >> > > >> >> [?] > > >> >> >> > > > > >> >> >> > > But I've not noticed check-ins for the other of the "bi= g > > >> >> >> > > items" going by. (Though they may have.) > > >> >> >> > > > > >> >> >> > > Care to comment-on/update-the actual status for the > > >> >> >> > > Macchiato.bin(s)? > > >> >> >> > > > >> >> >> > > > >> >> >> > tl;dr: It?s not ?there? yet. > > >> >> >> > > > >> >> >> > Specifics: > > >> >> >> > > > >> >> >> > - loos@ has done a lot of work to get the espresso.bin > > >> >> working, > > >> >> >> and some of this carries over to the 8k/7k. > > >> >> >> > - We have another internal developer working on an EIP-97 > > >> >> driver > > >> >> >> for crypto offload. This should be a foundation for the > > >> EIP-197 > > >> >> in > > >> >> >> the 8K. > > >> >> >> > - I know manu@is working on pin controllers and clocks > > >> >> specific > > >> >> >> to Machiatto.bin (80x0/70x0). > > >> >> >> > - Getting the NICs, PCIe, etc working still remains to be > > >> >> done. > > >> >> >> > > > >> >> >> > > >> >> >> About the latter - the NIC is pretty complex, however we > > >> >> (Semihalf) > > >> >> >> have really huge experience with all its support > > >> >> implementations and > > >> >> >> the platform itself. I'll put it straightforward - it's > > >> only a > > >> >> >> matter > > >> >> >> of development funding, if it's guaranteed, we will do it > > >> with > > >> >> >> pleasure :) As well as the NIC support (DW Synopsys driver > > >> for > > >> >> DT > > >> >> >> and > > >> >> >> verify/improve on pcie-host-generic with ACPI). > > >> >> > > > >> >> > "As well as PCIE support..." of course. > > >> >> > > > >> >> > Marcin > > >> >> > > >> >> Hi, > > >> >> > > >> >> I've noticed that people successfully use ACPI-PCIe on the > > >> >> MACCHIATObin > > >> >> with Linux, > > >> >> so? has anyone tested FreeBSD pcie-host-generic there? > > >> >> > > >> >> I'm considering buying a MACCHIATObin board to test my drm-next > > >> >> build > > >> >> for aarch64 > > >> >> ( https://github.com/FreeBSDDesktop/kms-drm/pull/89 ), but I'd > > >> like > > >> >> to > > >> >> first know if PCIe actually works :) > > >> > > > >> > I'll will push support for mcbin soon in the tree (with PCI > > >> support). > > >> > I don't know what ACPI-PCIe is exactly but I don't see how it ca= n > > >> > work > > >> > without a dedicated driver for the armada 8K. > > >> > > >> dev/pci/pci_host_generic_acpi.c =E2=80=94 generic ECAM PCIe driver. > > >> > > >> I think ThunderX2 uses it (2018 Cavium copyright in the file), > > >> probably > > >> Ampere eMAG (haven't seen anything about that here, but the vendor > > >> lists FreeBSD in their OS compatibility list), should be possible t= o > > >> use on the SoftIron Overdrives (NetBSD just added ACPI/aarch64 and > > >> they > > >> tested on the Overdrive: > > >> https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D4526 =E2=80=94 b= ut all > > >> FreeBSD+SoftIron dmesgs on dmesgd.nycbug so far are in FDT mode, no= t > > >> ACPI)=E2=80=A6 > > >> > > >> And the EDK2 firmware for the Armada8k does have an ACPI mode=E2=80= =A6 > > >> > > > > > > I confirm - thanks to the initial configuration in UEFI, ACPI tables > > > support PCI, which OS can use with the pure ECAM pci-host-generic > > > driver. Here's also the latest Centos7 bootlog, where you can see it: > > > https://pastebin.com/Aa2NvDnM > > > > > > Marcin > > > > So you haven't tried booting *FreeBSD* in ACPI mode on the 8k yet? And I tried such boot but a year ago, before adding PCIE support to the UEF= I :) > > > > Would be great to see a FreeBSD dmesg from that configuration on > > https://dmesgd.nycbug.org :) > > > > Good idea, however I won't be able to do it in coming days. If anyone > would like to try it out before, below is my latest built of EDK2 > firmware for the MacchiatoBin board: > https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/wiki/file= s/flash-image-18.09.4.bin > > Best regards, > Marcin