Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 May 2020 23:32:38 +0000
From:      Dan Kotowski <dan.kotowski@a9development.com>
To:        "greg@unrelenting.technology" <greg@unrelenting.technology>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: FreeBSD on Layerscape/QorIQ LX2160X
Message-ID:  <SBSqkdZA-3beqJyVy2tMuk5GRmV22DVVnz_8sNDhYCNOjNPe1wgoiSCoOitGhtlBspk-Gk2MKFv4sUyJKy58mKOBpXrGtZoRQKqmDvB1xIg=@a9development.com>
In-Reply-To: <37858865a8ebddd3fe1e3a228a19ef62@unrelenting.technology>
References:  <sDsSd2a4wzx3y3IiDCx0GjOKgeVqGwVV_Aegg5WuTGWK-cU377qCaUqd09qSXBnGnYHCyEtPMjXObW6PSVanoUFsm7Sy8b11hDW9o6Q-xQI=@a9development.com> <d709b1aae3d33f49fadcce9817cb102a@unrelenting.technology> <LqTdXCGMiTFwSobCq9LtV5QVLOZ42AiBDUTC9UrdM67cUlD_I8Y7no-8F7d_vs3VDJwIFJLgHTSZVrbkIXXeZ_-hcU0FxfWj0dr-GvhKXHA=@a9development.com> <b04385d558850dc1dfa60fc398c9ac6c@unrelenting.technology> <CAPv3WKdyOzegfK4NJjKzXQTp9jGV9VkDRWxY%2BhDudzWQKkRfEQ@mail.gmail.com> <3e81db774e0fc1a3c2251c89b7629e1b@unrelenting.technology> <86119565e5927716a9feebabcb611871@unrelenting.technology> <f801aa134da12d1b4a34b87dbc180b4a@unrelenting.technology> <37858865a8ebddd3fe1e3a228a19ef62@unrelenting.technology>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > I spent some time looking at that NetBSD Layerscape code - I couldn't=
 figure out how to add it
> > > trivially to the current HEAD on my own, so I'm looking forward to se=
eing how we're going to yeet
> > > that in for testing...
> > > Something like this:
> > > https://github.com/myfreeweb/freebsd/commit/6cbdafbc310b9a0fa4d046f71=
979aa01302e8b0b
> > > https://send.firefox.com/download/ec0419c6d3fa856e/#QOMHO8pBq1dP1K2_4=
P4CBw
> >
> > https://gist.github.com/agrajag9/b214aa837d0ed6bb14139770ff5835ff
> > Line 404: panic: Misaligned access from kernel space!
>
> oops, I actually have to care about the`bytes` parameter..
>
> at least I got the ACPI-walking on the first try :)
>
> https://send.firefox.com/download/6406af63fee41a8a/#FnEEayn7igQ_eTGs0Wq0u=
w

https://gist.github.com/agrajag9/b47d63484fa51eed535d8a43625a5276

Feels like progress - got a shell, but still some significant failures:

PMU:
```
pmu0: Unable to setup interrupt handler.
device_attach: pmu0 attach returned 6
```

PCI:
```
pci2: <PCI bus> on pcib2
pcib2: allocated bus range (1-1) for rid 0 of pci2
pci2: domain=3D1, physical bus=3D1
pci2: pci1:1:0:0 bar 0x10 failed to allocate
```

AHCI:
```
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3200000-0x320ffff,0x700100520-0x70010=
0523 on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3210000-0x321ffff on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3220000-0x322ffff on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
ahci0: Bus is cache-coherent
ahci0: Bus is cache-coherent
ahci0: <AHCI SATA controller> iomem 0x3230000-0x323ffff on acpi0
ahci0: unable to map interrupt
device_attach: ahci0 attach returned 6
```



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SBSqkdZA-3beqJyVy2tMuk5GRmV22DVVnz_8sNDhYCNOjNPe1wgoiSCoOitGhtlBspk-Gk2MKFv4sUyJKy58mKOBpXrGtZoRQKqmDvB1xIg=>