From owner-freebsd-arm@freebsd.org Sat May 23 00:37:28 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 0D65C2F1BB4 for ; Sat, 23 May 2020 00:37:28 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) (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 49TPZZ5FzXz463C for ; Sat, 23 May 2020 00:37:26 +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=1590194244; 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=f6AMzCUabzjIK8NwkE+V8AHeJNZbIlZqJEMIuAu1PBw=; b=ZALy0H9eXg/3/VkFXU3iD3uhzmwCG0gzRg3DhRWpEQQ4WczZgwxf2+Cck05PqQ3vIbEgNZ VC2XE6euSbIlqhq4h92ZquT19GY2Dy8gU5JEqSj98Dz/ZNlzxI9bB79ozhPid6U9VAoGEU Bs8xDr0UE5OPZuAmp7xALOqgk3qxA4s= Date: Sat, 23 May 2020 00:37:23 +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: <7066da0bc417ed047dc27b4741c90e81@unrelenting.technology> Subject: Re: FreeBSD on Layerscape/QorIQ LX2160X To: "Dan Kotowski" Cc: "freebsd-arm" In-Reply-To: References: <3e81db774e0fc1a3c2251c89b7629e1b@unrelenting.technology> <86119565e5927716a9feebabcb611871@unrelenting.technology> <37858865a8ebddd3fe1e3a228a19ef62@unrelenting.technology> X-Spam-Score: -0.10 X-Rspamd-Queue-Id: 49TPZZ5FzXz463C X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=ZALy0H9e; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 2001:41d0:2:863f:: as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-3.39 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.02)[-1.018]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; R_SPF_ALLOW(-0.20)[+ip6:2001:41d0:2:863f::]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; NEURAL_HAM_SHORT(-0.38)[-0.376]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; 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: Sat, 23 May 2020 00:37:28 -0000 May 23, 2020 2:32 AM, "Dan Kotowski" wro= te:=0A=0A>>> I spent some time looking at that NetBSD Layerscape code - I= couldn't figure out how to add it=0A>>> trivially to the current HEAD on= my own, so I'm looking forward to seeing how we're going to yeet=0A>>> t= hat in for testing...=0A>>> Something like this:=0A>>> https://github.com= /myfreeweb/freebsd/commit/6cbdafbc310b9a0fa4d046f71979aa01302e8b0b=0A>>> = https://send.firefox.com/download/ec0419c6d3fa856e/#QOMHO8pBq1dP1K2_4P4CB= w=0A>> =0A>> https://gist.github.com/agrajag9/b214aa837d0ed6bb14139770ff5= 835ff=0A>> Line 404: panic: Misaligned access from kernel space!=0A>> =0A= >> oops, I actually have to care about the`bytes` parameter..=0A>> =0A>> = at least I got the ACPI-walking on the first try :)=0A>> =0A>> https://se= nd.firefox.com/download/6406af63fee41a8a/#FnEEayn7igQ_eTGs0Wq0uw=0A> =0A>= https://gist.github.com/agrajag9/b47d63484fa51eed535d8a43625a5276=0A=0A= =0Ahmmm. there's now a pcib2: at device 0.0 on pci1=0A= =0Aand it actually does allocate memory, after the root fails to:=0A=0Apc= ib1: rman_reserve_resource: start=3D0x670000000, end=3D0x67003ffff, count= =3D0x40000=0Apcib1: pci_host_generic_core_alloc_resource FAIL: type=3D3, = rid=3D28, start=3D0000000670000000, end=3D000000067003ffff, count=3D00000= 00000040000, flags=3D4800=0Apcib2: allocated memory range (0x70040000-0x7= 007ffff) for rid 1c of pci1:1:0:0=0A=0Aiiiinteresting. Try to kldload mpr= /mps/whatever? Also insert the nvme drive