From owner-freebsd-arm@freebsd.org Tue May 19 16:12:17 2020 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 4F6322DD579 for ; Tue, 19 May 2020 16:12:17 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49RLW446Yrz3WZJ for ; Tue, 19 May 2020 16:12:16 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Date: Tue, 19 May 2020 16:11:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a9development.com; s=protonmail; t=1589904728; bh=w1gE5nD8f/WUGHsdDysRjTui+nCORYMBV+SssBWu5Zc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=qdNmzgbO7HlOnMzVKlP4juis24SaLny/0jYpLUy4hoPs4RvlZFWDKC6jCl+9EFnF5 yBE+bdunfMo2LvdBhIZsf5N+KOCryfBAKnmF/BJ4XwkKGje91xlnaOzzw+Nx2ih5ng hk19bY+57niZehpgCDVwLlvzSsOku5UmGw7m/g6g= To: "greg@unrelenting.technology" From: Dan Kotowski Cc: John-Mark Gurney , freebsd-arm@freebsd.org Reply-To: Dan Kotowski Subject: Re: FreeBSD on Layerscape/QorIQ LX2160X Message-ID: In-Reply-To: References: <7F9D7164-2C04-4E27-85F9-A495EAC8FC84@unrelenting.technology> <63b4f78ff4ee07359a345bcbc03afeaa@unrelenting.technology> <2053cd2299b81860deecc638ef839d1f@unrelenting.technology> <0012917d629a48e9fcd8589f4f002e1b@unrelenting.technology> <947c2f9bfaad823a2b104b8741502b40@unrelenting.technology> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 49RLW446Yrz3WZJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=a9development.com header.s=protonmail header.b=qdNmzgbO; dmarc=pass (policy=none) header.from=a9development.com; spf=pass (mx1.freebsd.org: domain of dan.kotowski@a9development.com designates 185.70.40.131 as permitted sender) smtp.mailfrom=dan.kotowski@a9development.com X-Spamd-Result: default: False [-2.25 / 15.00]; HAS_REPLYTO(0.00)[dan.kotowski@a9development.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[a9development.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[a9development.com:+]; DMARC_POLICY_ALLOW(-0.50)[a9development.com,none]; NEURAL_HAM_SHORT(-0.19)[-0.186]; NEURAL_HAM_MEDIUM(-0.96)[-0.961]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.40.131:from]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.131:from] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2020 16:12:17 -0000 > > > Let's try this kernel: > > > https://send.firefox.com/download/37e834fd4c903d80/#UpK-DrJoy-k3OgdA7= eZyJg > > > > > > - SDHCI included lol > > > - not including the GIC interrupt improvement from https://reviews.= freebsd.org/D24876 - might help > > > with ahci interrupts? maybe? > > > > > > - I2C support (https://reviews.freebsd.org/D24361 + ACPI attachment= ) not that it's urgently needed, > > > but why not, that was easy enough, I wonder if it would attach or= , knowing my luck, crash :D > > > > > > > Getting closer... > > dmesg.boot: https://gist.github.com/agrajag9/99d26385be0f49a8a4f046f15a= 2c0f08 > > "iicbus0: at addr 0x77" nice! > Would be great if you could run `i2c -s` also. Scanning I2C devices on /dev/iic0: 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0= e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 2= 7 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 4= 0 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 5= 9 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 7= 2 73 74 75 76 77 78 79 7a 7b 7c 7d 7e Hey look at that! A bunch of numbers! Hopefully they mean more to you than = they do to me... > > sdhci_acpi0-slot0 seems to have hung the boot process for almost 5min w= aiting for various timeouts. > > oops, so they didn't really make generic sdhci work :D > > Well turns out we do have a Freescale ESDHC driver already. > It doesn't have DMA so performance won't be great (but SD/MMC is bad stuf= f anyway lol). > (interesting dev note: NetBSD gets away with just some quirks in the sdhc= i acpi driver: > SDHC_FLAG_HAVE_DVS|SDHC_FLAG_NO_PWR0|SDHC_FLAG_32BIT_ACCESS|SDHC_FLAG_ENH= ANCED) No worries - once I can get a reliable install, I hope to never need to tou= ch those again anyways. I mostly am hoping to get eMMC so I can flash updat= ed firmware, assuming the errata list is correct and my silicon rev CAN boo= t from firmware on eMMC and it was a layer 8 failure. > Trying to add ACPI support to it: > > https://send.firefox.com/download/926c72b043182c40/#49y3TaeL7_hif_YEHUFQ2= g Latest dmesg.boot: https://gist.github.com/agrajag9/f4e8186e4cea7da1e5d8887= a8d74dd7a I can't find the PCIe cables for my PSU right now, so the RX480 is out unti= l I have time to dig through The Cable Box Of Doom. But I do have a spare L= SI SAS HBA that I'll try after lunch!