From owner-freebsd-arm@freebsd.org Tue May 19 15:24:08 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 C244B2DB9DE for ; Tue, 19 May 2020 15:24:08 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49RKRW53xrz3RXK for ; Tue, 19 May 2020 15:24:07 +0000 (UTC) (envelope-from greg@unrelenting.technology) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unrelenting.technology; s=default; t=1589901845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lQ7e3hf5Fri3Xz/9waPSOLfoPpVBSh6eSHEW4udk2mA=; b=ETJgI47AYyxqXQrxr543lKkQekqW2kETdg+HzTQNE0AKQSyqVBuUK+krr33FyJKrl/KaQ8 J1Uo1iCn1lCPMCxb81Jm+WCzNVg7gtY0mHKmrwy2AsxJqyksiFfG6E6vwMnqXopZQchWAG JSH7Wo71tPHW/Qd+J7+g91QIhJ0C2tU= Date: Tue, 19 May 2020 15:24:04 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: greg@unrelenting.technology Message-ID: Subject: Re: FreeBSD on Layerscape/QorIQ LX2160X To: "Dan Kotowski" Cc: "John-Mark Gurney" , freebsd-arm@freebsd.org In-Reply-To: References: <7F9D7164-2C04-4E27-85F9-A495EAC8FC84@unrelenting.technology> <63b4f78ff4ee07359a345bcbc03afeaa@unrelenting.technology> <2053cd2299b81860deecc638ef839d1f@unrelenting.technology> <0012917d629a48e9fcd8589f4f002e1b@unrelenting.technology> <947c2f9bfaad823a2b104b8741502b40@unrelenting.technology> X-Spam-Score: -0.10 X-Rspamd-Queue-Id: 49RKRW53xrz3RXK X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=ETJgI47A; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 2001:41d0:2:267:: as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-2.26 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.940]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:41d0:2:267::]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; FROM_NO_DN(0.00)[]; NEURAL_HAM_SHORT(-0.32)[-0.321]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MID_RHS_MATCH_FROM(0.00)[] 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 15:24:08 -0000 May 19, 2020 4:43 PM, "Dan Kotowski" wro= te:=0A=0A>> Let's try this kernel:=0A>> =0A>> https://send.firefox.com/do= wnload/37e834fd4c903d80/#UpK-DrJoy-k3OgdA7eZyJg=0A>> =0A>> - SDHCI includ= ed lol=0A>> - not including the GIC interrupt improvement from https://re= views.freebsd.org/D24876 - might help=0A>> with ahci interrupts? maybe?= =0A>> - I2C support (https://reviews.freebsd.org/D24361 + ACPI attachment= ) not that it's urgently needed,=0A>> but why not, that was easy enough, = I wonder if it would attach or, knowing my luck, crash :D=0A> =0A> Gettin= g closer...=0A> =0A> dmesg.boot: https://gist.github.com/agrajag9/99d2638= 5be0f49a8a4f046f15a2c0f08=0A=0A"iicbus0: at addr 0x77" nic= e!=0AWould be great if you could run `i2c -s` also.=0A=0APosted the i2c p= atch: https://reviews.freebsd.org/D24917=0A=0A> And still seeing the AHCI= interrupt issue=0A=0AOh well, at least we know the GIC patch is innocent= .=0A=0AAnd at least it's just SATA, no complaints from USB or PCIe.=0A=0A= Speaking of, looking forward to your testing of PCIe cards ;)=0A=0A> sdhc= i_acpi0-slot0 seems to have hung the boot process for almost 5min waiting= for various timeouts.=0A=0Aoops, so they didn't really make generic sdhc= i work :D=0A=0AWell turns out we do have a Freescale ESDHC driver already= .=0AIt doesn't have DMA so performance won't be great (but SD/MMC is bad = stuff anyway lol).=0A(interesting dev note: NetBSD gets away with just so= me quirks in the sdhci acpi driver:=0ASDHC_FLAG_HAVE_DVS|SDHC_FLAG_NO_PWR= 0|SDHC_FLAG_32BIT_ACCESS|SDHC_FLAG_ENHANCED)=0A=0ATrying to add ACPI supp= ort to it:=0A=0Ahttps://send.firefox.com/download/926c72b043182c40/#49y3T= aeL7_hif_YEHUFQ2g