From owner-freebsd-arm@freebsd.org Wed Oct 16 18:26:07 2019 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 8F5D814CFF5 for ; Wed, 16 Oct 2019 18:26:07 +0000 (UTC) (envelope-from Michael.Tuexen@macmic.franken.de) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46tgjB3KHVz46yF for ; Wed, 16 Oct 2019 18:26:05 +0000 (UTC) (envelope-from Michael.Tuexen@macmic.franken.de) Received: from mb.fritz.box (pD9F97D9F.dip0.t-ipconnect.de [217.249.125.159]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id A8898721E282E; Wed, 16 Oct 2019 20:25:59 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: EC2 ARM64 "bare metal" instances From: Michael Tuexen In-Reply-To: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> Date: Wed, 16 Oct 2019 20:25:59 +0200 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> To: Colin Percival X-Mailer: Apple Mail (2.3594.4.19) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 46tgjB3KHVz46yF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of Michael.Tuexen@macmic.franken.de has no SPF policy when checking 2001:638:a02:a001:20e:cff:fe4a:feaa) smtp.mailfrom=Michael.Tuexen@macmic.franken.de X-Spamd-Result: default: False [-0.92 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.72)[-0.725,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(-0.50)[ip: (-4.85), ipnet: 2001:638::/32(2.27), asn: 680(0.11), country: DE(-0.01)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[franken.de]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[a.a.e.f.a.4.e.f.f.f.c.0.e.0.2.0.1.0.0.a.2.0.a.0.8.3.6.0.1.0.0.2.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:680, ipnet:2001:638::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] 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: Wed, 16 Oct 2019 18:26:07 -0000 > On 16. Oct 2019, at 18:51, Colin Percival = wrote: >=20 > Hi ARM experts, >=20 > FreeBSD does not currently boot on Amazon's recently released "bare = metal" > ARM64 instances. It might be useful to get these working, since = they're > reasonably powered hardware (16 cores, 32 GB RAM) and should be able = to run > bhyve (that's the "bare metal" part). Not sure we have bhyve support for arm64 in tree right now... >=20 > Right now the boot is failing because FreeBSD is not finding the disk = (or > the network adapter, for that matter): Isn't your device similar to https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D4813 Best regards Michael >=20 > http://www.daemonology.net/tmp/a1.metal.boot_verbose >=20 > Ed suggested that I get a listing of PCI devices from Linux (which = does boot > on these systems), and it looks like the missing devices are attached = to PCI > domains 2 and 3 (aka pci0 and pci1): >=20 > http://www.daemonology.net/tmp/a1.metal.lspci-v >=20 > I'm aware of a few patches these systems needed in order to work on = Linux: >=20 > 1. Respecting ACPI _DSM "PCI Boot Configuration": > = https://github.com/torvalds/linux/commit/a78cf9657ba5426f54aa93a067c10d097= 944c082 >=20 > 2. Adding the Annapurna Labs PCIe controller driver: > = https://github.com/torvalds/linux/commit/4166bfe53093b687a0b1b22e5d943e143= b8089b2 > = https://github.com/torvalds/linux/commit/a8daea94754989f6c48dafda840482cbc= 9f882f9 >=20 > 3. Something I don't understand at all about MSI: > = https://github.com/torvalds/linux/commit/90b4c55586155cf13bbafbd4e55327f89= 681859d >=20 > Can someone who knows more me about ARM64 / ACPI / PCIe / MSI take a = look > at these and figure out how to get this working in FreeBSD? >=20 > I'll be happy to test patches or to walk someone through the process = of > using EC2 so you can hack on this directly. >=20 > --=20 > Colin Percival > Security Officer Emeritus, FreeBSD | The power to serve > Founder, Tarsnap | www.tarsnap.com | Online backups for the truly = paranoid > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"