From owner-freebsd-arm@freebsd.org Thu Nov 1 01:28:03 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 2255D10DA27A for ; Thu, 1 Nov 2018 01:28:03 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-it1-x12a.google.com (mail-it1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (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 B395276158 for ; Thu, 1 Nov 2018 01:28:02 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-it1-x12a.google.com with SMTP id s16so96337itj.1 for ; Wed, 31 Oct 2018 18:28:02 -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=n2HzkSSYuD3u+R183MgzmTRKZT0sE5J6bgS5YAdgvew=; b=cRv4KBrVq0LY61NZiXR6GQ9lk9kwzyoVIfn04h7v72zBbQzr6945QS1x+yC7W+T/qo 9U2RuPwKFqGlbcK+hTHIpQiM8uYIrOPFnilq5ZqsPbCYWZuMxMIIiOlc1jyFM05hbcEI 8W/IfHkqCoGABzmrhpi+zx97kS1iSyWNyy4syB1XGh+v/ozbr1VWPZwQbKGY2oIbM2ve gRBc7bfLLScatcjYcNpkFMl578MflVPN8TOLTfAlH8rP8Iaad0p+M0wqZwY8d+0T6FzE Go8K1kBAfhZV/Pj8hiJXvYkG0FB7iaK+TtKx4DulCJsseOkusTeGTh2CHZ9O+bPJ91AM UXnA== 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=n2HzkSSYuD3u+R183MgzmTRKZT0sE5J6bgS5YAdgvew=; b=A0ig4+4LeDZesOoK3rmL6wZDnJKER17c4AkIdqY9H5MBVNyGeBFY/UXuqXvf15YvEA tfI6llaj68km3ZtPT3SvCWMMkoCGBqmm6f8z1FbNlEohaCBaRhNzBprSDRpB1AasnfjR MqE9WFjF2ixXslHBPibGracdC9Tkdeogc0aRyflqxcWrjyiOY/bJpFMWEmACI3WQg/22 pAIFe3hPvfDGwKkVJ32IcNNsC1YVwDgBFU6X7y31ObBfqJj7E+kuGKSi7uELMH3jtDa5 iRlSFean9u+2ZMGjopuo1hBKu9j0dz/QpkfeQfaokbZsm6PhrFbK695MUjq+rF6Mhl85 ihZw== X-Gm-Message-State: AGRZ1gIWxplyGQvlwafpIfipC9Gd/ThIV5y8uv82mUz1iwd13Prxe/9E dn2/eed6lmUTrjw0ze1JwcPmrV180wHIeoiOGozGiezIrvk= X-Google-Smtp-Source: AJdET5c5eaIyS6o9JILpcIgIs865ZkAxs4QseNsSgToNsonTzUO/ia0QLfcUKhfsFsTkvWXMiIt58TwuKvhVw2b4NPg= X-Received: by 2002:a24:c647:: with SMTP id j68-v6mr4007133itg.138.1541035681934; Wed, 31 Oct 2018 18:28:01 -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: <1540939560.20404.0@smtp.migadu.com> From: Marcin Wojtas Date: Thu, 1 Nov 2018 02:27:51 +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:28:03 -0000 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 "big > >> >> >> > > 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 can > >> > 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 to > >> 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 but= all > >> FreeBSD+SoftIron dmesgs on dmesgd.nycbug so far are in FDT mode, not > >> 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? > > 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/files/= flash-image-18.09.4.bin Best regards, Marcin