FreeBSD on Layerscape/QorIQ LX2160X

Dan Kotowski dan.kotowski at a9development.com
Sun May 24 17:52:05 UTC 2020


> > > I also looked more closely at mps, and actually "just polling I/O" does work. We see:
> > > mps0: IOCCapabilities: 1285c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,HostDisc>
> > > and that means mps_request_sync (called by mps_get_iocfacts) has worked.
> > > And the command completion actually seems to come from interrupts.
> > > I've heard something about MSI(X) not working for the Linux people (not NetBSD though!),
> > > so I guess the next thing to try would be booting with hw.pci.enable_msi=0 hw.pci.enable_msi=1
> > > lol, I mean, hw.pci.enable_msi=0 hw.pci.enable_msix=0
> >
> > Still roughly the same: https://gist.github.com/agrajag9/9cb79fe1e53dd6e8f7dc09fe5f6236e9
> > And NVMe still panics during boot, so pulled that at least for now.
>
> I wonder if PCIe devices are just not getting interrupts and if that's related to AHCI not being able to configure interrupts.
>
> Added some debug logging for interrupts:
>
> https://send.firefox.com/download/828468ac751f8f69/#P1xKgL6IIqFOD-JBQFHnAw
>
> (test with mps, don't disable msi I guess since it didn't help)
>
> Also, to rule out firmware bugs, would be good to test Linux and NetBSD with the same firmware.
> (with NVMe, it's something that would definitely get attempted at boot)
>
> NetBSD -CURRENT: http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/images/NetBSD-9.99.63-evbarm-aarch64.iso
> They don't have memstick images for arm, unfortunately -- idk whether dd'ing an iso image to a usb drive
> would boot, probably not, try tools like rufus maybe.
> Or assemble your own memstick with what I assume is just the root filesystem image:
> http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/evbarm-aarch64/binary/gzimg/arm64.img.gz
> plus the boot loader you'd have to place on the EFI partition manually
> http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/evbarm-aarch64/installation/misc/bootaa64.efi

https://gist.github.com/agrajag9/2e07426702d46aa086348b70be942397

Flashing NetBSD to a new card now...


More information about the freebsd-arm mailing list