On 2/22/2021 5:40 PM, Chris Cappuccio wrote: > Chris Cappuccio [ch...@nmedia.net] wrote: >> >> Looks like we have a problem with arc_marvell cards. I had one working >> but there may be different firmware, etc. >> >> Areca sent a newer patch to openbsd-tech in the last year or so which you >> should try: >> >> From: ching Huang <ching2...@areca.com.tw> >> Subject: [PATCH: sys/dev/pci/arc.c] update Areca Raid adapter driver arc.c >> for support ARC-1203, ARC-1884 >> >> It's not clear if this changes the behavior on your card significantly. >> > > Oh and here is where he supports the ARC 1200 rev B: > > http://openbsd-archive.7691.n7.nabble.com/PATCH-sys-dev-pci-arc-c-update-Areca-Raid-adapter-driver-arc-c-for-support-ARC-1203-ARC-1884-td394610.html > > It looks like the newer patch on openbsd-tech includes this plus newer. > > Chris >
Bit of an update since I found time to experiment... I still haven't been able to directly apply Ching Huang's patch from last summer (many thanks to Chris Cappuccio for helping me at least try to do it the "right" way! I haven't given up, I swear!), but following Ching's offlist suggestion of doing a wholesale replacement of the 6.9-STABLE /src/sys/dev/pci/arc.c with Areca's (https://www.areca.us/support/s_openBSD/driver/arcmsr-1.5.0.1-openbsd.zip) appears to be working cleanly. Since his patch was dated July 6, 2020, I'm guessing it was probably against v1.113 or slightly earlier. If there's a way to nail down the common ancestor, I can try applying the subsequent patches to see if there's something specific that broke it. dmesg below: OpenBSD 6.9-stable (GENERIC.MP) #2: Mon Jun 21 10:19:53 EDT 2021 root@arcbuild.localdomain:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 17161854976 (16366MB) avail mem = 16626343936 (15856MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xdffbc000 (50 entries) bios0: vendor Dell Inc. version "2.2.5" date 03/21/2008 bios0: Dell Inc. PowerEdge SC1435 acpi0 at bios0: ACPI 3.0 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP APIC SPCR HPET MCFG SLIC ERST HEST BERT EINJ SRAT SSDT acpi0: wakeup devices RTC_(S5) PXB_(S5) EXB1(S5) EXB2(S5) EXB3(S5) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Dual-Core AMD Opteron(tm) Processor 2212, 1995.28 MHz, 0f-41-02 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: Dual-Core AMD Opteron(tm) Processor 2212, 1995.02 MHz, 0f-41-02 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu1: smt 0, core 0, package 2 cpu2 at mainbus0: apid 1 (application processor) cpu2: Dual-Core AMD Opteron(tm) Processor 2212, 1995.02 MHz, 0f-41-02 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8 cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu2: smt 0, core 0, package 1 cpu3 at mainbus0: apid 3 (application processor) cpu3: Dual-Core AMD Opteron(tm) Processor 2212, 1995.02 MHz, 0f-41-02 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8 cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative cpu3: smt 0, core 0, package 3 ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 16 pins, remapped ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 11, 16 pins, remapped ioapic2 at mainbus0: apid 6 pa 0xfec02000, version 11, 16 pins, remapped acpihpet0 at acpi0: 14318180 Hz acpimcfg0 at acpi0 acpimcfg0: addr 0xf0000000, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 3 (PXB_) acpiprt2 at acpi0: bus 4 (PPBX) acpiprt3 at acpi0: bus 5 (EXB0) acpiprt4 at acpi0: bus 1 (EXB1) acpiprt5 at acpi0: bus 2 (EXB2) acpiprt6 at acpi0: bus 6 (EXB3) acpiprt7 at acpi0: bus 7 (EXB4) acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 acpicmos0 at acpi0 acpicpu0 at acpi0: C1(@1 halt!), PSS acpicpu1 at acpi0: C1(@1 halt!), PSS acpicpu2 at acpi0: C1(@1 halt!), PSS acpicpu3 at acpi0: C1(@1 halt!), PSS ipmi at mainbus0 not configured cpu0: PowerNow! K8 1995 MHz: speeds: 2000 1800 1000 MHz pci0 at mainbus0 bus 0 ppb0 at pci0 dev 1 function 0 "ServerWorks HT-1000 PCI" rev 0x00 pci1 at ppb0 bus 3 ppb1 at pci1 dev 13 function 0 "ServerWorks HT-1000 PCIX" rev 0xc0 pci2 at ppb1 bus 4 pciide0 at pci1 dev 14 function 0 "ServerWorks HT-1000 SATA" rev 0x00: DMA pciide0: using apic 4 int 11 for native-PCI interrupt pciide0: port 0: PHY offline pciide0: port 1: PHY offline pciide0: port 2: PHY offline pciide0: port 3: PHY offline piixpm0 at pci0 dev 2 function 0 "ServerWorks HT-1000" rev 0x00: polling iic0 at piixpm0 spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM registered cmd/addr parity, data ECC PC2-5300CL5 spdmem1 at iic0 addr 0x51: 2GB DDR2 SDRAM registered cmd/addr parity, data ECC PC2-5300CL5 spdmem2 at iic0 addr 0x52: 2GB DDR2 SDRAM registered cmd/addr parity, data ECC PC2-5300CL5 spdmem3 at iic0 addr 0x53: 2GB DDR2 SDRAM registered cmd/addr parity, data ECC PC2-5300CL5 pcib0 at pci0 dev 2 function 2 "ServerWorks HT-1000 LPC" rev 0x00 ohci0 at pci0 dev 3 function 0 "ServerWorks HT-1000 USB" rev 0x01: apic 4 int 15, version 1.0, legacy support ohci1 at pci0 dev 3 function 1 "ServerWorks HT-1000 USB" rev 0x01: apic 4 int 15, version 1.0, legacy support ehci0 at pci0 dev 3 function 2 "ServerWorks HT-1000 USB" rev 0x01: apic 4 int 15 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "ServerWorks EHCI root hub" rev 2.00/1.00 addr 1 radeondrm0 at pci0 dev 4 function 0 "ATI ES1000" rev 0x02 drm0 at radeondrm0 radeondrm0: apic 5 int 12 ppb2 at pci0 dev 7 function 0 "ServerWorks HT-2100 PCIE" rev 0xa2 pci3 at ppb2 bus 5 ppb3 at pci0 dev 8 function 0 "ServerWorks HT-2100 PCIE" rev 0xa2 pci4 at ppb3 bus 1 bge0 at pci4 dev 0 function 0 "Broadcom BCM5721" rev 0x21, BCM5750 C1 (0x4201): msi, address 00:18:8b:75:37:ad brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb4 at pci0 dev 9 function 0 "ServerWorks HT-2100 PCIE" rev 0xa2 pci5 at ppb4 bus 2 ppb5 at pci0 dev 10 function 0 "ServerWorks HT-2100 PCIE" rev 0xa2: msi pci6 at ppb5 bus 6 arc0 at pci6 dev 0 function 0 "Areca ARC-1200B" rev 0x00: apic 5 int 3 arc0: arc v1.5.0.1-20210503, ARC-1200, F/W: V1.51 2014-07-21 scsibus1 at arc0: 16 targets sd0 at scsibus1 targ 0 lun 0: <Areca, ARC-1200-VOL#00, R001> eui.0004d927fffff800 sd0: 2861588MB, 512 bytes/sector, 5860532224 sectors ppb6 at pci0 dev 11 function 0 "ServerWorks HT-2100 PCIE" rev 0xa2 pci7 at ppb6 bus 7 pchb0 at pci0 dev 24 function 0 "AMD 0Fh HyperTransport" rev 0x00 pchb1 at pci0 dev 24 function 1 "AMD 0Fh Address Map" rev 0x00 pchb2 at pci0 dev 24 function 2 "AMD 0Fh DRAM Cfg" rev 0x00 kate0 at pci0 dev 24 function 3 "AMD 0Fh Misc Cfg" rev 0x00: core rev JH-F2 pchb3 at pci0 dev 25 function 0 "AMD 0Fh HyperTransport" rev 0x00 pchb4 at pci0 dev 25 function 1 "AMD 0Fh Address Map" rev 0x00 pchb5 at pci0 dev 25 function 2 "AMD 0Fh DRAM Cfg" rev 0x00 kate1 at pci0 dev 25 function 3 "AMD 0Fh Misc Cfg" rev 0x00: core rev JH-F2 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0 mux 1 vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072 wsdisplay at vga0 not configured pcppi0 at isa0 port 0x61 spkr0 at pcppi0 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1 usb2 at ohci1: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1 vmm0 at mainbus0: SVM uhub3 at uhub0 port 3 configuration 1 interface 0 "Dell product 0xa001" rev 2.00/0.00 addr 2 umass0 at uhub3 port 2 configuration 1 interface 0 "TSST Inc SES084D" rev 2.00/0.00 addr 3 umass0: using ATAPI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 cd0 at scsibus2 targ 1 lun 0: <ASUS, SDRW-08D2S-U, F101> removable vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (0ae04f9fbb5f82b9.a) swap on sd0b dump on sd0b radeondrm0: RV100 radeon_cp: Failed to load firmware "radeon/R100_cp.bin" [drm] *ERROR* Failed to load firmware! drm:pid0:r100_startup *ERROR* failed initializing CP (-2). drm:pid0:r100_init *ERROR* Disabling GPU acceleration radeondrm0: 1600x1200, 16bpp wsdisplay0 at radeondrm0 mux 1 pckbd_enable: command error wsdisplay0: screen 0-5 added (std, vt100 emulation) uhidev0 at uhub1 port 1 configuration 1 interface 0 "Dell Dell USB Keyboard" rev 1.10/3.01 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub1 port 2 configuration 1 interface 0 "vendor 0x0000 USB OPTICAL MOUSE" rev 1.10/1.00 addr 3 uhidev1: iclass 3/1, 1 report id ums0 at uhidev1 reportid 1: 3 buttons, Z dir wsmouse0 at ums0 mux 0 [drm] *ERROR* You may not have enough display bandwidth for current mode If you have flickering problem, try to lower resolution, refresh rate, or color depth pckbd_enable: command error pckbd_disable: command error
OpenPGP_0x9C1164A6B35561F7.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature