> That should be fine. It's probably enough to just check it works in the
> installer (i.e. select that as the network interface, choose an http
> install, and check that it can connect to show the list of *69.tgz
> file sets to choose from).
>
Sorry to take so long to respond. Life got in the way. I got a chance to test a 
few cards on OpenBSD for the amd64 architecture:

RTL8111
Intel 82576: https://www.amazon.com/gp/product/B01LXTF48X 
<https://www.amazon.com/gp/product/B01LXTF48X?psc=1>
Intel I340-T4: https://www.amazon.com/gp/product/B003A7LKOU 
<https://www.amazon.com/gp/product/B003A7LKOU?psc=1>

All worked on amd64. 

On arm64 the RTL8111 booted but didn't load correctly (as previously noted) and 
the two Intel cards threw PCI-E errors. I have attached the error output from 
the Intel 82576 card specifically, but I got the same "panic: uvm_fault" error 
when I tried the Intel I340-T4 so I suspect the two errors are related. I also 
got the uvm_fault error previously with an I350-T2. That email is archived 
here: https://marc.info/?l=openbsd-bugs&m=160132436831854&w=2


Aug 10, 2021, 07:24 by stu.li...@spacehopper.org:

> On 2021-08-10, Andrew Laramore <blind_gh...@tutanota.com> wrote:
>
>> I have a desktop I can plug the card into. Would it still work to boot 
>> OpenBSD from a USB drive rather than a SATA/NVMe drive? Or would that affect 
>> PCI debugging? I’m not familiar with debugging this close to the hardware.
>>
>
> That should be fine. It's probably enough to just check it works in the
> installer (i.e. select that as the network interface, choose an http
> install, and check that it can connect to show the list of *69.tgz
> file sets to choose from).
>
>> Aug 9, 2021, 03:51 by stu.li...@spacehopper.org:
>>
>>> (oops, resending with typo in bugs@ email address fixed)
>>>
>>>
>>> On 2021-08-08, Andrew Laramore <blind_gh...@tutanota.com> wrote:
>>> >>Synopsis: PCI-E NIC won't load on RockPro64
>>> >>Category: arm
>>> >>Environment:
>>>
>>>> System      : OpenBSD 6.9
>>>> Details     : OpenBSD 6.9 (GENERIC.MP) #0: Thu May 20 02:29:27 MDT 2021
>>>> r...@syspatch-69-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
>>>>
>>>> Architecture: OpenBSD.arm64
>>>> Machine     : arm64
>>>>
>>> >>Description: I attached a PCI-E 4-port NIC to the PCI-E slot on the 
>>> >>RockPro64. OpenBSD boots with the card attached, but doesn't enable the 
>>> >>card. I can't find any particular errors explaining why the card is not 
>>> >>enabled. No lights turn on in the NIC during port nor when attaching an 
>>> >>ethernet cable. Thought perhaps the PCI-E slot was to blame but I have 
>>> >>another single-port NIC running just fine in the same slot.
>>> >>How-To-Repeat: Connect PCI-E NIC to RockPro64 PCI-E slot and boot. 
>>> >>Nothing is added to ifconfig and the card only shows on pcidump as 
>>> >>disabled. Model number SI-PEX24042 running RTL8111 Chipset.
>>>
>>> Do you have a way to try the card with OpenBSD on another architecture
>>> (e.g. amd64)?
>>>
>>> -- 
>>> Please keep replies on the mailing list.
>>>
>>
>>
>
>
> -- 
> Please keep replies on the mailing list.
>

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 RockPro64 v2.1
DRAM:  3.9 GiB
PMIC:  RK808 
MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... Invalid bus 0 (err=-19)
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Pine64 RockPro64 v2.1
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found EFI removable media binary efi/boot/bootaa64.efi
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select!
Scanning disk m...@fe310000.blk...
Disk m...@fe310000.blk not ready
Card did not respond to voltage select!
Scanning disk m...@fe320000.blk...
Disk m...@fe320000.blk not ready
Scanning disk sd...@fe330000.blk...
** Unrecognized filesystem type **
Found 3 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
169000 bytes read in 44 ms (3.7 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootaa64.efi
disks: sd0*
>> OpenBSD/arm64 BOOTAA64 1.4
boot> 
booting sd0a:/bsd: 8808852+1792272+569992+830032 
[639503+109+1076040+629628]=0xf929e0
type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8
type 0x7 pa 0x4200000 va 0x4200000 pages 0x3eed attr 0x8
type 0x9 pa 0x80ed000 va 0x80ed000 pages 0x26 attr 0x8
type 0x7 pa 0x8113000 va 0x8113000 pages 0xe7fa5 attr 0x8
type 0x2 pa 0xf00b8000 va 0xf00b8000 pages 0xd27 attr 0x8
type 0x4 pa 0xf0ddf000 va 0xf0ddf000 pages 0x1 attr 0x8
type 0x2 pa 0xf0de0000 va 0xf0de0000 pages 0x3 attr 0x8
type 0x7 pa 0xf0de3000 va 0xf0de3000 pages 0x1 attr 0x8
type 0x2 pa 0xf0de4000 va 0xf0de4000 pages 0x100 attr 0x8
type 0x1 pa 0xf0ee4000 va 0xf0ee4000 pages 0x2a attr 0x8
type 0x0 pa 0xf0f0e000 va 0xf0f0e000 pages 0x7 attr 0x8
type 0x4 pa 0xf0f15000 va 0xf0f15000 pages 0x1 attr 0x8
type 0x6 pa 0xf0f16000 va 0x5a3d76c000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0xf0f17000 va 0xf0f17000 pages 0x2 attr 0x8
type 0x0 pa 0xf0f19000 va 0xf0f19000 pages 0x1 attr 0x8
type 0x6 pa 0xf0f1a000 va 0x5a3d770000 pages 0x3 attr 0x8000000000000008
type 0x4 pa 0xf0f1d000 va 0xf0f1d000 pages 0x1 attr 0x8
type 0x6 pa 0xf0f1e000 va 0x5a3d774000 pages 0x4 attr 0x8000000000000008
type 0x0 pa 0xf0f22000 va 0xf0f22000 pages 0x1 attr 0x8
type 0x4 pa 0xf0f23000 va 0xf0f23000 pages 0x1 attr 0x8
type 0x0 pa 0xf0f24000 va 0xf0f24000 pages 0x1 attr 0x8
type 0x4 pa 0xf0f25000 va 0xf0f25000 pages 0x2 attr 0x8
type 0x0 pa 0xf0f27000 va 0xf0f27000 pages 0x1 attr 0x8
type 0x4 pa 0xf0f28000 va 0xf0f28000 pages 0x2 attr 0x8
type 0x2 pa 0xf0f2a000 va 0xf0f2a000 pages 0x3016 attr 0x8
type 0x5 pa 0xf3f40000 va 0x5a40796000 pages 0x10 attr 0x8000000000000008
type 0x2 pa 0xf3f50000 va 0xf3f50000 pages 0x40b0 attr 0x8
[ using 2346248 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2021 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.9 (GENERIC.MP) #2: Tue Aug 10 08:28:07 MDT 2021
    
r...@syspatch-69-arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 4025032704 (3838MB)
avail mem = 3826475008 (3649MB)
random: good seed from bootblocks
mainbus0 at root: Pine64 RockPro64 v2.1
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: CRC32,SHA2,SHA1,AES+PMULL,ASID16
cpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4
cpu1: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu1: 512KB 64b/line 16-way L2 cache
cpu1: CRC32,SHA2,SHA1,AES+PMULL,ASID16
cpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4
cpu2: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu2: 512KB 64b/line 16-way L2 cache
cpu2: CRC32,SHA2,SHA1,AES+PMULL,ASID16
cpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4
cpu3: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu3: 512KB 64b/line 16-way L2 cache
cpu3: CRC32,SHA2,SHA1,AES+PMULL,ASID16
cpu4 at mainbus0 mpidr 100: ARM Cortex-A72 r0p2
cpu4: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu4: 1024KB 64b/line 16-way L2 cache
cpu4: CRC32,SHA2,SHA1,AES+PMULL,ASID16
cpu5 at mainbus0 mpidr 101: ARM Cortex-A72 r0p2
cpu5: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache
cpu5: 1024KB 64b/line 16-way L2 cache
cpu5: CRC32,SHA2,SHA1,AES+PMULL,ASID16
efi0 at mainbus0: UEFI 2.8
efi0: Das U-Boot rev 0x20201000
apm0 at mainbus0
agintc0 at mainbus0 sec shift 3:3 nirq 288 nredist 6 ipi: 0, 1: 
"interrupt-controller"
agintcmsi0 at agintc0
syscon0 at mainbus0: "qos"
syscon1 at mainbus0: "qos"
syscon2 at mainbus0: "qos"
syscon3 at mainbus0: "qos"
syscon4 at mainbus0: "qos"
syscon5 at mainbus0: "qos"
syscon6 at mainbus0: "qos"
syscon7 at mainbus0: "qos"
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "power-management"
"power-controller" at syscon25 not configured
syscon26 at mainbus0: "syscon"
"io-domains" at syscon26 not configured
rkclock0 at mainbus0
rkclock1 at mainbus0
syscon27 at mainbus0: "syscon"
"io-domains" at syscon27 not configured
"usb2-phy" at syscon27 not configured
"usb2-phy" at syscon27 not configured
rkemmcphy0 at syscon27
"pcie-phy" at syscon27 not configured
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
pwmreg0 at mainbus0
syscon28 at mainbus0: "syscon"
syscon29 at mainbus0: "syscon"
"fit-images" at mainbus0 not configured
rkdrm0 at mainbus0
drm0 at rkdrm0
"pmu_a53" at mainbus0 not configured
"pmu_a72" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"xin24m" at mainbus0 not configured
simplebus0 at mainbus0: "bus"
"dma-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
rkpcie0 at mainbus0
pci0 at rkpcie0
ppb0 at pci0 dev 0 function 0 "Rockchip RK3399 Root Complex" rev 0x00: msi
pci1 at ppb0 bus 1
panic: uvm_fault failed: ffffff80004de7a0 esr 96000210 far ffffff805058a00c
Stopped at      panic+0x158:    mov     w0, w20
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*     0      0      0     0x10000      0x200    0K swapper
db_enter() at panic+0x154
panic() at do_el1h_sync+0x21c
do_el0_sync() at handle_el1h_sync+0x6c
handle_el1h_sync() at pci_probe_device+0x6c
pci_probe_device() at pci_probe_device+0x6c
pci_probe_device() at pci_enumerate_bus+0x140
pci_enumerate_bus() at pciattach+0xe8
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{0}> show bcstats
Current Buffer Cache status:
numbufs 0 busymapped 0, delwri 0
kvaslots 11807 avail kva slots 11807
bufpages 0, dmapages 0, dirtypages 0
pendingreads 0, pendingwrites 0
highflips 0, highflops 0, dmaflips 0
ddb{0}> show panic
uvm_fault failed: ffffff80004de7a0 esr 96000210 far ffffff805058a00c
ddb{0}> show uvm
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
  944605 VM pages: 0 active, 0 inactive, 0 wired, 933894 free (0 zero)
  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
  freemin=0, free-target=0, inactive-target=0, wired-max=0
  faults=1, traps=0, intrs=0, ctxswitch=0 fpuswitch=0
  softint=0, syscalls=0, kmapent=16
  fault counts:
    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0
    ok relocks(total)=0(0), anget(retries)=0(0), amapcopy=0
    neighbor anon/obj pg=0/0, gets(lock/unlock)=0/0
    cases: anon=0, anoncow=0, obj=0, prcopy=0, przero=0
  daemon and swap counts:
    woke=0, revs=0, scans=0, obscans=0, anscans=0
    busy=0, freed=0, reactivate=0, deactivate=0
    pageouts=0, pending=0, nswget=0
    nswapdev=0
    swpages=0, swpginuse=0, swpgonly=0 paging=0
  kernel pointers:
    objs(kern)=0xffffff8000ee9690
ddb{0}> trace
db_enter() at panic+0x154
panic() at do_el1h_sync+0x21c
do_el0_sync() at handle_el1h_sync+0x6c
handle_el1h_sync() at pci_probe_device+0x6c
pci_probe_device() at pci_probe_device+0x6c
pci_probe_device() at pci_enumerate_bus+0x140
pci_enumerate_bus() at pciattach+0xe8
pciattach() at config_attach+0x21c
config_attach() at ppbattach+0x65c
ppbattach() at config_attach+0x21c
config_attach() at pci_probe_device+0x444
pci_probe_device() at pci_enumerate_bus+0x140
pci_enumerate_bus() at config_attach+0x21c
config_attach() at rkpcie_attach+0x754
rkpcie_attach() at config_attach+0x21c
config_attach() at mainbus_attach_node+0x2dc
mainbus_attach_node() at mainbus_attach+0x2dc
mainbus_attach() at config_attach+0x21c
config_attach() at cpu_configure+0x2c
cpu_configure() at main+0x31c
main() at $x.2+0x70

Reply via email to